Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How does Historical work?

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

    How does Historical work?

    When you refresh a chart, all of the bars "Historical" property are set to true, up to the 'current bar'. What if I wanted to know whether a bar has been shown on the chart yet? It may or may not be historical. For example, in Market Replay, if I scroll back to a previous date, and hit F5, I want to access a property that tells me whether each bar has been shown on the chart yet, or whether I have to scroll forward to see it. Does that make sense?

    We're trying to suppress an indicator from showing for 'displayed' bars, but I want to show the indicator if you scroll forward after refreshing.

    Bryan

    #2
    cassb, unfortunately I'm not sure if I understand your question correctly. Once you refresh a chart with F5, all of the NinjaScripts are also refreshed and recalculated from the beginning of the chart, and all bars on the chart are marked historical. It is not possible to persist values across a refresh.
    AustinNinjaTrader Customer Service

    Comment


      #3
      OK, I thought so. I just wondered if there was a method or property to tell me what is the right-most visible bar on the chart.

      Comment


        #4
        cassb, there are no supported methods to get the right-most bar visible bar.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        27 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        18 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X