OPEN-SOURCE SCRIPT
已更新 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.
版本注释
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.
版本注释
To identify high-probability trend reversals and momentum shifts using enhanced RSI signals, multi-timeframe context, and visual clarity.版本注释
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)
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。