The Williams Vix Fix (https://www.prorealcode.com/prorealtime-indicators/williams-vix-fix/) is a fear gauge built from price alone. It measures how far today’s low has fallen below the highest close of the last 22 bars, and it spikes when a market sells off hard. The indicator marks a bar as extreme when that reading rises above its upper Bollinger band or above 85 % of its highest value of the last 50 bars, and those extremes tend to show up near capitulation lows.
This screener scans a whole list of instruments and returns the ones where the Vix Fix has just entered that extreme zone on the last closed bar. It runs the same calculation as the Williams Vix Fix indicator, line for line, so every name it lists shows a fresh green bar on the indicator.
Measured on the current members of the S&P 500, daily bars from January 2019:
Because it lists a stock only on the first bar of the spike, run it every day. A stock that spiked yesterday will not show today.
//----------------------------------------------
//PRC_Williams Vix Fix Screener
//version = 0
//24.11.2026
//Ivan Gonzalez @ www.prorealcode.com
//Sharing ProRealTime knowledge
//----------------------------------------------
//-----Inputs-----------------------------------
mode = 0 // 0 = bottoms (lows), 1 = tops (highs), 2 = auto by trend
pd = 22 // Vix Fix lookback
bbl = 20 // Bollinger length
mult = 2.0 // standard deviation multiplier
lb = 50 // percentile lookback
ph = 0.85 // percentile factor
trendLen = 200 // moving average for the auto mode
//----------------------------------------------
//-----Direction (bottoms / tops / auto)--------
bHighs = 0
if mode = 1 then
bHighs = 1
elsif mode = 2 then
src3 = (high + low + close) / 3
trendMa = average[trendLen,1](src3)
if src3 < trendMa then
bHighs = 1
endif
endif
//----------------------------------------------
//-----Williams Vix Fix (always positive)-------
if bHighs = 1 then
wvf = (high - lowest[pd](close)) / lowest[pd](close) * 100
else
wvf = (highest[pd](close) - low) / highest[pd](close) * 100
endif
//----------------------------------------------
//-----Bollinger band + percentile range--------
sDev = mult * std[bbl](wvf)
midLine = average[bbl](wvf)
upperBand = midLine + sDev
rangeHigh = highest[lb](wvf) * ph
//----------------------------------------------
//-----Extreme and the bar it starts------------
extreme = wvf >= upperBand or wvf >= rangeHigh
newSpike = extreme and not extreme[1]
//----------------------------------------------
//-----Columns----------------------------------
dirSpike = 1
if bHighs = 1 then
dirSpike = -1
endif
overBand = wvf / max(upperBand, 0.0001)
//----------------------------------------------
SCREENER[newSpike](wvf AS "Vix Fix", overBand AS "WVF / band", dirSpike AS "1 bottom -1 top")
Based on the Williams Vix Fix indicator by Larry Williams (concept), ChrisMoody (CM Williams Vix Fix) and TheeHoganator (bottoms and tops version).