I'm assuming CalculateMinMax is for display purposes only, and I don't actually have to check whether I'm plotting outside of the min/max. I don't think I am, but I'm not checking and I'm assuming it's unrelated.
Thanks
I'm using an override for CalculateMinMax
public override void OnCalculateMinMax() { MinValue = 0; MaxValue = 7; }
This is the crash
2017-05-24 04:26:30:816 Gui.Chart.ChartPanel.OnRender: System.IndexOutOfRangeException: Index was outside the bounds of the array. at NinjaTrader.NinjaScript.NinjaScriptBase.get_Instrument() at NinjaTrader.Gui.Chart.ChartScale.CalculateMinMax() at NinjaTrader.Gui.Chart.ChartPanel.CalculateMinMax() at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
Comment