1991issue C021
Random Walk Index construction with an adaptive lookback
The Random Walk Index divides an observed high or low excursion by the distance a random walk would be expected to cover over the same span. Each candidate window is scored that way, the lookback that produces the largest ratio becomes the day’s reading, and that series is placed beside raw percent-K on the same price history.
- The Random Walk Index is an observed high or low excursion divided by the distance a random walk would be expected to cover over the same number of days.
- High-side and low-side readings use the gap from today’s extreme to the opposite extreme n days earlier, scaled by average daily range times the square root of n.
- The day’s published window is the integer n that produces the largest ratio, so the lookback is taken from the data rather than fixed in advance.
- On a Treasury bond futures example, selected intermediate highs and lows are marked where the index exceeds the unit threshold of 1.0 while raw percent-K does not flag them.
What the Random Walk Index measures
The Random Walk Index is constructed as an observed price excursion divided by the move a random walk would be expected to cover over the same span. Average daily range is the mean high-to-low range over the n days immediately preceding the current bar. The expected random walk is that average daily range multiplied by the square root of a candidate lookback length.
High-side and low-side readings
The high-side reading uses the gap from the current high to the low of n days earlier, scaled by average daily range times the square root of n. The low-side reading uses the gap from the high of n days earlier to the current low, scaled by the same average-range and square-root-of-n denominator.
A worked comparison of two windows
With an average daily range of 100, the expected random-walk distance is 200 over 4 days and 300 over 9 days. In the worked example, a current low 250 points under the high from 4 days earlier is treated as more overextended than a 300-point gap under the high from 9 days earlier, because only the shorter window exceeds its expected walk.
An adaptive lookback from the data
The day’s index is the lookback n that produces the largest ratio, so the window is selected from the data rather than fixed in advance. That integer n is the adaptive lookback used as that day’s published reading. The construction is presented as containing no arbitrary constants or parameters.
Beside a raw percent-K stochastic
On a Treasury bond futures example, a raw percent-K stochastic is plotted with the Random Walk Index. Raw percent-K is the unsmoothed stochastic oscillator series shown on the same price history. Selected intermediate highs and lows, including May 9, 18, and 25 in an uptrend and August 15 in a downtrend, are marked where the index exceeds 1.0 while the stochastic does not flag them. An index value of 1.0 is the unit threshold, at which the observed move equals the expected random walk.
All readings on this track · 42 readings
- 1987Stochastic fast and slow construction as a rebuildable stack
- 1989Building the stochastic oscillator from close location
- 1990Monthly stochastics as a multi-year bond regime filter
- 1990Walk-forward screen for yen indicator rules
- 1990Slow stochastic construction for index pullback entries
- 1991Random Walk Index construction with an adaptive lookback
- 1991Building a two-stage stochastic oscillator from close location
- 1992Constructing fast and slow stochastic oscillator lines
- 1992Constructing nested stochastic lookbacks
- 1994Construct the four-state price-volume rank before filtering it
- 1996Crowded stochastics, false breakouts, and hidden stops
- 1997Fade and follow entries from stochastic extremes
- 1998Oversold confirmation as a staged rule-based-entry case
- 1999Constructing regular and slow stochastic oscillators
- 2001Construct a variable-interval simple moving average from stacked extremes
- 2001Threshold RSI and stochastic setups with next-bar stops
- 2001Two tests of a rate-adjusted earnings-yield gap
- 2002Constructing a two-line stochastic from a range-normalized close
- 2002Inspect mechanical stochastic daytrade rules on one bar
- 2003Constructing an adaptive stochastic RSI
- 2003Four parameters that construct a stochastic oscillator
- 2004Volume breakout as signal, pullback as entry
- 2004A first currency-market checklist with two averages and a slow stochastic
- 2005Shared-scale cycle indexes with companion oscillators
- 2005Current-bar versus prior-bar range construction for the stochastic oscillator
- 2005Two-session moving-average pullback short
- 2006Market condition as a permission layer for moving averages and oscillators
- 2008Lock the stop at support before sizing a stochastic entry
- 2010Construct a center-line volume oscillator and read it with a stochastic oscillator
- 2010Sharpened RSI turns with rainbow averages and a slow stochastic
- 2011Build a Spearman rank oscillator from ordered closes
- 2012Gold as a regime-dependent hedge in the euro-area crisis
- 2012Pairing moving averages with variable-length stochastics
- 2014Two-leg stochastic stress oscillator as a rebuild drill
- 2014Ingress dates as price bases for relative strength, stochastics, and moving averages
- 2017Constructing a dual EMA stochastic from range normalization
- 2018Constructing a two-stage stochastic RSI for comparable price-oscillator divergences
- 2018Combining a weekly stochastic, a long moving average, and two-day resistance
- 2018Weekly and daily stochastic readings with a long moving average and support
- 2018A confirming workflow for rotating from discretionary to staples
- 2019Stochastic scan thresholds, averages, and formula syntax
- 2020Constructing Slow %K as a two-stage helper