Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HighestBar() LowestBar()

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

    HighestBar() LowestBar()

    Hello,

    Quick question, if there are two or more bars that have the same highest/lowest value over look back number of bars, what bar is returned? It is the most recent bar?

    Thanks,
    Matt

    #2
    Hi Stealth, thanks for writing in. It would return the most recent bar found. To test it, I used a 1 second ES chart where I know there should be a lot of similar values between bars. There was luckily one right at the end of todays data, so I ran a test script:

    if(CurrentBar == Bars.Count-2)
    Print(HighestBar(High, 39));



    Kind regards. ​

    Comment


      #3
      Hi Chris,

      Thank you! And, thank you for taking the time to test that. I just figured it might in some "undocumented" documentation.

      Have a great weekend!
      Matt

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X