2008issue C031-16
A linear-regression angle assembled as one trend filter
Price is smoothed with a moving average, a linear regression is fit to that series, and the slope is read as an angle with fixed degree bands. The construction is one trend filter rather than three separate indicators.
- Price is first smoothed with a moving average, then a linear regression is fit to that cleaned series over a stated regression length.
- The trend filter is the angle of that regression: rise over a slope-period run is converted with arctangent and scaled to degrees.
- Default construction values include an 8-bar slope period and horizontal bands at plus 45, zero, and minus 45 degrees.
- Editorial: read the smoother, the fitted slope, and the bands as one explicit trend filter rather than as three standalone indicators.
The three named parts
A linear regression is a fitted line through a defined lookback of ordered prices whose slope becomes the forecast of local direction. A moving average is a smoother applied to price before the regression so the slope is taken from cleaned observations rather than raw ticks. A trend filter is a rule that converts the regression slope into an angle and keeps only those readings that clear preset ascent or descent bands.
Construction order
The construction first smooths price with a moving average, then fits a linear regression to that smoothed series over a stated regression length. The slope is taken from the cleaned series, not from the unsmoothed observations.
The filter is an angle
The trend filter is the angle of that regression. Rise over a slope-period run is converted with arctangent and scaled to degrees. Only readings that clear the preset ascent or descent bands are kept.
Default construction values
Default construction values include an 8-bar slope period and horizontal bands at plus 45, zero, and minus 45 degrees.
All readings on this track · 43 readings
- 1990Constructing dollar baselines from rates, inflation, and residuals
- 1990Constructing a nominal index value from forward earnings and fitted yield
- 1990Constructing a nominal index price from earnings and a fitted yield
- 1990Endpoint-pinned price paths are not forecasts
- 1990Constructing least-squares polynomial smoothers
- 1991Endpoint growth rates versus linear-regression consistency
- 1991Out-of-sample checks for linear growth fits
- 1991Trend as persistence, not a straight line
- 1991Quadratic trend, residual oscillator, and a secondary cycle calendar
- 1991Time-origin offset and residual-price divergence on a quadratic least-squares fit
- 1991A least-squares trendline from ordered prices
- 1992Constructing log-linear growth and reliability screens
- 1992Constructing log-linear growth-rate baselines
- 1992Next-session high, low, and close from rolling linear regression
- 1993Auditing an index price-earnings multiple with short-rate regression
- 1994Regression-seeded nested exponential price filter
- 1994Constructing the double exponential average from lag cancellation
- 1994Evaluating money supply as a linear leading-index baseline
- 1995Constructing least-squares trend channels
- 1995Linear baseline holdout checks for annual bill-rate forecasts
- 1995Projection bands from high and low regression slopes
- 1995Evaluating a least-squares end-point moving average on a known test series
- 1996Constructing an endpoint moving average from a least-squares line
- 1996Scoring equity path consistency with a k-ratio overlay
- 1996Evaluating month-end yield gaps for equity regimes
- 1996Constructing session-indexed standard error bands
- 1998Evaluating linear regression baselines for index valuation
- 1998R-squared as a two-state trend filter from a price-time fit
- 2000Second-order moving-average lag correction
- 2002Price regression line versus beta for index tracking
- 2003Regression slope with an r-squared trend confidence gate
- 2003Constructing finite-volume-element divergence with slope comparison
- 2004Building a daily score from regression, retracement, and volume
- 2004Constructing least-squares trendlines from ordered prices
- 2007Rectangle breakout targets beyond height
- 2007Confirming a price trend with regression slope and r-squared
- 2008A linear-regression angle assembled as one trend filter
- 2010A two-state swing machine from four running extremes
- 2016Score oil-complex tightness before divergence or regression
- 2017Nikkei-yen intermarket divergence as a regime case study
- 2017Constructing Calmar ratio and linear regression baselines
- 2019Pair-trade layer construction versus average-spread management
- 2020A convolution slope built from nested linear regression