I have noticed that when the parameters of set_commission and set_slippage are set to zero no trades are executed. I am using the template found here: https://www.quantopian.com/posts/long-short-pipeline-multi-factor
I also did a test where I commented out the set_commission and set_slippage lines and the backtester did execute trades, though the ending total return numbers were much lower than when the set_commission and set_slippage parameters were set with the defaults that come with the template:
set_commission(commission.PerShare(cost=0.0075, min_trade_cost=1.0))
set_slippage(slippage.VolumeShareSlippage(volume_limit=0.025, price_impact=0.1))
I then did a test where I with the following parameters:
set_commission(commission.PerShare(cost=0.00075, min_trade_cost=.01))
set_slippage(slippage.VolumeShareSlippage(volume_limit=0.0025, price_impact=0.01))
The results were as expected, the ending total returns were higher. But, not by the margin I expected them to be.
Can someone shed some light on this for me.
Thank you.