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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.