I have a working strategy that I wanted to add a secondary time frame to. The only line I have added is within Initialize()...
Add(PeriodType.Day, 1);
The strategy compiles fine but then when running a backtest I get the following error message.
**NT** Error on calling 'OnBarUpdate' method for strategy 'XXX': Object reference not set to an instance of an object.
The strategy is set to run on the 1 minute time frame as it's primary frame. I'm sure that's not enough info but any pointers as to where I should look for issues?
Thanks,
darmbk.
Comment