Hi everyone,
I’d like some help in coding a screener in ProRealTime to catch this setup before the breakout candle forms, as shown in the attached chart (OMEX, daily, and AREC, 12hrs). I’m often too late by the time it appears, so I want to be alerted right before the move.
What I’m trying to capture:
On the candle just before the big breakout:
-
Price has broken above a recent level and is retesting it
-
MACD is bullish — signal line cross or histogram rising
-
Stochastic (14,3,5) is in a bullish crossover or just turning upwards
-
ADX (14) is above 25, showing strong trend potential
I’d love help with how to code this setup as a screener:
I’m aiming to catch it one candle before the explosive move, not after it happens.
Thanks.
• Ideally with recent price rising from below and closing above EMA(50) or retesting a previous resistance
Hi. Here you have an example:
//MACD is bullish — signal line cross or histogram rising
mymacd=macdline[12,26,9](close)
signal=macdsignal[12,26,9](close)
histo=MACD[12,26,9](close)
c1=(mymacd crosses over signal) or (histo>histo[1])
//Stochastic bullish cross
stoK=Stochastic[14,3](close)
stoD=Stochasticd[14,3,5](close)
c2=stoK crosses over stoD
//ADX above 25
myadx=adx[14]
c3=myadx>25
//Ideally with recent price rising from below and closing above EMA(50) or retesting a previous resistance
ema50=average[50,1](close)
c4=close>ema50
screener[c1 and c2 and c3 and c4]
This is an amazing screener. You did good, thanks @Iván, and supported by
@robertogozzi. LEGENDS!