Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reload HIstorical Data In NinjaScript

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

    Reload HIstorical Data In NinjaScript

    I am wondering if Ninja8 offers a way to programmatically refresh all data series or one specific one. This was asked back during the Ninja7 days but was not available unless one would employ an outside macro tool. Thanks in advance.

    #2
    Hello molecool,

    While there is a way to do this, it comes with some warnings as you can see in the help guide. Please use caution if you use this method as this can cause heavy load or as noted it may become recursive.



    If you have a different use from what the help guide suggests, I can also put in a feature request for a more specific option. Outside of this item, there is not necessarily a suggested way to do this programmatically.

    I look forward to being of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello molecool,

      While there is a way to do this, it comes with some warnings as you can see in the help guide. Please use caution if you use this method as this can cause heavy load or as noted it may become recursive.



      If you have a different use from what the help guide suggests, I can also put in a feature request for a more specific option. Outside of this item, there is not necessarily a suggested way to do this programmatically.

      I look forward to being of further assistance.
      Thanks for that Jesse. I just wrote a quick test indicator which triggers a chart reload after 500 live price changes. The call is reached but I don't see the chart updating itself - just keeps on ticking.

      Isn't the entire chart supposed to refresh?

      Comment


        #4
        Hello molecool,

        Thank you for the reply.

        Can you provide more specifics on your test?

        Although the help guide specifically states this should only be used with OnConnectionStatusUpdate, I did a quick test myself in OnBarUpdate and see the "Loading" in the top left of the chart after calling the method. It is possible that this will not work in all use cases based on the help guide comments, can you share more details on your test and the chart/dataseries setup?

        I look forward to being of further assistance.

        Comment


          #5
          Originally posted by NinjaTrader_Jesse View Post
          Hello molecool,

          Thank you for the reply.

          Can you provide more specifics on your test?

          Although the help guide specifically states this should only be used with OnConnectionStatusUpdate, I did a quick test myself in OnBarUpdate and see the "Loading" in the top left of the chart after calling the method. It is possible that this will not work in all use cases based on the help guide comments, can you share more details on your test and the chart/dataseries setup?

          I look forward to being of further assistance.
          Actually my test wasn't broken - it's that particular instance of NT8. Despite recent updates reload all chart data does not work for me when I do it via the chart menu (or the F5 key). It just does nothing. I guess this also extends to this script call.

          I copied the test to my production machine and tested it there where it worked.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          58 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X