Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to tell 'screen refresh' bars

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

    How to tell 'screen refresh' bars

    When you press F5 and refresh a chart, each bar is processed through each indicator on the chart. In the OnBarUpdate() for these indicators, how do you tell that the bar being processed is a 'refresh' bar, as opposed to a historical or 'current' bar? The Historical flag is true on all bars, whether refreshing the chart or manually stepping through the chart bar by bar, so that won't work. I need to know this for my custom indicators.

    Thanks!
    Bryan

    #2
    Hi Bryan, unfortunately a programmatic NS reload / refresh (the F5) is not supported.

    Comment


      #3
      Well, that's not quite what I was asking. I don't want to refresh programmatically. What I want to know is how to tell in the OnBarUpdate() whether a bar that's being processed is the result of a refresh or not.

      Comment


        #4
        Thanks for clarifying Bryan - sorry there's no method available to track this either, Historical is tied to chart data.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X