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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.