How to formulate Wide bar in tradingview

Fran8

Active member
Sep 10, 2008
212
1
28
#1
Hi

I would like how to programme the following in tradingview but I do not know how to do it that is why I need help please.

Well what Im trying to do is find the if the current bar has the biggest sprea (high - low) of the last 7 bars but only if they are red candels. So basically if from the 7 candles only three are red (close < open) then the current bar spread will be compared to this three bars.

Thanks for the help