OPEN-SOURCE SCRIPT
VW Delta Divergence

This indicator compares multiple Volume Weighted Moving Averages (VWMA) against the VWAP to highlight momentum shifts and potential divergences in price action. It gives traders a unique perspective by measuring volume-sensitive delta values, smoothing optionality, and tracking divergences between price and indicator behavior.
⚙️ How to Use
1. Setup & Interpretation
• Add the indicator to your chart and set your desired VWMA lengths (–). These define how sensitive the deltas are to price and volume fluctuations.
• The indicator plots the average delta between VWMA and VWAP. A positive value indicates that VWMA is above VWAP, suggesting bullish momentum; a negative value suggests bearish sentiment.
2. Visualization Features
• Color-coded average delta line:
• 🟣 Fuchsia when delta is positive (bullish bias)
• 🧊 Aqua when delta is negative (bearish bias)
• Optional histogram mode for visualizing delta strength
• Dynamic opacity scaling helps highlight the intensity of divergence
3. Divergence Detection
• Regular bullish divergence:
• Price forms a lower low
• Average delta forms a higher low
• Regular bearish divergence:
• Price forms a higher high
• Average delta forms a lower high
• These divergences are marked with green ⬆️ and red ⬇️ triangle shapes
4. Additional Momentum Signal
• A 10-period SMA overlays the delta to hint at momentum shifts
• If the SMA crosses the delta, the script triggers an alert condition titled “Momentum Shift Alert”
⚙️ How to Use
1. Setup & Interpretation
• Add the indicator to your chart and set your desired VWMA lengths (–). These define how sensitive the deltas are to price and volume fluctuations.
• The indicator plots the average delta between VWMA and VWAP. A positive value indicates that VWMA is above VWAP, suggesting bullish momentum; a negative value suggests bearish sentiment.
2. Visualization Features
• Color-coded average delta line:
• 🟣 Fuchsia when delta is positive (bullish bias)
• 🧊 Aqua when delta is negative (bearish bias)
• Optional histogram mode for visualizing delta strength
• Dynamic opacity scaling helps highlight the intensity of divergence
3. Divergence Detection
• Regular bullish divergence:
• Price forms a lower low
• Average delta forms a higher low
• Regular bearish divergence:
• Price forms a higher high
• Average delta forms a lower high
• These divergences are marked with green ⬆️ and red ⬇️ triangle shapes
4. Additional Momentum Signal
• A 10-period SMA overlays the delta to hint at momentum shifts
• If the SMA crosses the delta, the script triggers an alert condition titled “Momentum Shift Alert”
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.