heech
10-20-2009, 09:26 AM
Hi,
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.AddBarsInWorker ThreadBarsData(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Objec t userData)
at System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(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(Int3 2 index)
at Infragistics.Shared.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)
at Infragistics.Win.UltraWinGrid.ScrollCountManagerSp arseArray.GetItem(Int32 index, Boolean create)
at Infragistics.Win.UltraWinGrid.RowsCollection.get_I tem(Int32 index)
at NinjaTrader.Strategy.StrategyGridDisplay.OnStrateg yStatus(Object sender, StatusChangedEventArgs e)
at NinjaTrader.Strategy.StatusChangedEventHandler.Inv oke(Object sender, StatusChangedEventArgs e)
at NinjaTrader.Strategy.StrategyBase.StoppedNow()
at System.Windows.Forms.Control.InvokeMarshaledCallba ckDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallba ckHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Objec t userData)
at System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallba ck(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallba cks()
I'm new to submitting errors, by the way, so if you guys want this info in some other form... just let me know!
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.AddBarsInWorker ThreadBarsData(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Objec t userData)
at System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(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(Int3 2 index)
at Infragistics.Shared.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)
at Infragistics.Win.UltraWinGrid.ScrollCountManagerSp arseArray.GetItem(Int32 index, Boolean create)
at Infragistics.Win.UltraWinGrid.RowsCollection.get_I tem(Int32 index)
at NinjaTrader.Strategy.StrategyGridDisplay.OnStrateg yStatus(Object sender, StatusChangedEventArgs e)
at NinjaTrader.Strategy.StatusChangedEventHandler.Inv oke(Object sender, StatusChangedEventArgs e)
at NinjaTrader.Strategy.StrategyBase.StoppedNow()
at System.Windows.Forms.Control.InvokeMarshaledCallba ckDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallba ckHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Objec t userData)
at System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallba ck(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallba cks()
I'm new to submitting errors, by the way, so if you guys want this info in some other form... just let me know!