Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug in simulator - pressing REV causes exception.

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

    Bug in simulator - pressing REV causes exception.

    When I try trading on sim in beta version 6, I get an exception that pops up when I try to reverse positions. It doesn't happen every time, but within a few attempts, I get a message saying that NT must shut down, and the following exception in the trace log:

    2010-01-13 11:50:53:620 in OnUnhandledThreadException
    2010-01-13 11:50:53:623 ********* exception trapped *********
    2010-01-13 11:50:53:623 An XML error has occurred.
    2010-01-13 11:50:53:623 at NinjaTrader.Cbi.Deserializer.Deserialize()
    at NinjaTrader.Gui.SuperDom.PriceLadder.Reverse()
    at NinjaTrader.Gui.SuperDom.PriceLadder.lblReverse_Mo useDown(Object 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.Label.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)


    Also, as soon as this happens, I find that the simulator immediately starts acting very "sluggish", with trades takes many seconds to "go through" after the button is clicked. Interestingly, shutting down the program doesn't solve this problem with sluggish trades, but resetting the simulator does.

    #2
    This probably is related to the ATM template(s) you're using. I suggest deleting the template and settings them up again. This might make a difference.

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      This probably is related to the ATM template(s) you're using. I suggest deleting the template and settings them up again. This might make a difference.
      Thanks, I'll give it a shot...

      Comment


        #4
        Alright, so I deleted all the ATM templates and set them up again, but I just got the error again:

        2010-01-14 08:44:48:989 in OnUnhandledThreadException
        2010-01-14 08:44:49:008 ********* exception trapped *********
        2010-01-14 08:44:49:008 An XML error has occurred.
        2010-01-14 08:44:49:008 at NinjaTrader.Cbi.Deserializer.Deserialize()
        at NinjaTrader.Gui.SuperDom.PriceLadder.Reverse()
        at NinjaTrader.Gui.SuperDom.PriceLadder.lblReverse_Mo useDown(Object 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.Label.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)


        It's obviously not my ATM strategies, since I recreated them as you said. The strategy I was using was a simple 7 tick stop with no other modifications. I have a feeling that this could be related to the code itself...

        Comment


          #5
          Please see if Tools->Options->Data->Repair DB makes any difference.

          If not, then would you have a reproducible scenario preferred on sim feed? If so, then:
          - please zip and attach your DB <my documents>/NinjaTrader7/db/NinjaTrader.sdf
          - please provide any details needed to reproduce the issue

          Thanks in advance

          Comment


            #6
            Originally posted by NinjaTrader_Dierk View Post
            Please see if Tools->Options->Data->Repair DB makes any difference.

            If not, then would you have a reproducible scenario preferred on sim feed? If so, then:
            - please zip and attach your DB <my documents>/NinjaTrader7/db/NinjaTrader.sdf
            - please provide any details needed to reproduce the issue

            Thanks in advance
            I did the DB repair, we'll see if that helps. Unfortunately it's not reproducible, as it does not happen every time. I will report back if I continue to see the issue...

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            601 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            347 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
            559 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X