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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        36 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        23 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        96 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        152 views
        2 likes
        Last Post CaptainJack  
        Working...
        X