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 r68cervera, Today, 05:29 AM
        0 responses
        2 views
        0 likes
        Last Post r68cervera  
        Started by geddyisodin, Today, 05:20 AM
        0 responses
        3 views
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        34 views
        0 likes
        Last Post JonesJoker  
        Started by GussJ, 03-04-2020, 03:11 PM
        12 responses
        3,239 views
        0 likes
        Last Post Leafcutter  
        Started by AveryFlynn, Today, 04:57 AM
        0 responses
        6 views
        0 likes
        Last Post AveryFlynn  
        Working...
        X