Skip to main content
Track Autocorrelation test
14 / 15
Library

2012issue C1011-14

Constructing a multi-horizon folded-correlation reversal filter

Folded correlation marks a reversal where equal lookback halves match after one segment is reflected. The archive workflow pre-smooths the series, runs an autocorrelation test at every horizon, and uses a trend filter only to label the peak as a top or a bottom.

  • Folding an idealized V-shaped price path about its trough or peak makes the two equal-length segments highly correlated; the same fold placed mid-trend does not.
  • When those segments have equal duration, the strongest correlation is delayed by half the lookback, so a short window produces more numerous, more current spikes and a long window reports older turning points.
  • The sequence is to super-smooth first, correlate one half of the lookback with the negated other half, rescale that score from -1 to +1 onto 0 to 1, then sign the peak from the slope of the smoothed series.
  • A heatmap of correlation against a vertical lookback axis shows major reversals as long backward-pointing features and interruptions as shortened remnants.
Entries in this reading3 entries

Folded correlation as the event

Folded correlation treats a reversal as the bar where pre-turn and post-turn segments match after one segment is reflected. Folding an idealized V-shaped price path about its trough or peak makes the two equal-length segments highly correlated. The same fold placed mid-trend does not.

The lookback horizon carries a delay

The lookback horizon is the paired sample length whose midpoint is the folding location. When the two segments have equal duration, the strongest correlation is delayed by half the lookback: a 13-bar window places that reading 7 bars later, and a 39-bar window places it 19 bars later.

A brief interruption still scores as a high-correlation event only if the lookback is no longer than twice the interruption span. A longer window mixes in uncorrelated prices and lowers the score. A short lookback produces more numerous, more current correlation spikes. A long lookback suppresses those interruptions and reports older turning points.

Smooth before the fold

The computational sequence is to apply a super-smoothing filter, correlate one half of the lookback with the negated other half, then rescale the resulting autocorrelation from -1 to +1 onto 0 to 1. Exponential smoothing is that low-lag smoother. It is applied to raw prices before folding so that short interruptions are damped and do not register as extra correlation spikes.

An autocorrelation test at every horizon

The autocorrelation test compares one half of a lookback window with the negated other half after the series is folded at a candidate turning point. Each horizon keeps its own delay, because the strongest reading still arrives half a lookback after the fold.

A trend filter only signs the peak

After the autocorrelation peak, the slope of the smoothed series immediately beforehand is used as a trend filter. That signing rule labels the event as a top or a bottom. It reads the already-smoothed series just before peak correlation and does not create the event.

A heatmap of lookback against time

Plotting correlation as color against a vertical lookback axis yields a time-aligned heatmap in which major reversals appear as long backward-pointing features and interruptions as shortened remnants. Because the shortest window still needs a finite sample, the heatmap can be shifted four bars toward the turning point, in the same spirit as a centered moving average.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
14 of 15 in the Autocorrelation test track
201610-15 pp.Next on Autocorrelation testTuning indicators to measured market cyclesIndicator lookbacks can be taken from measured cycle periods in the data rather than from a fixed conventional default.
All readings on this track · 15 readings
  1. 1987Evaluating weekly price cycles with autocorrelation cutoffs
  2. 1988Serial correlation is not an independence test
  3. 1988Event-triggered chi-square tests for jittered serial links
  4. 1988Reverse the rule before you trust the system
  5. 1990Chi-square evaluation of lagged breadth correlations
  6. 1990Two-gate out-of-sample tests for trading rules
  7. 1990Sign-cell correlation, chi-square checks, and lag shifts
  8. 1998Test serial dependence before you optimize a mechanical system
  9. 2003How a one-rank rotation is constructed for an offset autocorrelation check
  10. 2004Constructing first-order residual autocorrelation tests
  11. 2004A two-stage Durbin-Watson residual screen
  12. 2011Constructing trend labels from increment correlation atoms
  13. 2012Overnight versus daytime return evaluation
  14. 2012Constructing a multi-horizon folded-correlation reversal filter
  15. 2016Tuning indicators to measured market cycles
All 23 readings tagged Autocorrelation test
Also on Autocorrelation test5 readings