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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.