Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No backtest results prior to certain date...

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

    No backtest results prior to certain date...

    I've ran a strategy with results every month from feb 2013 to nov 2013 but when I run it prior to feb back into the prior year it's all of a sudden having 0 trades every month(tried every month in 2012). I have data all the way back to 2008 so it can't be due to that. I don't see any errors popping up in the output. It's a multi script running about 300 instruments.

    Is there anything simple that could be causing this?
    Last edited by zachj; 12-10-2013, 09:52 PM.

    #2
    Hi Zachj,

    Thank you for your post.

    How are you confirming that you have all the data for all the instruments?

    What could be occurring is that your CurrentBars check, one of the instruments could be missing the data and thus breaking the strategy
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I've ran other strategies using all the same instruments for the period not working on this current strategy and I am getting results. Wouldn't I get an error pop up for an instrument that doesn't have data available? I've seen the error in the past.

      Is there any sort of print statement I can do to check for missing instrument data?

      Comment


        #4
        ZachJ,

        There is not a print statement available for that but you can put in print statements in and around your conditions to see where the code is breaking when doing the backtest.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Do you recommend a specific print statement to check for breaking?

          Comment


            #6
            ZachJ,

            It really could be something like this -

            Code:
            Print("I got called before the condition");
            if( test something here)
            {
                Print("i got called cause the condition was true");
            }
            Essentially, all we are looking for is when print statements get printed and when they don't. When they don't when they should have then we know it is the code before that print statement that is causing the issue.
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              I had to bite the bullet and go through all the data for each instrument and found one that was missing data prior to February. I wish the analyzer would just pop up an error for an instrument when the data is missing.
              I'm fairly certain I remember it providing an error message previously, like about 4months ago. Is there something that changed with the last update that eliminated this? Either way would it make sense to maybe put in a request for an error warning message for a future release?

              Comment


                #8
                Zachj,

                I will forward this thread to development to consider in the next major release of NinjaTrader.

                Let me know if I can be of further assistance.
                Cal H.NinjaTrader Customer Service

                Comment


                  #9
                  Just a follow up to this, I use TD ameritrade for live feed and historical data which goes back about 1 1/4 yrs. I did download data further back from Esignal but some of the instruments didn't download for some reason. So if I try to go back more than 1 1/4yrs, for instruments that didn't pick up the esignal data and that are strickly just pulling from Ameritrade, I do get an error message notifying me for the particular symbol. But in this case for the ticker AXLL only gets data back to feb of this year and it wasn't showing an error message. So there must be something else going on there that NT isn't seeing as an error.

                  Comment


                    #10
                    One other thing I just discovered, the instrument symbol that is missing the historical data for backtesting will show up in the Control Center on the bottom right if you keep watching it. Have to be Connected though. Spent two days sifting through the data manager to see which one was missing may 2012 when the whole time it was right there in the control center. I'm running about 300 instruments through one script so sifting through all that data is just not practical.
                    Last edited by zachj; 12-16-2013, 08:38 PM.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Tim-c, Today, 02:10 PM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by Taddypole, Today, 02:47 PM
                    0 responses
                    2 views
                    0 likes
                    Last Post Taddypole  
                    Started by chbruno, 04-24-2024, 04:10 PM
                    4 responses
                    50 views
                    0 likes
                    Last Post chbruno
                    by chbruno
                     
                    Started by TraderG23, 12-08-2023, 07:56 AM
                    10 responses
                    399 views
                    1 like
                    Last Post beobast
                    by beobast
                     
                    Started by lorem, Yesterday, 09:18 AM
                    5 responses
                    25 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Working...
                    X