I've got an indicator which can load up to 4 additional timeframes, of the same PeriodType as the chart.
The indicator works fine, but after a few times of opening the dialogue window and changing the user inputs for the periods of the additional timeframes or the number of additional timeframes, the chart seems to crash. After hitting OK that last time, the chart is blank and the menu icons are greyed-out.
Ninja is still responsive.
There is no entry in the Log tab about any error or exception.
There is no text bottom right of Control Centre about loading data.
There are no while() loops in the code to cause an infinite loop.
I've dug this out of the trace file. Can you shed any light on the situation for me?
2012-01-10 00:22:40:182 in OnUnhandledThreadException
2012-01-10 00:22:40:182 *************** unhandled exception trapped ***************
2012-01-10 00:22:40:182 Index was outside the bounds of the array.
2012-01-10 00:22:40:182 at NinjaTrader.Indicator.IndicatorBase.set_BarsArray( Bars[] value)
at NinjaTrader.Gui.Chart.ChartIndicators.Apply()
at NinjaTrader.Gui.Chart.ChartIndicators.OnOkButtonCl ick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Many thanks,
saltminer.
Comment