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 JackyP, 07-25-2023, 08:39 AM
                      3 responses
                      318 views
                      0 likes
                      Last Post Lancer
                      by Lancer
                       
                      Started by TiffanyMiller, Yesterday, 10:19 PM
                      0 responses
                      6 views
                      0 likes
                      Last Post TiffanyMiller  
                      Started by algospoke, 05-13-2024, 06:53 PM
                      12 responses
                      138 views
                      0 likes
                      Last Post algospoke  
                      Started by psangram, Yesterday, 06:35 PM
                      0 responses
                      6 views
                      0 likes
                      Last Post psangram  
                      Started by Alaina19, 07-14-2024, 04:38 PM
                      2 responses
                      17 views
                      0 likes
                      Last Post Alaina19  
                      Working...
                      X