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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      97 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      141 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      76 views
      0 likes
      Last Post PaulMohn  
      Working...
      X