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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        318 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X