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 AlessioCianini12, Today, 01:38 AM
        0 responses
        17 views
        0 likes
        Last Post AlessioCianini12  
        Started by nandhumca, Yesterday, 11:54 PM
        0 responses
        19 views
        0 likes
        Last Post nandhumca  
        Started by nandhumca, Yesterday, 11:51 PM
        0 responses
        18 views
        0 likes
        Last Post nandhumca  
        Started by ezrollin, Yesterday, 11:48 PM
        2 responses
        18 views
        0 likes
        Last Post ezrollin  
        Started by jjanguda, Yesterday, 10:15 PM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X