Skip to main content
Track Stochastic oscillator
6 / 42
Library

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.
Entries in this reading1 entry

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.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
6 of 42 in the Stochastic oscillator track
19911-3 pp.Next on Stochastic oscillatorBuilding a two-stage stochastic oscillator from close locationPercent-k locates the latest close on a 0-to-100 scale inside the highest high and lowest low of a lookback-window, commonly 5 to 14 days and sometimes 28 days.
All readings on this track · 42 readings
  1. 1987Stochastic fast and slow construction as a rebuildable stack
  2. 1989Building the stochastic oscillator from close location
  3. 1990Monthly stochastics as a multi-year bond regime filter
  4. 1990Walk-forward screen for yen indicator rules
  5. 1990Slow stochastic construction for index pullback entries
  6. 1991Random Walk Index construction with an adaptive lookback
  7. 1991Building a two-stage stochastic oscillator from close location
  8. 1992Constructing fast and slow stochastic oscillator lines
  9. 1992Constructing nested stochastic lookbacks
  10. 1994Construct the four-state price-volume rank before filtering it
  11. 1996Crowded stochastics, false breakouts, and hidden stops
  12. 1997Fade and follow entries from stochastic extremes
  13. 1998Oversold confirmation as a staged rule-based-entry case
  14. 1999Constructing regular and slow stochastic oscillators
  15. 2001Construct a variable-interval simple moving average from stacked extremes
  16. 2001Threshold RSI and stochastic setups with next-bar stops
  17. 2001Two tests of a rate-adjusted earnings-yield gap
  18. 2002Constructing a two-line stochastic from a range-normalized close
  19. 2002Inspect mechanical stochastic daytrade rules on one bar
  20. 2003Constructing an adaptive stochastic RSI
  21. 2003Four parameters that construct a stochastic oscillator
  22. 2004Volume breakout as signal, pullback as entry
  23. 2004A first currency-market checklist with two averages and a slow stochastic
  24. 2005Shared-scale cycle indexes with companion oscillators
  25. 2005Current-bar versus prior-bar range construction for the stochastic oscillator
  26. 2005Two-session moving-average pullback short
  27. 2006Market condition as a permission layer for moving averages and oscillators
  28. 2008Lock the stop at support before sizing a stochastic entry
  29. 2010Construct a center-line volume oscillator and read it with a stochastic oscillator
  30. 2010Sharpened RSI turns with rainbow averages and a slow stochastic
  31. 2011Build a Spearman rank oscillator from ordered closes
  32. 2012Gold as a regime-dependent hedge in the euro-area crisis
  33. 2012Pairing moving averages with variable-length stochastics
  34. 2014Two-leg stochastic stress oscillator as a rebuild drill
  35. 2014Ingress dates as price bases for relative strength, stochastics, and moving averages
  36. 2017Constructing a dual EMA stochastic from range normalization
  37. 2018Constructing a two-stage stochastic RSI for comparable price-oscillator divergences
  38. 2018Combining a weekly stochastic, a long moving average, and two-day resistance
  39. 2018Weekly and daily stochastic readings with a long moving average and support
  40. 2018A confirming workflow for rotating from discretionary to staples
  41. 2019Stochastic scan thresholds, averages, and formula syntax
  42. 2020Constructing Slow %K as a two-stage helper
All 170 readings tagged Stochastic oscillator
Also on Stochastic oscillator5 readings