I'm trying to mess around with the backtest feature in order to learn it.
In the strategy analyzer I've selected the same strategy that works fine in market replay but in this case it gives: " Error on calling 'OnStateChange' method: Object reference not set to an instance of an object. "
While trying to debug this, the final print happens right before the following code:
if(State == State.DataLoaded) { Print("136"); myHA = HeikenAshi8(); AddChartIndicator (myHA); }
I'm new to the strategy analyzer so I'm not sure how much I'd need to modify my code to get it to work here. What could be stopping a strategy from running in strategy analyzer when it works just fine in real life and also just fine in market replay?
Comment