The long memory and the transaction cost in financial markets