Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last Bars of a chart

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

    Last Bars of a chart

    Hello

    How can I detect the last bar of a chart?
    I though about CurrentBar==Bars.Count but it does not work.

    How can I detect the last closed bar?

    Thanks

    JUan

    #2
    Originally posted by jriverac View Post
    Hello

    How can I detect the last bar of a chart?
    I though about CurrentBar==Bars.Count but it does not work.

    How can I detect the last closed bar?

    Thanks

    JUan
    Can you give some more context? These questions are confusing.

    Are you trying to avoid historical data?

    search help for Historical to avoid historical, then all your bars will be current.

    Comment


      #3
      Originally posted by jriverac View Post
      Hello

      How can I detect the last bar of a chart?
      I though about CurrentBar==Bars.Count but it does not work.

      How can I detect the last closed bar?

      Thanks

      JUan
      Take a gander at my responses in this thread, and see if it helps.

      Comment


        #4
        Found the way, thanks

        Juan

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by chartchart, 05-19-2021, 04:14 PM
        3 responses
        577 views
        1 like
        Last Post NinjaTrader_Gaby  
        Started by bsbisme, Yesterday, 02:08 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by prdecast, Today, 06:07 AM
        0 responses
        3 views
        0 likes
        Last Post prdecast  
        Started by i019945nj, 12-14-2023, 06:41 AM
        3 responses
        60 views
        0 likes
        Last Post i019945nj  
        Started by TraderBCL, Today, 04:38 AM
        2 responses
        18 views
        0 likes
        Last Post TraderBCL  
        Working...
        X