From my readings, I believe OnExecution is the method that I want to override for my strategy.
My question is, will this work when backtesting? I see that my buy stop orders are being set while backtesting, but I don't see my stop loss orders or my sell limit orders being activated.
I know that some methods like OnMarketData don't work for backtesting, but in reading the docs for OnExecution, I didn't see anything that said it wouldn't work for backtesting but I may have missed it.
If they don't work for backtesting, what function is appropriate for backtesting purposes?
Thanks in advance,
Ken

Comment