OPEN-SOURCE SCRIPT
Updated RSI Divergence Indicator (Multi-Time Frame Confirmation)

This custom-built RSI indicator blends traditional divergence detection with multi-timeframe trend confirmation, offering traders a smarter way to spot meaningful momentum shifts.
Release Notes
The indicator detects and visualizes potential trend reversals or continuations by analyzing:RSI Divergences
Multi-timeframe RSI trend alignment
Momentum crossovers
Trend continuation zones (ribbons)
It combines price action with momentum behavior to help traders spot high-probability entry/exit points and understand the current trend state.
Release Notes
To identify high-probability trend reversals and momentum shifts using enhanced RSI signals, multi-timeframe context, and visual clarity.Release Notes
To identify meaningful trend flips, momentum divergences, and RSI cross confirmations across multiple timeframes — with filters to reduce noise and false signals.⚙️ Main Components:
✅ 1. RSI & Composite RSI
RSI: Classic oscillator using your selected source and period (default: 9, high)
Composite RSI: Blends RSI from 3 user-defined timeframes (default: 4H, 1D, 1W) with customizable weights
✅ 2. Trend Ribbon
Background fills between RSI 30–70
Green frame: Last valid cross was bullish
Red frame: Last valid cross was bearish
Purple frame: Optional flip alerts (currently with price confirmation)
✅ 3. Flip Alerts
Signals a potential trend change when:
RSI crosses Composite RSI
RSI and Composite RSI are at least 3 points apart
RSI has momentum (slope > 0.4)
AND the price confirms (e.g., green flip = close > previous high)
🔔 Optional visual “Flip” label at RSI value 90
✅ 4. Divergence Detection
Detects:
Regular Bullish/Bearish Divergences
Hidden Bullish/Bearish Divergences
Based on RSI pivots and price action
✅ 5. Dynamic Overbought/Oversold Zones
Highlights RSI values above 70 (green tint) and below 30 (red tint)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.