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 daven, Today, 09:49 AM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_Eleanore  
      Started by omermirza, 01-15-2021, 01:15 PM
      13 responses
      117 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by Island_Boy_Trading, Today, 07:39 AM
      2 responses
      15 views
      0 likes
      Last Post Island_Boy_Trading  
      Started by cmarkb, Today, 07:19 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by wjadevries, Today, 03:29 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Jim  
      Working...
      X