I have a strat, I have run through the backtester, and works fine. Changing each variable also works fine. But when I try to use the optimizer, I get the error of:
Strategy 'SessionMAstrat': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
I think I may have used the optimizer a long time ago, and I dont think I had to do anything special?

Comment