Hello everybody. I’m trying to build a screener with RSI Divergence. I already searched for this topic and I didn’t find what i’m searching for. In the screener, I need to know the last signal diferent from 0 (zero) of the RSI Divergence. I mean, if the last signal was -1, being possible to happened 10 or 20 candlesticks ago, then it will give me -1. Is it possible? The screener I’m buiding is for exemple: usa stocks near pivot point S1 with the last RSI Divergente “1” (bullish).
Thanks a lot for your help.
Regards
JSParticipant
Veteran
Hi @brunoasoliveira
There is an indicator in the library called “Mio divergenza RSI”
Maybe you can convert this indicator into a screener?
Hello everybody. I’m trying to build a screener with RSI Divergence. I already searched for this topic and I didn’t find what i’m searching for. In the screener, I need to know the last signal diferent from 0 (zero) of the RSI Divergence. I mean, if the last signal was -1, being possible to happened 10 or 20 candlesticks ago, then it will give me -1. Is it possible? The screener I’m buiding is for exemple: usa stocks near pivot point S1 with the last RSI Divergente “1” (bullish).
Thanks a lot for your help.
Regards
Here you go for a daily timeframe.
timeframe (1 day)
C1 = DivergenceRSI[5,30,70,20](close[0]) = 1
C2 = DivergenceRSI[5,30,70,20](close[0]) = -1
SCREENER [ C1 OR C2 ] ( DivergenceRSI[5,30,70,20](close[0]) as "RSI Div" )
Above code is for current period, of you want it for 10 days ago, change close[0] to close[9], for 20 days ago change close[0] to close[19]
JSParticipant
Veteran
The indicator “DivergenceRSI” gives three values:
1 = Bullish divergence
-1 = Bearish divergence
0 = no divergence
If you want to look back at what the last signal was, you can use this screener:
Here you look back at 50 bars to check what the last divergence signal was.
xDivRSI = DivergenceRSI[14,30,70,20](close)
For i = 0 to 50
If xDivRSI[i] = 1 then
BackCheck = 1
Break
ElsIf xDivRSI[i] = -1 then
BackCheck = -1
Break
EndIf
Next
Screener[BackCheck](BackCheck as " 1 = Bullish -1 = Bearish")