OPEN-SOURCE SCRIPT
WVAD with Gap Compensation

**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
**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
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。