Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Refresh Historical Data Programatically

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

    How to Refresh Historical Data Programatically

    I see differences (in the entries mostly) between my strategy running on RealTime for a whole session and the results if I open a new chart at the end of the day and run the strategy on totally refreshed data. YES, there are better results on the historical data. I dont really put that down to 'slippage': I think there is more involved.

    My gut feeling on this is a need to refresh historical data after the completion of each trade ('clean slate theory'), and it would be so nice to do that within the strategy without having to re-enable it. Any ideas on how that can be accomplished ??

    I am open to any and all suggestions.

    Jon

    #2
    Hi Jon,

    There's no supported technique for reloading data programatically. You can always manually reload but it's unfortunately not available through code.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan ... I was thinking that was the answer, but I had hopes !!! Please ask the development team if they would at it to the 'maybe' column on their to-do-list?!

      Jon

      Comment


        #4
        Any news regarding this? I would appreciate this as well.

        I've seen recently that Multicharts provides this functionality by mapping an instrument to a .CSV file and it works quite well. Is anything like this available or planned to be done on NT?

        Comment


          #5
          This is on our feedback list, but unfortunately we can't comment on when or if it will be implemented. Thank you for the suggestions and comments.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_RyanM View Post
            This is on our feedback list, but unfortunately we can't comment on when or if it will be implemented. Thank you for the suggestions and comments.
            OK, Its been a year... Any word on when or if this will ever be implemented??

            Thanks!

            SD

            Comment


              #7
              Thanks for posting SD. I do not have an update but will be sure to add your vote to this request.

              If you want to look into coding an alternative, check C# references for SendKeys. The keyboard shortcut for reloading historical data is Control + Shift + R.
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                Another vote here.

                Comment


                  #9
                  Thanks infin8loop, added into our tracking as well.
                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    I see that trying the SendKeys.Send function is suggested in several places on the forum, but I couldn't find a working example of it. Here's how I was able to reload historical data from an indicator on a chart:
                    // Make sure chart window is active.
                    ChartControl.ParentForm.Activate();
                    // Ctrl-Shift-R = reload historical data.

                    SendKeys.SendWait("^+R");

                    Two important things to note:
                    1. SendWait() worked while Send() didn't.
                    2. The chart window needs to be the active window.

                    Comment


                      #11
                      Upvote managed reloading

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by bortz, 11-06-2023, 08:04 AM
                      47 responses
                      1,603 views
                      0 likes
                      Last Post aligator  
                      Started by jaybedreamin, Today, 05:56 PM
                      0 responses
                      8 views
                      0 likes
                      Last Post jaybedreamin  
                      Started by DJ888, 04-16-2024, 06:09 PM
                      6 responses
                      18 views
                      0 likes
                      Last Post DJ888
                      by DJ888
                       
                      Started by Jon17, Today, 04:33 PM
                      0 responses
                      4 views
                      0 likes
                      Last Post Jon17
                      by Jon17
                       
                      Started by Javierw.ok, Today, 04:12 PM
                      0 responses
                      12 views
                      0 likes
                      Last Post Javierw.ok  
                      Working...
                      X