Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cant run backtest

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

    Cant run backtest

    Hi,
    i would need an advice if you can..
    My NinjaTrader can not run backtest in strategy analyzer.
    When i start NinjaTrader there is everything all right and everything works..
    when i click File - new - strategy analyzer then i choose any market (for example ER2 ##-##) and right click and choose BACKTEST then will everything stop... ninjatrader freeze (iam not sure this is the right term..) ..nothig works and i have to restart ninjatrader.

    But 2 days ago it worked corectly and i was using backtest for 2 months..
    but since yesterday it doesnt work.

    Could you help me?
    Thank you

    #2
    Please try on minute charts with the SampleMACrossOver. It sounds like you are either backtesting too long a period or your strategy is in some sort of high CPU intensity calculations while backtesting.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      But i can not run the backtest window...
      i right click ER2##-## and left click Backtest and then is CPU Usage 100% and nothing happens...

      i can not open <a href="http://www.cannontrading.com/images/ninja-trader-TradingSystemDevelopmentBacktesting_StrategyAnalyz er.png">this</a> backtest window. When i am trying to open the window (right click ER2##-## and left click Backtest) it stops everything, nothing works and the window is not opening

      it happend to me on two different computers in the same day

      P.S. sorry for my english

      Comment


        #4
        sorry for the <a href...></a> line
        i though it will create the click link, you know

        Comment


          #5
          zooinek, the ER2 is an old contact, this would be now the TF - can you retry with this one?

          Also: which NinjaTrader version are you using? You can check this under Help > About.l
          BertrandNinjaTrader Customer Service

          Comment


            #6
            i have version 6.5.1000.7
            i know that ER2 is an old name and now it is TF but i had old historic data from 2007 and there it was ER2...
            but thats not important.. the backtest window is not working on ER2 and also on FESX 06-08 ... i have no more historic data.

            It worked on ER2 and on FESX on both computers few days ago and now it is not working. It stopped to work on both computers in the same day. On the both contracts which i have (ER2 and FESX).

            Thank you

            Comment


              #7
              zooinek,

              One reason you may hit 100% is if there was some runtime errors in a script somewhere on your system in the Initialize() method. Please remove all custom strategies and then try again to see if you can bring up that window.

              Please also upgrade to 6.5.1000.10. Thank you.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Yes its working now..
                i removed the last custom strategies..
                now i import the strategies back..
                theese two strategies has this initialize method:

                protected override void Initialize()
                {
                CalculateOnBarClose = true;
                ExitOnClose = true;
                Add(PeriodType.Tick, 1);
                EntriesPerDirection = 10;
                EntryHandling = EntryHandling.AllEntries;
                }

                Comment


                  #9
                  So are you still having issues? Adding a 1 tick time frame is VERY resource intensive on your computer. Depending on the time range you try to select you may run out of memory to hold such an extensive data set.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    is there any other way how could i get informations about every tick?
                    when i am programming any strategy and i need to enter long every time, when price is crossing my line line1
                    so i made:
                    if (BarsInProgress==3) { // 1 tick time frame
                    if (Close[0]=>line1 && Close[1]<line1) {
                    EnterLong();
                    }
                    }

                    Comment


                      #11
                      zooinek,

                      Unfortunately not. Backtesting just doesn't have the granularity you are looking for. If you want every tick you should forward test instead. Please try using Market Replay or just test against real-time data.
                      Josh P.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by f.saeidi, Today, 11:02 AM
                      1 response
                      1 view
                      0 likes
                      Last Post NinjaTrader_BrandonH  
                      Started by geotrades1, Today, 10:02 AM
                      4 responses
                      12 views
                      0 likes
                      Last Post geotrades1  
                      Started by rajendrasubedi2023, Today, 09:50 AM
                      3 responses
                      15 views
                      0 likes
                      Last Post NinjaTrader_BrandonH  
                      Started by lorem, Today, 09:18 AM
                      2 responses
                      11 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by geddyisodin, Today, 05:20 AM
                      4 responses
                      30 views
                      0 likes
                      Last Post geddyisodin  
                      Working...
                      X