PROTECTED SOURCE SCRIPT

RSI + Stoch Divergence Pro

9
This indicator combines the Relative Strength Index (RSI) and Stochastic Oscillator in a single panel and automatically detects bullish and bearish divergences using RSI pivot structure. It is designed to provide a clean, momentum-focused view with divergence confirmation and overbought/oversold context.

The RSI is plotted as a thick primary momentum line, while the Stochastic %K and %D lines are shown as fast momentum overlays. Built-in divergence logic draws lines and labels (“Bull” / “Bear”) directly on the oscillator to highlight potential reversal zones.

Features:

RSI and Stochastic displayed together (shared 0–100 scale)

Automatic bullish and bearish RSI divergence detection

Visual divergence lines and labels

Clear overbought/oversold levels for both RSI and Stochastic

Clean, solid-line visual style by default

Suitable for scalping, intraday, and swing trading

Typical use:
Look for divergence signals near overbought/oversold zones and confirm with Stochastic momentum shifts or crossovers for higher-probability setups.snapshot

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.