Skip to main content
Track Random walk hypothesis test
4 / 10
Library

1991issue C021-9

Constructing a variable-lookback random walk trend filter

Fixed-length averages can give the same reading to differently shaped price paths. This archive article shows how a random-walk yardstick scores each high and low on a data-chosen lookback, then splits that score into a short-term swing gauge and a long-term persistence filter.

  • Fixed-length moving averages and last-close oscillators can assign identical readings to price paths that have different shapes, discarding the shape information inside the window.
  • The Random Walk Index divides an actual high or low excursion by the expected random walk for a candidate lookback and publishes the maximizing lookback rather than a preset length.
  • Channel-height ratios at or above the square-root schedule were read as a mixture of random walks and directional persistence, and trend was defined as any move beyond the expected random walk.
  • A corner near eight days in the maximizing-lookback distribution split a short-term swing gauge from a long-term trend filter that treats a reading above one as persistence.
Entries in this reading2 entries

When a fixed window hides path shape

Fixed-length moving averages and last-close oscillators can assign identical readings to price paths that have different shapes, including cases where recent direction would differ. The missing piece is shape information: path geometry inside the window that those tools discard when they collapse many different trajectories onto one number.

A random-walk yardstick for highs and lows

In a random-walk model the largest expected temporary displacement over n steps scales with the square root of n. That expected random walk is the displacement a pure random path would be expected to reach over n bars, scaled as average daily range times the square root of n.

Average high-to-low channel heights, expressed as a ratio to the one-day range, tracked the square root of lookback length in tabulated futures series, with most markets sitting somewhat above that benchmark. The channel-height ratio is that average high-to-low span over a lookback, divided by the one-day span, and it is used to check whether market ranges grow like a random walk.

Channel-height ratios at or above the square-root schedule were read as a mixture of random walks and directional persistence. Trend was defined as any move beyond the expected random walk. The random walk hypothesis test is that comparison of observed high-low channel growth with the square-root-of-time excursion implied by a random walk. It is used both to measure overextension and to set the threshold that distinguishes trend from noise.

How the random walk index is scored

The Random Walk Index for a high or a low is the actual excursion from the opposite extreme n bars earlier divided by average daily range times the square root of n. The published reading uses the n that maximizes that ratio. That maximizing lookback is the data-chosen n that produces the largest Random Walk Index on a given bar, replacing any fixed-length parameter.

With a 100-point average daily range, a four-bar random walk is expected to span 200 points and a nine-bar walk 300 points, so a 250-point drop from a four-bar high is more overextended than a 300-point drop from a nine-bar high. The same actual move can therefore look stretched or ordinary once it is scored against the expected random walk for its own lookback.

Splitting one score at a data-marked corner

Distributions of the lookback that maximized the index were similar across several futures and stocks and showed a corner near eight days. That corner was used to split a two-to-seven-day short-term Random Walk Index from an eight-to-sixty-four-day long-term Random Walk Index.

The short-term Random Walk Index is the same construction restricted to short candidate lookbacks and read as a swing or overbought-oversold gauge on highs versus lows. The long-term Random Walk Index is the same construction restricted to longer candidate lookbacks and read as a trend gate when the reading exceeds one.

A swing gauge and a persistence filter

Short-term index peaks in highs aligned with price peaks and peaks in lows aligned with price valleys. A long-term index above 1.0 on highs was treated as an uptrend filter and the same threshold on lows as a downtrend filter. The trend filter is that constructed reading: directional persistence is treated as present only when a high or a low has traveled farther than the displacement expected from a random walk over the same variable lookback.

On a Treasury bond futures example, several intermediate lows inside an uptrend and an intermediate high inside a downtrend that a nine-day raw stochastic missed were marked when the Random Walk Index exceeded 1.0. Separate high and low indices can mark short-term oversold lows during a strong uptrend, whereas a single oscillator can remain one-sided through the same trend.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
4 of 10 in the Random walk hypothesis test track
19921-5 pp.Next on Random walk hypothesis testRanking futures trend tendency against a random walkRank a market's trend tendency by comparing multi-horizon average high-low channel heights with a square-root-of-time random-walk baseline, not with one predetermined lookback.
All readings on this track · 10 readings
  1. 1984When random walks fail to explain market averages
  2. 1988Building probability-density adaptive weights and a chi-square trend filter
  3. 1990Withhold a random-walk label until grouping and lookback are checked
  4. 1991Constructing a variable-lookback random walk trend filter
  5. 1992Ranking futures trend tendency against a random walk
  6. 1995A normalized dispersion screen for trend-following
  7. 1997Why failed random-walk tests still need careful Monte Carlo work
  8. 2007Constructing a random-walk baseline from ordered returns
  9. 2011Constructing a cycle-free trend filter against an ATR-scaled random walk
  10. 2013How to evaluate a hybrid growth and money-flow scan
All 11 readings tagged Random walk hypothesis test
Also on Random walk hypothesis test5 readings