I had run a replay with 15 second chart with SamplaMACrossover_OPU ( to try to reproduce OnPositionUpdate error with exception : http://ninjatrader.com/support/forum...ad.php?t=86010 )
I got bored after 1 month as it was taking a while.
So I slid the slider back and changed to 3 minute charts.
It looked like it replayed the entire ES03-16 and ES06-16 and had finished. But then a ton of errors started happening out of no where. The trace file shows where it started going bad. It was stuck in a loop and piling on the error window message. I couldn't take a screen shot for paint. I managed to end task NT8.
I sent the full log and trace files via the help command.
2016-06-02 21:11:33:562 ERROR: Indicator 'SMA': Error on calling 'OnRender' method on bar 0: Object reference not set to an instance of an object.
2016-06-02 21:11:33:562 ERROR: Indicator 'SMA': Error on calling 'OnRender' method on bar 0: Object reference not set to an instance of an object.
2016-06-02 21:11:33:597 (Playback Connection) Cbi.Account.PositionUpdateCallback: instrument='ES 06-16' account='Playback101' avgPrice=2050 quantity=1 marketPosition=Short operation=Add
2016-06-02 21:11:33:598 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=CashValue currency=UsDollar value=*****
2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=GrossRealizedProfitLoss currency=UsDollar value=*****
2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
2016-06-02 21:11:34:202 Gui.Chart.ChartPanel.OnRender: System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
at NinjaTrader.Gui.Chart.ChartControl.InitSlotsPainte d()
at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
2016-06-02 21:11:34:203 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
2016-06-02 21:11:34:204 ERROR: Error in realtime market data handling: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth) at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars) at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars) at NinjaTrader.Gui.Chart.ChartControl.GetSlotIndexByX (Int32 x) at NinjaTrader.Gui.Chart.ChartBars.GetBarIdxByXBarCen tered(ChartControl chartControl, Int32 x) at NinjaTrader.Gui.Chart.ChartControl.UpdateCurrentSl otOrTime() at NinjaTrader.Gui.Chart.ChartControl.UpdateFormDataB oxCrossHair() at NinjaTrader.Gui.Chart.ChartControl.OnRealtimeDataT imerTick(Object s, EventArgs e) at NinjaTrader.Cbi.Instrument.<>c__DisplayClass187_0. <OnRealtimeDataTimerElapsed>b__1(SubscribedThrea d[] threads, Int32 i, RealtimeEvents evts)
2016-06-02 21:11:35:217 Gui.Chart.ChartPanel.OnRender: System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
at NinjaTrader.Gui.Chart.ChartControl.InitSlotsPainte d()
at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
2016-06-02 21:11:35:217 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
2016-06-02 21:11:36:151 NinjaScript.StrategyBase.ExitOnSessionCloseHandlin g: nextExitOnSessionClose='04/13/2016 16:59:30'
2016-06-02 21:24:18:427 Object reference not set to an instance of an object.
2016-06-02 21:24:18:427 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
at NinjaTrader.Gui.Chart.ChartControl.GetSlotIndexByX (Int32 x)
at NinjaTrader.Gui.Chart.ChartBars.GetBarIdxByXBarCen tered(ChartControl chartControl, Int32 x)
at NinjaTrader.Gui.Chart.ChartControl.UpdateCurrentSl otOrTime()
at NinjaTrader.Gui.Chart.ChartPanel.OnMouseMove(Objec t sender, MouseEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
at System.Windows.Input.InputManager.ProcessStagingAr ea()
at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.Repo rtInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.Filt erMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessa ge(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation( Object o)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Comment