I would like to catch this exception within my own indicator code vs allowing it to trace thru back to the NinjaTrader application. It is occurring from IndicatorBase which is in the "do not touch" portion of the indicator created code. Would it be OK for me to catch this in Indicator: IndicatorBase (a do not disturbe NinjaScript generated code) vs allowing it to go unhandled?
2014-10-06 06:30:02:044 in OnUnhandledThreadException
2014-10-06 06:30:02:185 *************** unhandled exception trapped ***************
2014-10-06 06:30:02:185 Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2014-10-06 06:30:02:185 at System.Collections.ArrayList.get_Item(Int32 index)
at NinjaTrader.Data.MemBars.GetClose(Int32 index)
at NinjaTrader.Data.Bars.GetClose(Int32 index)
at NinjaTrader.Indicator.DataSeriesHelper.get_Item(In t32 barsAgo)
at NinjaTrader.Indicator.IndicatorBase.Process(Object sender, BarUpdateEventArgs e)
at NinjaTrader.Data.MarketDataEventArgs.Process()
at NinjaTrader.Cbi.Connection.OnRealtimeDataTimerTick (Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Comment