I had loaded a chart of HE 10-09, connected to IQFEED. The default instrument template seemed to be showing only the morning session (9:30 - 1 PM CST) instead of the full day session. I tried playing with the data series in the chart, by changing it to "default 24/7"... when I did this, Ninja caught an exception and crashed. Trace file shows:
2009-10-20 08:20:46:021 (IQFeed) Data.Bars.GetBarsNow: instrument='HE 10-09' from='2009-10-14' to='2009-10-14' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 2009-10-20 08:20:46:209 (IQFeed) Data.Bars.GetBarsNow: instrument='HE 10-09' from='2009-10-14' to='2009-10-19' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 2009-10-20 08:20:46:443 in OnUnhandledApplicationException 2009-10-20 08:20:46:521 ********* exception trapped ********* 2009-10-20 08:20:46:521 Bar index needs to be greater/equal 0 2009-10-20 08:20:46:521 System.Exception: Bar index needs to be greater/equal 0 ---> System.ArgumentException: Bar index needs to be greater/equal 0 at NinjaTrader.Data.Bars.GetTime(Int32 barIndex) at NinjaTrader.Data.Bars.MergeBarsBefore(Bars barsToMerge, Bars barsExisting, DateTime from, DateTime to, Boolean isRawBars) at NinjaTrader.Data.Bars.GetBars(Instrument instrument, Period period, DateTime from, DateTime to, Session pSession, Boolean splitAdjusted, Boolean dividendAdjusted, Boolean forceReloadFromProvider, Boolean calculateContractOffset) --- End of inner exception stack trace --- at NinjaTrader.Data.Bars.GetBars(Instrument instrument, Period period, DateTime from, DateTime to, Session pSession, Boolean splitAdjusted, Boolean dividendAdjusted, Boolean forceReloadFromProvider, Boolean calculateContractOffset) at NinjaTrader.Data.Bars.GetBars(Instrument instrument, Period period, DateTime from, DateTime to, Session pSession, Boolean splitAdjusted, Boolean dividendAdjusted) at NinjaTrader.Gui.Chart.ChartControl.AddBarsInWorkerThreadBarsData(Object state) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state) 2009-10-20 08:20:46:568 in OnUnhandledThreadException 2009-10-20 08:20:46:615 ********* exception trapped ********* 2009-10-20 08:20:46:615 Index was outside the bounds of the array. 2009-10-20 08:20:46:615 at Infragistics.Shared.SparseArray.ValidateIndex(Int32 index) at Infragistics.Shared.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback) at Infragistics.Win.UltraWinGrid.ScrollCountManagerSparseArray.GetItem(Int32 index, Boolean create) at Infragistics.Win.UltraWinGrid.RowsCollection.get_Item(Int32 index) at NinjaTrader.Strategy.StrategyGridDisplay.OnStrategyStatus(Object sender, StatusChangedEventArgs e) at NinjaTrader.Strategy.StatusChangedEventHandler.Invoke(Object sender, StatusChangedEventArgs e) at NinjaTrader.Strategy.StrategyBase.StoppedNow() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Comment