Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exception - Draw Objects

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

    Exception - Draw Objects

    I received an exception attempting to place draw objects.
    I exited and restarted.
    I am still receiving the exception when trying to place arrows and lines on the chart.
    About every 1 out of three attempts causes the exception.

    2009-12-07 09:29:34:006 ********* exception trapped *********
    2009-12-07 09:29:34:006 Item has already been added. Key in dictionary: '1A' Key being added: '1A'
    2009-12-07 09:29:34:006 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(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.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-12-07 09:40:01:051 in OnUnhandledThreadException
    2009-12-07 09:40:01:051 ********* exception trapped *********
    2009-12-07 09:40:01:051 Item has already been added. Key in dictionary: '1B' Key being added: '1B'
    2009-12-07 09:40:01:051 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(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.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-12-07 09:40:43:749 in OnUnhandledThreadException
    2009-12-07 09:40:43:749 ********* exception trapped *********
    2009-12-07 09:40:43:749 Item has already been added. Key in dictionary: '1D' Key being added: '1D'
    2009-12-07 09:40:43:749 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(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.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)
    Attached Files

    #2
    mjc4118,

    What kind of chart are you using? Equidistant? Non-equidistant? Multi-series? Please try without any custom indicators as well.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      2 charts open
      GC 02-10 333 Tick and 667 Tick

      I have custom controls on the 333T chart and Bollinger bands and SMA on 667T Chart. the error occurs on both charts. Will try later after trading day after removing custom control off 333T.

      Mark

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      596 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      554 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X