Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FYI: Exceptions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FYI: Exceptions

    ==========================
    2009-11-07 23:14:12:656 Chart.ChartControl.OnPaint: Overflow error.
    2009-11-07 23:17:34:406 Chart.ChartControl.OnPaint: Index was outside the bounds of the array.
    2009-11-07 23:17:34:796 UI (re)load complete, took 206.9 secs, 9333.1 secs after app start
    ==========================
    2009-11-10 01:08:07:475 Chart.ChartControl.OnPaint: Index was outside the bounds of the array.
    2009-11-10 01:08:10:193 Gui.WorkspaceOptions.ApplicationExit
    ==========================
    2009-11-10 22:23:16:078 in OnUnhandledThreadException
    2009-11-10 22:23:16:109 ********* exception trapped *********
    2009-11-10 22:23:16:109 Error creating window handle.
    2009-11-10 22:23:16:109 at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.get_Handle()
    at System.Windows.Forms.Control.OnParentHandleRecreat ed()
    at System.Windows.Forms.Control.RecreateHandleCore()
    at System.Windows.Forms.Form.RecreateHandleCore()
    at System.Windows.Forms.Form.OnTextChanged(EventArgs e)
    at System.Windows.Forms.Control.set_Text(String value)
    at System.Windows.Forms.Form.set_Text(String value)
    at NinjaTrader.Data.ReplayControlCenter.UpdateCaption (DateTime currentTime)
    at NinjaTrader.Data.ReplayControlCenter.set_TimeLocal (DateTime value)
    at NinjaTrader.Data.ReplayControlCenter.GoTo(DateTime newDate)
    at NinjaTrader.Data.ReplayControlCenter.OnDateChanged(Object sender, EventArgs e)
    at System.Windows.Forms.DateTimePicker.OnValueChanged (EventArgs eventargs)
    at System.Windows.Forms.DateTimePicker.WmDateTimeChan ge(Message& m)
    at System.Windows.Forms.DateTimePicker.WmReflectComma nd(Message& m)
    at System.Windows.Forms.DateTimePicker.WndProc(Messag e& 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)
    ==========================
    2009-11-11 00:07:50:718 in OnUnhandledThreadException
    2009-11-11 00:07:50:734 ********* exception trapped *********
    2009-11-11 00:07:50:734 Object reference not set to an instance of an object.
    2009-11-11 00:07:50:734 at NinjaTrader.Cbi.Position.Close(String signalName)
    at NinjaTrader.Strategy.StrategyBase.EventuallyExitOnClose()
    at NinjaTrader.Cbi.Connection.OnTimerTick(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)
    2009-11-11 00:07:50:937 Strategy.StrategyBase.CancelAllOrders: Order='0409c0eb61e345f9926654714a6cb179/Replay101' Name='Buy to cover' State=Filled
    ==========================
    2009-11-11 10:14:29:468 in OnUnhandledThreadException
    2009-11-11 10:14:29:500 ********* exception trapped *********
    2009-11-11 10:14:29:500 Object reference not set to an instance of an object.
    2009-11-11 10:14:29:500 at NinjaTrader.Data.MemBars.GetHigh(Int32 index)
    at NinjaTrader.Data.Bars.GetHigh(Int32 index)
    at NinjaTrader.Gui.Chart.ChartExecution.GetBounds(Cha rtControl chartControl, ChartPanel chartPanel, ScaleJustification scaleJustification)
    at NinjaTrader.Gui.Chart.ChartPanel.CalculateMinMax(S caleJustification scaleJustification)
    at NinjaTrader.Gui.Chart.ChartControl.CalculateMinMax AndMargins(Graphics graphics)
    at NinjaTrader.Gui.Chart.ChartControl.OnPaint(Object sender, PaintEventArgs e)
    at System.Windows.Forms.Control.OnPaint(PaintEventArg s e)
    at System.Windows.Forms.Control.PaintWithErrorHandlin g(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& 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)
    ==========================
    2009-11-11 16:31:58:562 in OnUnhandledThreadException
    2009-11-11 16:31:58:937 ********* exception trapped *********
    2009-11-11 16:31:58:937 Exception of type 'System.OutOfMemoryException' was thrown.
    2009-11-11 16:31:58:937 at NinjaTrader.Strategy.TradesPerformance..ctor()
    at NinjaTrader.Strategy.TradeCollection..ctor(Boolean sub, Boolean includeCommission, Boolean keepTrades)
    at NinjaTrader.Strategy.TradeCollection..ctor(Boolean sub, Boolean includeCommission, Boolean keepTrades)
    at NinjaTrader.Strategy.TradeCollection..ctor(Boolean includeCommission, Boolean keepTrades)
    at NinjaTrader.Strategy.SystemPerformance..ctor(Boole an includeCommission, Boolean keepTrades)
    at NinjaTrader.Strategy.MonteCarloForm.OnGenerateClick(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)
    ==========================
    2009-11-11 16:35:35:890 in OnUnhandledThreadException
    2009-11-11 16:35:35:968 ********* exception trapped *********
    2009-11-11 16:35:35:968 There was an error generating the XML document.
    2009-11-11 16:35:35:968 at System.Xml.Serialization.XmlSerializer.Serialize(X mlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
    at System.Xml.Serialization.XmlSerializer.Serialize(X mlWriter xmlWriter, Object o)
    at NinjaTrader.Cbi.Serializer.Serialize()
    at NinjaTrader.Strategy.StrategyBase.SetDefault()
    at NinjaTrader.Strategy.StrategyAnalyzer.OnSetDefault (Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& 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)
    ==========================
    2009-11-13 13:10:24:937 in OnUnhandledThreadException
    2009-11-13 13:10:25:421 ********* exception trapped *********
    2009-11-13 13:10:25:437 startIndex cannot be larger than length of string.
    Parameter name: startIndex
    2009-11-13 13:10:25:437 at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    at NinjaTrader.Code.OutputWindow.OnTimerTick(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)
    ==========================
    2009-11-05 21:54:04:390 in OnUnhandledThreadException
    2009-11-05 21:54:04:625 ********* exception trapped *********
    2009-11-05 21:54:04:625 Item has already been added. Key in dictionary: '1' Key being added: '1'
    2009-11-05 21:54:04:625 at System.Collections.SortedList.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.SortBarsArray()
    at NinjaTrader.Gui.Chart.ChartControl.RemoveBarsAndDe pendendObjects(Bars barsToRemove, Boolean removeEmptyPanels)
    at NinjaTrader.Gui.Chart.ChartBars.Apply()
    at NinjaTrader.Gui.Chart.ChartBars.OnOk(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)
    ==========================
    2009-11-05 23:05:14:906 (AMP LIVE) Hosted.Unmanaged.Callbacks.Alert: connection=1 alertType=6 code=7 msg='The subscription to this instrument has been aborted. Dependent network services and/or data were not available.'
    ==========================
    Btw, I notice that the strategy does not show any pnl or unrealized or even realized (sometimes) if trades are triggered solely in barsinprogress 2.

    #2
    On the exceptions: we would need step to reproduce in order to analyze. Thanks

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    605 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    351 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X