Calculate Williams VIX Fix from prices
Define H as the highest close across the latest N bars, including the current bar, and L as the current low. Then WVF = 100 × (H − L) / H. Larry Williams used N = 22 in his published formula. Replacing the highest close with the highest high, or replacing the current low with the close, produces a different indicator.
- These are hypothetical prices for checking arithmetic, not market observations or performance results.
- Require a positive H and enough valid bars for the selected window. Treat missing data or a zero denominator as unavailable, rather than forcing a zero reading.
- On a five-minute chart, N = 22 covers 22 five-minute bars. Specify a daily calculation separately if that is the intended horizon.
| Illustrative input | Value | Calculation |
|---|---|---|
| Highest close over 22 bars, H | 100 | Use closes, not intrabar highs. |
| Current bar low, L | 92 | The low of this bar, not the lowest low across 22 bars. |
| WVF | 8% | 100 × (100 − 92) / 100 = 8. |
| Same prices scaled by 10 | H = 1,000; L = 920 | WVF remains 8%. |