PROTECTED SOURCE SCRIPT
RSI + Stoch Divergence Pro

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.
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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.