Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MIN and MAX

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

    MIN and MAX

    Will

    double value = MAX(High, 0)[0];

    return the High of the current bar or do I need

    double value = MAX(High, 1)[0];

    Is the current bar #0 or #1 for MIN, MAX? I know [0] tells it to start at the current bar.
    Last edited by snaphook; 04-27-2011, 12:47 PM.

    #2
    Hello,

    Thanks for the post.

    0 would be current bar.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      To further clarify. When you talking about lookback period. A look back value of 1 would return the current high value of the current bar. A look back period of 0 also does this as well and is the same value. However you really should only use a lookback period of 1 or greater.

      The concept of lookback period vs BarBack is slightly different in this regard.
      BrettNinjaTrader Product Management

      Comment


        #4
        Thanks for that further clarification. That might be a nice addition to the Help file.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X