1997issue C031-4
Constructing a moving regression oscillator
A moving linear-regression of closes can be split into a scaled daily-return forecast and a percent-distance oscillator. The archive construction uses that split as a mean-reversion timer, then keeps candidates inside a high long-horizon relative-strength rank.
- The long-horizon line is a 63-session moving linear-regression of closes, rebuilt each day by adding the newest close and dropping the oldest.
- Slope-over-close divides the raw slope by the latest close so the reading is a percent return per trading day and stays comparable across price levels.
- The regression-oscillator is percent distance from the predicted-close and is read as a mean-reversion timer, not as a reliable exit while closes sit near new highs.
- A three-rule screen keeps only a strong scaled slope, an oscillator in a defined oversold band, and a relative-strength-index rank of 85 or higher.
The moving linear-regression line
The long-horizon line is a three-month moving linear-regression of closing prices over 63 trading days. Each session rebuilds the fit by adding the newest close and dropping the close from 63 days earlier.
The linear-regression is a rolling least-squares fit of those closes on a trading-day index. It yields a slope and an intercept and advances by replacing the oldest observation in the lookback.
Scaling slope into a daily-return forecast
Slope is divided by the latest close to form slope-over-close. A 0.10 daily slope on a 20 close equals 0.5 percent per trading day. A higher-priced issue would need a 0.50 daily slope to print the same scaled reading.
Stated as a percentage return per trading day, slope-over-close keeps issues at different price levels comparable.
Percent distance as a mean-reversion timer
The predicted-close is the current-day value on the moving regression line. The regression-oscillator is the latest close relative to that predicted-close, minus one. A 21 close against a 20 predicted-close equals plus 5 percent. A close the same distance below the line equals minus 5 percent.
The construction treats the predicted-close as an estimate of average value. A large percentage gap below the line is read as an oversold mean-reversion condition. A still larger gap is treated as possible reversal of the long-term trend.
Mean-reversion here is the working assumption that closes gravitate toward the regression-predicted average unless percent distance from that average breaks far below the issue's historically observed normal-lower-limit. That band is read from prior pullbacks rather than taken as a universal constant.
In an established uptrend, a large positive oscillator reading is not treated as a reliable exit. Closes can sit at or near new highs and keep the reading elevated for an extended period.
Guides and worked examples
On the illustrated series, oscillator guides were drawn at 14 percent, zero, and minus 14 percent. Several 1995-1996 pullbacks approached that lower guide without remaining far below it until 11 June 1996.
A worked April 1996 example combined an oscillator near minus 12 percent with a slope-over-close of 0.92 percent per day, after that scaled slope had risen from 0.15 percent since mid-January.
The same construction treated a one-session drop from about minus 13 percent to about minus 19 percent as a significant break of the minus 14 percent lower limit. A 15-day high-low range-placement oscillator stayed near 5 percent and did not separate ordinary from abnormal volatility.
A spreadsheet identity
A spreadsheet identity sets predicted-close equal to the moving intercept plus 63 times the moving slope. It sets the oscillator to 100 times close divided by predicted-close minus one. The intercept's trading-day index stays fixed at the 1-through-63 positions so the window does not shift on the x-axis.
A three-rule screen
A three-rule screen requires a scaled slope above 0.5 percent per trading day and an oscillator between minus 15 and minus 5 percent. It then further narrows the universe with a relative-strength-index rank of 85 or higher.
That relative-strength-index is a twelve-month percentage price-change ranking with extra weight on the latest three months. Editorial note: the rank is used as a long-uptrend universe filter so ordinary pullbacks are not confused with trend failure.
All readings on this track · 36 readings
- 1986A futures fade as one range, order, and secrecy procedure
- 1992Constructing the mass-index range-reversal procedure
- 1993Switch trend following and mean reversion with an equity-curve filter
- 1994Evaluating weekly trend-following and mean-reversion timing rules
- 1996Dual-horizon bands for a precious-metals cash switch
- 1997Constructing a moving regression oscillator
- 1997Regime-dependent long and short rules in mechanical systems
- 2002A same-session pair book with a morning-fixed volatility envelope
- 2004Combining noncorrelated trend and reversion systems
- 2004Failed-breakout overlays on trending markets
- 2004Rank rotation after a path split, then Robustness testing
- 2004Range-bound tape as a filter for trend and oscillator rules
- 2005A moving-average short pullback that is only in scope in a decline
- 2006Constructing an adaptive price zone from a double-smoothed range
- 2007Two-period relative strength index versus a one-week universe baseline
- 2008Building ETF mean-reversion entries with a two-bar washout
- 2008Rebuild a short-period stochastic as a premier stochastic oscillator
- 2008A three-market regime map for equity bounces and dollar cycles
- 2009Option trade adjustment as one testable procedure
- 2010Implied volatility as a May 2010 market-regime lab for the S&P 500
- 2011Treat a large one-day move as a classified event
- 2011Long-call exits, volatility regimes, and spread assignment
- 2011Pairing same-horizon oscillators with a walk filter
- 2012Two-bar band extreme entries with trailing stops
- 2012An eight-month average as a monthly gate for high-yield bonds
- 2014Complete the checklist before the trade
- 2014Coded rules should face one test, not a kinder sample
- 2015Build a mean-reversion basket from one correlation path
- 2015Index dip reversion is horizon and regime dependent
- 2016Treat the end of a trend as a handoff, not a broken system
- 2017A testable half-swing pullback for trend continuation
- 2017Evaluating four swing detection rules for mean reversion
- 2018Intraday breakout and mean reversion as one rule set
- 2018Evaluating rare consecutive-close mean-reversion entries
- 2020Moving-average baselines, price vetoes, and mean reversion
- 2020Two-dimensional FX scaling for trend and reversal systems