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.

      http://www.ninjatrader.com/support/f...lastbarpainted

      Comment


        #4
        Found the way, thanks

        Juan

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by TraderElegante, Today, 12:25 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by cliffhu, Today, 12:19 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by mattdowns1234, Today, 11:50 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by Impeesa, Today, 11:57 AM
        1 response
        1 view
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by EquityTrader, Today, 09:59 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X