RicardoSantos

[RS]RSI Divergence V0

request for JR:
Remove from Favorite Scripts Add to Favorite Scripts
study(title="RSI Divergence V0", shorttitle="RSID.V0", overlay=false)

source = close

rsi1 = rsi(source, input(14))
rsi2 = rsi(source, input(50))

divergence = rsi1 - rsi2

plot(rsi1, color=black, style=histogram, linewidth=1, histbase=50)
plot(rsi2, color=gray, style=histogram, linewidth=2, histbase=50)
plot(divergence, color=black, style=line, linewidth=1)
plot(rsi1, color=black, style=line, linewidth=1)
plot(rsi2, color=black, style=line, linewidth=1)

hline(0)
hline(40)
hline(60)