Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using MAX() ignoring last 5 bars

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

    Using MAX() ignoring last 5 bars

    I can not see why this simple code is not returning a value.

    Plot0.Set(MAX(High, 10)[5]);

    If I use an index value of 0 I get values.
    Plot0.Set(MAX(High, 10)[0]);

    Thanks.

    #2
    Welcome to our forums - you likely miss a CurrentBars check at your OnBarUpdate() start -

    Comment


      #3
      Thanks Bertrand,

      The info in your link has resolved my issue.
      I just installed the software yesterday and it has been a very long time since I did any programing.
      I hope all my questions are that easy to solve.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X