OPEN-SOURCE SCRIPT
Weighted RSI Divergence

Weighted RSI Divergence
A powerful divergence engine that grades every RSI divergence by strength, context, and confluence — helping you filter noise and focus only on the highest-probability reversal setups.
What This Indicator Detects
Confirmation Factors (Each Adds +1 to the Score)
Confidence Scoring
Higher scores = higher-probability setups.
Visual Components
Alerts Included
Best Practices
Final Notes
This script focuses on clarity, risk reduction, and selective trade timing. The confidence system helps distinguish weak divergences from high-probability reversal conditions — giving traders a structured, repeatable edge.
A powerful divergence engine that grades every RSI divergence by strength, context, and confluence — helping you filter noise and focus only on the highest-probability reversal setups.
This script combines RSI divergences with five confirmation layers to produce confidence-weighted signals, clearer trade decisions, and alert-ready setups for both bullish and bearish reversals.
What This Indicator Detects
- Bullish Divergence → Price makes a lower low while RSI makes a higher low
- Bearish Divergence → Price makes a higher high while RSI makes a lower high
Confirmation Factors (Each Adds +1 to the Score)
- Volume Spike: Above-average volume on the divergence bar
- Trend Alignment: Divergence occurs in harmony with higher-timeframe trend dynamics
- Key Level Proximity: Price tests significant support or resistance
- Momentum Extremes: RSI reaches oversold/overbought thresholds
- Candle Reversal Pattern: Engulfing, pin bar, or similar reversal structure
Confidence Scoring
- 1–2 → Low Confidence (gray)
- 3 → Medium Confidence (yellow)
- 4–5 → High Confidence (green/red)
Higher scores = higher-probability setups.
Visual Components
- RSI plot with dynamic gradient coloring
- Divergence lines mapped to RSI pivots
- Signal labels showing confidence + factors
- Background highlighting for high-confidence events
- Real-time confidence meter for active bar conditions
- Optional data table for factor-by-factor breakdown
Alerts Included
- High-confidence bullish & bearish divergences
- Medium-confidence signals
- Any divergence meeting your minimum threshold
Best Practices
- Prioritize setups with 4 or 5 confirmations
- Use higher timeframes (4H, 1D, 1W) for more reliable signals
- Combine with market structure and price action (S/R, HTF trend, liquidity zones)
- Counter-trend divergences require stronger scores to validate
Final Notes
This script focuses on clarity, risk reduction, and selective trade timing. The confidence system helps distinguish weak divergences from high-probability reversal conditions — giving traders a structured, repeatable edge.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Eric Thies
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Eric Thies
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.