The performance of online (sequential) portfolio selection (OPS), which rebalances a portfolio in every period (e.g. daily or weekly) in order to maximise the portfolio's expected terminal wealth in the long run, has been overestimated by the ideal assumption of unlimited market liquidity (i.e. no market impact costs). Therefore, a new transaction cost factor model that considers both market impact costs, estimated from limit order book data, and proportional transaction costs (e.g. brokerage commissions or transaction taxes in a fixed percentage) has been proposed in this paper to measure existing OPS strategies performance in a more practical way as well as to develop a more effective OPS method. Backtesting results from the historical limit order book (LOB) data of NASDAQ-traded stocks show both the performance deterioration of existing OPS methods by the market impact costs and the superiority of our proposed OPS method in the environment of limited market liquidity.