SLParticipant
New
Hello all,
Happy to be here again!
I am sorry, please help to point to the link if this question had been asked before 🙂
Is there a way in ProRealCode to get the BarIndex when using Highest or Lowest functions…
for example:
x = Highest[60](Close[1])
y = ??? I want to know “y” the BarIndex position where x happen.
Thank you very much any help. Have a nice weekend. :))
Post moved to Probuilder forum as this is a more relevant forum for this question than the Welcome New Members forum. Please try to post in the correct forum with future topics.
You can try this:
period = 60
hh = highest[period](high)
hhindex = 0
for a = 0 to period - 1
if high[a] = hh then
hhindex = barindex[a]
break
endif
next
return hhindex