OPEN-SOURCE SCRIPT

WVAD with Gap Compensation

73
**Indicator Name:** WVAD with Gap Compensation
**Purpose:** Enhances the classic Williams Vix Fix (WVAD) by incorporating the impact of price gaps (jump ups/downs) in its calculation.
**Key Features:**
1. **Gap Detection:** Automatically identifies significant gaps (default: >0.5% from prior bar's high/low).
2. **Gap Compensation:** Adjusts the WVAD calculation by adding the gap size to the daily price change.
3. **Dynamic Weighting:** Applies a multiplier (1.2x or 1.5x) to the WVAD value on days with medium/large gaps (based on ATR).
4. **Visualization:**
- Plots the enhanced WVAD line (blue) and optionally the original WVAD (gray circles).
- Marks gap events with colored arrows (green ▲ for gap up, red ▼ for gap down) and connects the gap's impact with dashed lines.
- Includes a zero line for reference.
**Use Cases:**
- Gauges the true strength of money flow by accounting for gaps.
- Identifies potential trend shifts around gap events.
- Filters noise by focusing on significant gaps.
**Parameters:**
- `Accumulation Period`: Number of days to sum WVAD (default: 12).
- `Gap Threshold (%)`: Minimum gap size to trigger compensation (default: 0.5%).
- `Show Original WVAD`: Toggles display of the classic WVAD.
**Version:** Pine Script® v6

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.