Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can I define commission parameter when instancing broker object? I coded that like below but it issues error.
cerebro.broker = bt.brokers.BackBroker(commission=.02)
@siavash I think you can do something like this
from backtrader.brokers import BackBroker myBroker = BackBroker() myBroker.setcommission(commission=.02) cerebro.broker = myBroker
where furher API can be found here