Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnUnhandledThreadException

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

    OnUnhandledThreadException

    Hi,

    After running a backtest of a new custom strategy (NT 6.5), I click on any Strategy Analyzer tab apart from "Summary" and I get "NT has detected an error and needs to shut down".

    My Trace File has the following:

    2010-07-09 13:35:23:657 in OnUnhandledThreadException
    2010-07-09 13:35:23:664 ********* exception trapped *********
    2010-07-09 13:35:23:664 Referencia a objeto no establecida como instancia de un objeto.
    2010-07-09 13:35:23:664 en NinjaTrader.Strategy.StrategyBase.AddAllExecutions (Position position, Execution execution, Order order, Boolean setExitEntry, Boolean setStopLoss, Boolean pooled)
    en NinjaTrader.Gui.PerformanceViewerControl.RunBackTe st()
    en NinjaTrader.Gui.PerformanceViewerControl.Display()
    en NinjaTrader.Gui.PerformanceViewerControl.OnTabSele cted(Object sender, EventArgs e)
    en System.EventHandler.Invoke(Object sender, EventArgs e)
    en System.Windows.Forms.TabControl.OnSelectedIndexCha nged(EventArgs e)
    en System.Windows.Forms.TabControl.WmSelChange()
    en System.Windows.Forms.TabControl.WndProc(Message& m)
    en System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    en System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Any suggestions as to what might be causing this?

    Thanks.

    #2
    AnotherTrader - can you please translate this for us?

    Referencia a objeto no establecida como instancia de un objeto.

    Would than mean an emtpy object was accessed?

    Then you would need to debug with Prints or Try / Catch where this was occuring so you could add a code check for it.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      ... can you please translate this for us?
      Referencia a objeto no establecida como instancia de un objeto.
      Would it make sense if it was something like
      Object reference not set to an instance of an object.
      ?

      Does any of the Trace text following the above offer any further clues?

      Thanks
      Last edited by AnotherTrader; 07-09-2010, 12:10 PM.

      Comment


        #4
        Thanks. Is this something you can reproduce with your particular strategy? If so, can you please send us your strategy so we can run tests on our end? Also, NT7 may work better. Can you try on there?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi, Josh

          to where shall I send the strategy?

          [email protected], reference this thread?

          Am not yet familiar with NT7 ...

          Comment


            #6
            Sending to support email you listed will do. Thanks.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              On its way to you now ...

              Comment


                #8
                AnotherTrader,

                I just ran your strategy and did not get any crashes on NT6.5 for ES 09-10. Can you please clarify how you are backtesting this strategy.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Hi, Josh

                  It backtests OK, but after the backtest, when I click on any Strategy Analyzer tab other than SUMMARY, that's when I get the error.

                  Does that repeat for you?

                  Comment


                    #10
                    No issues on my end with your strategy. I have cycled through all tabs. Is this something you can reproduce? I suggest maybe trying a reinstall.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks, Josh

                      Yes, I have reporduced it several times.

                      I'll try on another computer (where I have another instance of NT). If I can't reproduce it myself there, I will re-install NT on the original machine as you suggest.

                      Thanks for the help.

                      Comment


                        #12
                        OK, error reproduced on the other machine.

                        I will email you the detailed paramters I used ...


                        [update: parameters on their way to you now]

                        BTW I am on NT 6.5.1000.16
                        Last edited by AnotherTrader; 07-09-2010, 03:48 PM.

                        Comment


                          #13
                          AnotherTrader,

                          Unfortunately I am still not able to reproduce. I suggest trying to reinstall cleanly your NT and see what happens at that point. To do this you will want to remove your Documents\NinjaTrader 6.5 directory. After reinstalling please bring back only this exact strategy.
                          Josh P.NinjaTrader Customer Service

                          Comment


                            #14
                            OK, Josh. Will do. Sounds like a task for first thing Monday morning. Thanks for the help.

                            Comment


                              #15
                              Originally posted by NinjaTrader_Josh View Post
                              After reinstalling please bring back only this exact strategy.
                              ... presumably with the required indicators, too?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              672 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              379 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              111 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              577 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              582 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X