I'm backtesting a strategy and I'm using OnExecution to identify when a stop order is executed so I can calculate Profit/Loss for the day.
When it gets to that method during the backtest I'm getting the following error:
**NT** Error on calling 'OnExecution' method for strategy 'XStrategy12/cf4b8224c9a14ff4a18b365c4a752af3': Object reference not set to an instance of an object.
Wonder if that has anything to do to the fact that I'm simulating/backtesting? Can you please confirm?
Thanks,
Rodrigo
Comment