3 consecutive candles in trend

 

Good morning guys, I'm having trouble creating an arrow in this function, could someone please give me a tip

If there is a rising candle followed by another rising candle which, in turn, does not extend beyond the shadow of the previous candle; and after the second candle there is a falling candle that covers with its body the size of the previous rising candle — we will assume that the reversal will generate an arrow.


if(open[bar+3]<close[bar+3] && open[bar+2]<close[bar+2] && close[bar+2]<high[bar+3] && open[bar+1]>close[bar+1] && close[bar+1]<open[bar+2])

thankful
 
Olá, uma dica se vc perguntar em ingles aconselho e ir no forum de idioma ingles, pq senão dificilmente obterá sua resposta