OPEN-SOURCE SCRIPT
RSI Divergence on Chart MTF

RSI Divergence Overlay MTF
RSI Divergence Overlay MTF is an advanced divergence detection indicator that identifies RSI-based divergence directly on the price chart without using a separate oscillator panel.
Designed for traders who prefer a cleaner chart layout, this script plots divergence signals on candlesticks while allowing multi-timeframe RSI analysis for higher-timeframe confirmation.
Features
Detects Bullish Divergence
Detects Bearish Divergence
Optional Hidden Bullish / Hidden Bearish Divergence
Displays signals directly on the main price chart
No lower RSI panel / oscillator clutter
Supports Multi-Timeframe RSI Divergence Detection
Customizable RSI Length, Source, Pivot Sensitivity, and Signal Display
Built-in Alert Conditions
Non-repainting logic using confirmed pivot points
How It Works
The indicator compares price swing highs/lows with RSI swing highs/lows to detect divergence conditions.
When divergence is confirmed:
Bullish signals appear below candles
Bearish signals appear above candles
Multi-Timeframe Capability
Users can calculate RSI divergence from:
Current Chart Timeframe
Higher Timeframes (15m, 1H, 4H, Daily, etc.)
This helps traders align lower timeframe entries with higher timeframe momentum structure.
Best Used For
Trend Reversal Detection
Momentum Exhaustion Analysis
Scalping / Intraday Trading
Swing Trading Confirmation
Notes
Signals are confirmed after pivot formation to avoid repainting.
Higher pivot settings reduce noise but produce fewer signals.
Lower pivot settings create earlier but more frequent signals.
Use this tool as part of a complete trading strategy and combine it with market structure, support/resistance, or trend filters for best results.
RSI Divergence Overlay MTF is an advanced divergence detection indicator that identifies RSI-based divergence directly on the price chart without using a separate oscillator panel.
Designed for traders who prefer a cleaner chart layout, this script plots divergence signals on candlesticks while allowing multi-timeframe RSI analysis for higher-timeframe confirmation.
Features
Detects Bullish Divergence
Detects Bearish Divergence
Optional Hidden Bullish / Hidden Bearish Divergence
Displays signals directly on the main price chart
No lower RSI panel / oscillator clutter
Supports Multi-Timeframe RSI Divergence Detection
Customizable RSI Length, Source, Pivot Sensitivity, and Signal Display
Built-in Alert Conditions
Non-repainting logic using confirmed pivot points
How It Works
The indicator compares price swing highs/lows with RSI swing highs/lows to detect divergence conditions.
When divergence is confirmed:
Bullish signals appear below candles
Bearish signals appear above candles
Multi-Timeframe Capability
Users can calculate RSI divergence from:
Current Chart Timeframe
Higher Timeframes (15m, 1H, 4H, Daily, etc.)
This helps traders align lower timeframe entries with higher timeframe momentum structure.
Best Used For
Trend Reversal Detection
Momentum Exhaustion Analysis
Scalping / Intraday Trading
Swing Trading Confirmation
Notes
Signals are confirmed after pivot formation to avoid repainting.
Higher pivot settings reduce noise but produce fewer signals.
Lower pivot settings create earlier but more frequent signals.
Use this tool as part of a complete trading strategy and combine it with market structure, support/resistance, or trend filters for best results.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.