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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        125 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        84 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X