Hi
Need to have an simple loop witch can return how many bars in a row that meets a condtion like this :
how many bars in a row have a lower high or equal high then the last bars high
how many bars in a row have a higher low or equal low then the last bars low
and then a function wich tells me if last canle is bearish or bullish
and a function that return how many of the last 100 candles was bullish
Is there a quick one who got time for this
Thx in advance