Hi All,
Whilst I understand how to find the lowest low in a data set (bounded oscillator), is it, and if it is possible, how do I find the second or third lowest low?
TIA
Robert
JSParticipant
Senior
Hi
@Robert123
Perhaps not the most elegant way…
DefParam DrawOnLastBarOnly=true
For i=0 to 20
$Low[i]=Low[i]
Next
ArraySort($Low,Ascend)
Low1=$Low[0]
Low2=$Low[1]
Low3=$Low[2]
DrawText("Low1=#Low1#",BarIndex,High+30)
DrawText("Low2=#Low2#",BarIndex,High+20)
DrawText("Low3=#Low3#",BarIndex,High+10)
Return
JSParticipant
Senior
Hi Robert,
A small explanation (if necessary)…
You fill the array $Low with the last 20 “Lows”…
You sort the array $Low ascending so that the “smallest lows” are at the front…
After this you can use the obtained values as you wish…
JS,
Thank you very much works perfectly- after several coffees!
Again thanks for your help.
RR