I want to know if commision for each trade is automatically calculated on each order in the backtester? So if I say order(sid('aapl'), 10) will the price of that order automatically include 10*commisionRate? Looking through the documentation this is what makes me think that it is:
# **These are the default commission and slippage settings**. Change them to fit your
# brokerage fees. These settings only matter for backtesting. When you trade this
# algorithm, they are moot - the brokerage and real market takes over.
set_commission(commission.PerTrade(cost=0.03))
set_slippage(slippage.VolumeShareSlippage(volume_limit=0.25, price_impact=0.1))
And by "default commission settings" I assume they mean that these are automatically set at runtime so I don't have to set them? In addition, can someone who trades live comment on how accurate the defaults are?
Thanks!