For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
siavash last edited by
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)
eggachecat last edited by eggachecat
@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