Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting hangs NT

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

    Backtesting hangs NT

    Hi,

    I've been backtesting a strategy using 6 months of 1 min data of Nikkei 225 futures. After running a backtest twice with changes to the parameters in the code, NT almost grounds to a halt. Even the pop-up window before backtesting is run takes ages to load. Is this a memory issue? If so, is there any workaround like allocating more virtual memory or something?

    #2
    Hello kaywai,

    I am not sure what if causing slowness after you performed 2 backtests. Does the issue persist if you restart NinjaTrader?

    What happens if you backtest the SampleMACrossOver strategy twice; does NinjaTrader become slow as well once you ran the backtests?

    Could it be the backtest was still running when you experienced the slowness?
    JasonNinjaTrader Customer Service

    Comment


      #3
      Hi Jason,

      The problem doesnot happen after I restart NT.

      I don't know whether the backtest was still running but the previous two results had already been produced and I wanted to do a third backtest. That was when it slowed...

      It certainly processes a lot faster with the sample MA crossover strategy.

      Comment


        #4
        Hello kaywai,

        Please let me know if the slowness persists after you backtested.

        Generally, if you experience slowness of the software, please reduce resource request and check if this will make a difference.

        Check if you are running workspaces in the background (these will request data & resources as well) and close them. Can you please restart NinjaTrader and go to File-->Workspaces and check what workspaces are listed below 'Save Workspace As'. The workspace with the checkmark is the workspace opened on your monitor. Any additional workspaces listed, are opened in the background.

        Select a workspace without a checkmark and subsequently go to File-->Workspaces-->Close Workspace. Repeat this process until only one workspace is opened.

        Close some charts, SuperDOM's or other NinjaTrader windows. Reduce the amount of indicators in your chart or set 'Calculate on bar close' to True. Reduce the amount of historical data in your charts by configuring the Format Data Series window.

        More tips can be found at the following link.
        Last edited by NinjaTrader_Jason; 03-16-2010, 06:35 AM.
        JasonNinjaTrader Customer Service

        Comment


          #5
          cool. thx jason!

          Comment


            #6
            Jason,
            How do I reduce resource request? Is 6 months worth of 1 minute data too much if you use timeframes other than 1 minute?

            I only had the strategy analyzer opened/running and I still had the same problem. Had to shut it down at least 10 times this evening.

            Comment


              #7
              Hi,

              Can you clarify which instruments you are testing because 6 months worth of 1 minute data should not be too much, but it may be that the data is not present for back testing and so it freezes.

              You can check this by opening a chart for the same time period that you are back-testing and making sure the data is present.
              Ryan O.NinjaTrader Customer Service

              Comment


                #8
                Hi Ryan,

                The instrument is the Nikkei 225 futures listed on the Singapore Exchange. The data is present because it was imported to NT and I have been using the same data for indicator construction.

                As I mentioned earlier, the first 2 times of backtesting, there doesn't seem to be any issues but by the third time of using the same data with different parameter (tweaking of the parameters), the whole thing freezes. I can't even get backtesting to run! This is because the window which opens before backtesting can commence can't even open!

                Comment


                  #9
                  Hello kaywai,

                  It seems to be related to the strategy you are backtesting, since it does not occur when backtesting the SampleMACrossOver strategy, correct? Does your strategy use many calculations and conditions? I suggest to reduce the amount of historical data in your backtest and check if this will make a difference.

                  In addition, NinjaTrader 7 has been improved in this regard. Please see the link below for more information.


                  General Application Performance
                  This is an area that we spent a lot of time on during the development of NinjaTrader 7. We re-wrote core sections of the application to be more efficient in terms of memory usage and CPU utilization.
                  JasonNinjaTrader Customer Service

                  Comment


                    #10
                    Hi Jason, Perhaps you are correct. There doesn't seem to be any issues when I use my strategy as an indicator. Works fine. 3 additional lines for a the entry, exit shouldn't hurt it, right? But it doesn't happen after the first backtesting...or the second...does that mean it can't flush out the memory or something because it has no reason to store past backtesting.

                    How reliable is NT7 now? how many more betas to go? will my existing indicators that i created be made redundant? is there a manual to come along with it for beta users?

                    Comment


                      #11
                      Hello kaywai,

                      Unfortunately I am not sure if I follow. What do you mean by using your strategy as indicator?

                      NinjaTrader 7 is still in beta phase. I am not sure how many beta versions will be released before it is released as production version.

                      There are changes in regards to NinjaScript between version 6.5 and 7. Please see the following link for more information.
                      Contains critical information including but not limited to migration, installation, connections and changes.
                      JasonNinjaTrader Customer Service

                      Comment


                        #12
                        There were a few methods within the indicator that I couldn't call up from the strategy...so i cut & pasted the whole indicator to the strategy.

                        Comment


                          #13
                          Ok, so how did you backtest it after converting to an indicator?

                          Not sure how to interpret: "does that mean it can't flush out the memory or something because it has no reason to store past backtesting."
                          JasonNinjaTrader Customer Service

                          Comment


                            #14
                            it was originally an indicator which i tried to automate but not the conventional type of indicator...works fine as an indicator. backtesting it is the problem...i should say the hanging is the problem.

                            "does that mean it can't flush out the memory or something because it has no reason to store past backtesting." this means that by running the backtesting it is unable to clear out the previous backtesting and bloats itself till it has run out of memory and hangs....technical stuff that i'm not too sure about but came across before. system dump or memory dump?

                            Comment


                              #15
                              I do not think this is the case; if this was a loop, it should occur on the first backtest as well.

                              Unfortunately I am not sure what is causing the issue. I suggest to reduce the historical data used in the backtest and check if this will avoid it.
                              JasonNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by mishhh, 05-25-2010, 08:54 AM
                              19 responses
                              6,189 views
                              0 likes
                              Last Post rene69851  
                              Started by gwenael, Today, 09:29 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post gwenael
                              by gwenael
                               
                              Started by Karado58, 11-26-2012, 02:57 PM
                              8 responses
                              14,830 views
                              0 likes
                              Last Post Option Whisperer  
                              Started by Option Whisperer, Today, 09:05 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post Option Whisperer  
                              Started by cre8able, Yesterday, 01:16 PM
                              3 responses
                              11 views
                              0 likes
                              Last Post cre8able  
                              Working...
                              X