I'm trying to debug a Backtest with Visual Studio.
When I run the backtest normally, it finish correctly, and the log tab is clean, but when I attach the Visual Studio, and run the Backtest, the VS crash with the next exception:
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=NinjaTrader.Core
StackTrace:
at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
at NinjaTrader.Gui.NinjaScript.StrategyRenderBase.Set State(State state)
at NinjaTrader.NinjaScript.NinjaScriptBase.Finalize()
Could you point me how to find the error?
Thank you in advance.

Comment