//@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)