Dear all,
I would like to have a screener which list me all US actions where the supertrend[3,10] was red and changed to green . I want only the actions where the supertrend is green on the last candle or the last 2-3 candles max.
Is it possible ?
I tried some scripts but it doesn’t work.
Thank you for your help.
++
There you go (min 2 bars, max 3 bars):
MinBars = 2
MaxBars = 3
ST = Supertrend[3,10]
Green = close > ST
Red = close < ST
CX = summation[MinBars](Green)
c1 = (CX = MinBars)
c2 = Red[MaxBars]
Cond = c1 AND c2
SCREENER[Cond AND (high <> low)](CX AS "Bars above")
//SCREENER[Cond AND (high <> low)](c2 AS "Red")