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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X