how to add trading cost in backtest

As trading cost and rebalancing penalty are taken into account, the rebalancing frequency become a very important constrain. In order to get the optimal rebalancing frequency, is there any way to simulate trading cost in the alphien.portfolio.Portfolio engine?

hope to have transaction cost inclued in port.backtest() :slight_smile: