OPEN-SOURCE SCRIPT

VMDivergences

285
◈ DIVERGENCE DETECTION SYSTEM ◈
════════════════════════════════════════════════════════════


▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ 🎯 OVERVIEW █
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

VMDiv is a professional-grade divergence detection system built on a unique
hybrid oscillator that combines the best of momentum analysis and mean-reversion
theory. Unlike standard divergence indicators that rely on RSI or MACD, this
system uses a custom Volume Momentum oscillator with adjustable characteristics.


═══════════════════════════════════════════════════════════
🔧 THE VM OSCILLATOR ENGINE
═════════════════════════════════════════════════════════════

The core innovation is a hybrid oscillator combining TWO analytical approaches:

┌──────────────────────────────────────────────────────┐
│ COMPONENT 1: EMA MOMENTUM │
│ ════════════════════════ │
│ • Fast EMA minus Slow EMA (similar to MACD) │
│ • Normalized by standard deviation for consistency │
│ • Captures trend strength and directional momentum │
├─────────────────────────────────────────────────────────┤
│ COMPONENT 2: BOLLINGER BAND DISTANCE │
│ ════════════════════════════════════ │
│ • Price distance from Bollinger Band midline │
│ • Normalized to show position within bands (-1 to +1 typically) │
│ • Captures overextension and mean-reversion potential │
├─────────────────────────────────────────────────────────┤
│ THE BLEND │
│ ════════════ │
│ • "Momentum Blend" parameter controls the mix │
│ • 1.0 = Pure momentum oscillator │
│ • 0.0 = Pure mean-reversion oscillator │
│ • 0.5 = Balanced hybrid (often optimal) │
└───────────────────────────────────────────────────┘


═══════════════════════════════════════════════════════
📊 DIVERGENCE TYPES DETECTED
══════════════════════════════════════════════════════

This indicator detects SIX types of divergence patterns:

┌───────────────────────────────────────────────────────┐
│ 🔴 REGULAR BEARISH DIVERGENCE │
│ ══════════════════════════════ │
│ Price: Makes HIGHER HIGH ↗ │
│ Oscillator: Makes LOWER HIGH ↘ │
│ │
│ Interpretation: Momentum is weakening despite higher prices. │
│ Signal: Potential reversal to the DOWNSIDE │
│ Reliability: HIGH - Classic reversal signal at tops │
├────────────────────────────────────────────────────────┤
│ 🟢 REGULAR BULLISH DIVERGENCE │
│ ══════════════════════════════ │
│ Price: Makes LOWER LOW ↘ │
│ Oscillator: Makes HIGHER LOW ↗ │
│ │
│ Interpretation: Momentum is strengthening despite lower prices. │
│ Signal: Potential reversal to the UPSIDE │
│ Reliability: HIGH - Classic reversal signal at bottoms │
├──────────────────────────────────────────────────┤
│ 🟠 HIDDEN BEARISH DIVERGENCE │
│ ════════════════════════════ │
│ Price: Makes LOWER HIGH ↘ │
│ Oscillator: Makes HIGHER HIGH ↗ │
│ │
│ Interpretation: Downtrend showing internal strength. │
│ Signal: Trend CONTINUATION - expect further downside │
│ Best used: During confirmed downtrends │
├──────────────────────────────────────────────────────┤
│ 🟡 HIDDEN BULLISH DIVERGENCE │
│ ════════════════════════════ │
│ Price: Makes HIGHER LOW ↗ │
│ Oscillator: Makes LOWER LOW ↘ │
│ │
│ Interpretation: Uptrend showing internal strength. │
│ Signal: Trend CONTINUATION - expect further upside │
│ Best used: During confirmed uptrends │
├───────────────────────────────────────────────────┤
│ 🟣 DOUBLE TOP DIVERGENCE │
│ ═════════════════════════ │
│ Price: Two SIMILAR HIGHS (within ATR tolerance) │
│ Oscillator: Second high LOWER than first │
│ │
│ Interpretation: Resistance tested twice with weakening momentum. │
│ Signal: Strong reversal setup - HIGH PROBABILITY bearish │
│ Best used: At major resistance levels │
├───────────────────────────────────────────────────────────┤
│ 🔵 DOUBLE BOTTOM DIVERGENCE │
│ ═══════════════════════════ │
│ Price: Two SIMILAR LOWS (within ATR tolerance) │
│ Oscillator: Second low HIGHER than first │
│ │
│ Interpretation: Support tested twice with strengthening momentum. │
│ Signal: Strong reversal setup - HIGH PROBABILITY bullish │
│ Best used: At major support levels │
└──────────────────────────────────────────────────┘

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.