Detects bullish and bearish Regular (Reversal) and Hidden (Trend Continuation) RSI divergences automatically with chart signals.
Copy and paste this code directly into your TradingView Pine Editor
//@version=5
indicator("FxSnip - RSI Divergence Engine", "FxSnip RSI Divergence", overlay=false)
rsiLength = input.int(14, "RSI Length")
rsiSource = input.source(close, "Source")
rsi = ta.rsi(rsiSource, rsiLength)
plot(rsi, "RSI", color=color.purple, linewidth=2)
hline(70, "Overbought", color=color.red, linestyle=hline.style_dashed)
hline(30, "Oversold", color=color.green, linestyle=hline.style_dashed)
hline(50, "Equilibrium", color=color.gray, linestyle=hline.style_dotted)
.ex5 / .mq5 file.The RSI Divergence Engine scans for momentum disagreements between price action and the Relative Strength Index. Identifies both major trend exhaustion reversals and hidden continuation pullbacks.
Need this indicator converted into an automated MT5 Expert Advisor or customized for your specific trading rules?
Order Custom Coding →Loading activity...
Just now