tonbParticipant
Junior
I am looking for an indicator (NQ-MNQ)that gives a signal for a
bull candele when de range open-low is between 20 and 40 ticks.
bear candle when de range open-high is between 20 and 40 ticks.
minRango = 20 * ticksize
maxRango = 40 * ticksize
bullCond = (open - low >= minRango) AND (open - low <= maxRango)
bearCond = (high - open >= minRango) AND (high - open <= maxRango)
return bullcond style(histogram)coloured("green"),bearcond style(histogram)coloured("red")
tonbParticipant
Junior
I may not have been completely clear but it concerns the upper wick (bear candele) and de lower wick (bull candele) see picture
You can add open>close and open<close in order to select bear/bull candles.