Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Backtesting

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

    Stop Backtesting

    Hello. How to stop backtesting? I ran it and even after 10 minutes NT still "Running backtest..."

    I just close Analyzer window. Than error appeared
    Category Message
    Strategy Error on calling 'OnBarUpdate' method for strategy 'PivotATR/5a47cc7a2a2c46f49eb14ef5f3d32cbd': In an instance of Object reference not set to an object.
    Last edited by alexstox; 01-24-2014, 11:39 AM.

    #2
    Hello alexstox,

    You can abort a backtest by clicking the Abort button in the lower right corner of the Control Center.

    Sometimes it can take short while to abort the procedure.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      What about error? Need your comment.

      Comment


        #4
        Hello alexstox,

        Does this error appear if you add the strategy to a chart outside of the Strategy Analyzer?

        It may be that the backtest engine suddenly had the data series removed without being aborted first.

        If you abort the backtest before closing the window do you still receive this message?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I'm sorry. I've found problem in script.

          And as always another one appeared

          An Enter() method to submit an entry order at '08.06.2010 21:00:00' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.
          Oh! I really don't like this error. It could take a lot of time to find one

          Do you have a case that leads to this error more often?

          Comment


            #6
            Hi alexstox,

            You may be trying to submit an order in a direction you are already in and it is affected by the Entries per direction parameter when adding the strategy.

            Try increasing this and see if it stops the errors.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Well. I'll check that. But I use UniqueEntries=1 and just control entries up to 3, one by one.

              Comment


                #8
                Hello alexstox,

                What is the Entries per direction set to?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_ChelseaB View Post
                  Hello alexstox,

                  What is the Entries per direction set to?
                  Code:
                  EntriesPerDirection = 1; 
                  EntryHandling = EntryHandling.UniqueEntries;
                  Now I'm trying to search reason. As I see from chart, there are third long entry and addition condition for long lead to this error. I should analyze managing of those entries. Earlier everything was OK.

                  Comment


                    #10
                    Hi alexstox,

                    I'm not sure about your logic, but I can tell you with Entries per direction set to 1, you will only be able to place 1 long order or 1 short order.

                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_ChelseaB View Post
                      Hi alexstox,

                      I'm not sure about your logic, but I can tell you with Entries per direction set to 1, you will only be able to place 1 long order or 1 short order.

                      http://www.ninjatrader.com/support/h...rdirection.htm
                      No, I knew that. I use as I wrote.
                      I just manage them in OnBarUpdate() via some conditions, than control in OnExecution() and trails orders too.

                      So, I just don't need more than 3 entries per direction. But maybe add 2 more soon.

                      Comment


                        #12
                        I found problem =)
                        I add target orders in addition to trails earlier. I'll fix it. Thanks.
                        After that target, only Third order works =)
                        Click image for larger version

Name:	123.PNG
Views:	1
Size:	41.0 KB
ID:	869768

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by junkone, Today, 11:37 AM
                        0 responses
                        2 views
                        0 likes
                        Last Post junkone
                        by junkone
                         
                        Started by quantismo, 04-17-2024, 05:13 PM
                        5 responses
                        34 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by proptrade13, Today, 11:06 AM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_Clayton  
                        Started by love2code2trade, 04-17-2024, 01:45 PM
                        4 responses
                        34 views
                        0 likes
                        Last Post love2code2trade  
                        Started by cls71, Today, 04:45 AM
                        2 responses
                        10 views
                        0 likes
                        Last Post eDanny
                        by eDanny
                         
                        Working...
                        X