rsi-divergence-momentum-oscillator.orrnn (//@orrnn=1)
//@orrnn=1
indicator("RSI Divergence Oscillator", overlay = false, max_bars_back = 300)
let len = input.int(14, title = "RSI Period", minval = 2, maxval = 50)
let r = ta.rsi(close, len)
plot(r, title = "RSI", color = color.primary, linewidth = 2)
hline(70, title = "Overbought", color = color.danger)
hline(50, title = "Midline", color = color.neutral)
hline(30, title = "Oversold", color = color.success)Documentation
Detects hidden and regular RSI divergences with clean hlines at 30/50/70.
Developer Comments (1)
@trader_demo
Clean OrrnnScript structure — compiled to .rx5 without warnings.