I am on NT8B10 and optimizations are crashing NT or reporting errors preventing optimizations from running.
I have a strategy that has BarsArray populated with 3 different sets of Tick Bars (i.e. 1000, 3000, 10000). When I try to optimize the strategy I am getting an error in the log stating Time Category Message 4/14/2016 12:39:55 PM Default Strategy 'XXX': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
I believe the error is generated at this line of code in the OnStateChange method:
pointValue = Instruments[0].MasterInstrument.PointValue;
This works fine when just running a backtest but in optimization mode it causes the strategy to generate the erorr.
Is there any reason why this code should not work on a multidata strategy when optimizing?
Thanks,
Comment