Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Easy way to determine last bar?

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

    Easy way to determine last bar?

    Is there an easy way to determine if the current bar is the last bar (other than looking at the date/time and trying to guess or run an indicator/strategy twice while counting the bars the first time)?

    #2
    In real-time? If yes, the first time Historical is false would be your answer.

    if (!Historical)
    // First time this is false then you are on the right most bar

    If working on only a historical data series, then check out the Count property.

    http://www.ninjatrader-support.com/H...eV6/Count.html
    RayNinjaTrader Customer Service

    Comment


      #3
      Perfect, Count is exactly what I was looking for. Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rustyspring, Today, 05:15 PM
      0 responses
      1 view
      0 likes
      Last Post rustyspring  
      Started by xulu13, Today, 05:01 PM
      0 responses
      5 views
      0 likes
      Last Post xulu13
      by xulu13
       
      Started by Pbarrionuevo, Today, 04:30 PM
      0 responses
      6 views
      0 likes
      Last Post Pbarrionuevo  
      Started by vantojo, Today, 01:39 PM
      0 responses
      19 views
      0 likes
      Last Post vantojo
      by vantojo
       
      Started by Rubens_2020, Today, 01:48 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X