Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IDataseries referencing

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

    IDataseries referencing

    Code:
     
    // Compares the primary bar's low price to the 5-
    if (Low[0] > Lows[1][0])
    Print("The current bar's low price is greater");
    Based on the documentation, P 514 of the manual, I don't believe this statement will ever print. Shouldn't it be : Lows[0][1] ?

    The first argument is BarSeriesIndex, the second one is barsAgo.

    Please clarify.

    #2
    Low[0] is equivalent to Lows[0][0]
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      Low[0] is equivalent to Lows[0][0]
      thanks ray....now I see it was 1 time period compared to another (5 minutes).
      Low[0] would never be different than Low[0][0].

      Comment


        #4
        Low[0] depends on which BarsInProgress context you are in. If you are using it in BarsInProgress == 0 it is equivalent to Lows[0][0]. If you are in BarsInProgress == 1 then Low[0] would be equivalent to Lows[1][0].
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        627 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X