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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        476 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        254 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        340 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        305 views
        0 likes
        Last Post CarlTrading  
        Working...
        X