Can I get help with a screener as stated below please?
UPTREND
EMA20 > EMA50 > EMA100
ADX above 25
Price falls, tests the EMA20 line and closes above it
DOWNTREND
EMA20 < EMA50 < EMA100
ADX above 25
Price rises, tests the EMA20 line and closes below it
In both cases, the screener holds for 3 candles after the bounce
There you go:
Ema20 = average[20,1](close)
Ema50 = average[50,1](close)
Ema100 = average[100,1](close)
EmaLong = Ema20 > Ema50 AND Ema50 > Ema100
EmaShort = Ema20 < Ema50 AND Ema50 < Ema100
MyAdx = Adx[14] > 25
GoLong = EmaLong AND MyAdx AND low <= Ema20 AND close > Ema20
GoShort = EmaShort AND MyAdx AND high >= Ema20 AND close < Ema20
Result = summation[3](GoLong OR GoShort)
SCREENER[Result]
@robertogozzi, thanks. Works very well.