I am just writing to let you know that I am experiencing exactly the same crash as Karlo does. I am using 8.0.0.13 64-bit (Standard) - Release Candidate 1.
In the trace file, I am getting:
2016-09-19 16:41:21:506 Gui.Chart.ChartPanel.OnRender: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at NinjaTrader.NinjaScript.NinjaScriptBase.get_Bars()
at NinjaTrader.Gui.NinjaScript.StrategyRenderBase.Cal culateMinMax()
at NinjaTrader.Gui.Chart.ChartScale.CalculateMinMax()
at NinjaTrader.Gui.Chart.ChartPanel.CalculateMinMax()
at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
At the same time, the strategy invokes OnStateChange with State.Terminated and then whole NT crashes.
Some interesting notes:
1. I do not overwrite OnRender.
2. I have opened just a single chart with a single strategy, which is using a couple of invisible indicators
3. The crash occurs between two OnBarUpdate events. In the mentioned case, there was one OnBarUpdate at 16:37 and then there would be another OnBarUpdate at 16:57. Yet, the crash happend at 16:41, i.e. when the strategy is idle. Even the indicators are actually idle, becase I do not use the OnEachTick or OnPriceChange mode.
4. I have experienced this crash both during Playback and during real time.
Kind regards,
Vaclav
Comment