Skip to main content
Track Linear regression
43 / 43
Library

2020issue C0150-56

A convolution slope built from nested linear regression

A slope series can be rebuilt by nesting a one-bar-ahead linear-regression projection inside a second, shorter regression. The second lookback is taken from the first window, which keeps the same indicator family consistent across platforms.

  • The projection step is a linear-regression value of the chosen price series over a user length, evaluated one bar ahead.
  • The convolution length is the integer portion of the square root of that first lookback, not a separately chosen window.
  • The plotted slope is the linear-regression slope of the projection series over the same shortened length.
  • Platform listings add an unsure band, an acceleration series, and experimental entry and exit tests, but they do not complete a full rule set.
Entries in this reading2 entries

What the nested pair is doing

This archive article shows how a slope series is built by nesting one linear-regression step inside another. The first step produces a one-bar-ahead projection of the chosen price series. The second step fits a shorter linear regression to that projection series.

How the projection is formed

The projection step, called leavitt-projection in this article, is defined as a linear-regression value of the chosen price series over a user length, evaluated one bar ahead. Linear-regression here means a fitted line through an ordered lookback of prices that yields a projected next value and a slope.

How the shortened lookback is chosen

The second lookback is not a separately chosen window. The convolution length is the integer portion of the square root of the first lookback. In this construction that shorter lookback is the moving-average window applied to the projection series.

The convolution series and the plotted slope

The convolution series, called leavitt-convolution here, is a second linear-regression value of the projection series over that shortened length, again evaluated one bar ahead. The plotted slope series, called leavitt-convolution-slope, is the linear-regression slope of the projection series over the same shortened length.

How one listing draws the slope

A published TradeStation listing uses close as the default price, a length of 61, and an unsure band of 0.2. The unsure-band is a small symmetric threshold around zero used only to shade an indecisive zone on the slope plot. That listing colors the slope histogram by whether the latest reading is above or below the prior bar.

Where the same construction appears

The same construction is shown as a chart study on a 15-minute equity-index futures contract, a daily equity, and a 30-minute energy futures contract.

Experimental rules and the acceleration companion

One platform listing notes that the source article does not supply complete system rules. That listing then defines an experimental long entry when both the convolution slope and its one-bar change are above zero. The same experimental exit waits until the convolution slope makes a 20-bar high and the one-bar change in slope then turns negative. A one-bar difference of the convolution slope is plotted as a companion acceleration series, called lc-acceleration in this article, in at least one vendor listing. That companion is used as a sign-change detector.

Later listings of the projection and convolution pair

Two later listings plot the projection and convolution pair on the same broad-market fund with a 100-bar first length. In one of those environments the two studies are required to live in separate files.

Leavitt projection and convolution on SPY

The shorter convolution follows SPY through the late-February high near 134.4, the March washout around 126.5, and the May spike to 137, while the 100-bar projection stays mostly in a 133–135 band and barely reacts to the March break. Values were read off the TradersStudio price chart; the article did not print a numeric table.
The shorter convolution follows SPY through the late-February high near 134.4, the March washout around 126.5, and the May spike to 137, while the 100-bar projection stays mostly in a 133–135 band and barely reacts to the March break. Values were read off the TradersStudio price chart; the article did not print a numeric table.SPY · Daily · 2019-01-18T00:00:00.000Z to 2019-05-25T00:00:00.000Z

Figure 9 fixes length at 100 bars, so the convolution window is floor(sqrt(100)) = 10. The figure labels months February–May and does not print a year or session interval; y-values are approximate raster readings.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
43 of 43 in the Linear regression track
2012Track finished · Next track: Liquidity filterFilter listed futures by relative contract liquidity20 readings
All readings on this track · 43 readings
  1. 1990Constructing dollar baselines from rates, inflation, and residuals
  2. 1990Constructing a nominal index value from forward earnings and fitted yield
  3. 1990Constructing a nominal index price from earnings and a fitted yield
  4. 1990Endpoint-pinned price paths are not forecasts
  5. 1990Constructing least-squares polynomial smoothers
  6. 1991Endpoint growth rates versus linear-regression consistency
  7. 1991Out-of-sample checks for linear growth fits
  8. 1991Trend as persistence, not a straight line
  9. 1991Quadratic trend, residual oscillator, and a secondary cycle calendar
  10. 1991Time-origin offset and residual-price divergence on a quadratic least-squares fit
  11. 1991A least-squares trendline from ordered prices
  12. 1992Constructing log-linear growth and reliability screens
  13. 1992Constructing log-linear growth-rate baselines
  14. 1992Next-session high, low, and close from rolling linear regression
  15. 1993Auditing an index price-earnings multiple with short-rate regression
  16. 1994Regression-seeded nested exponential price filter
  17. 1994Constructing the double exponential average from lag cancellation
  18. 1994Evaluating money supply as a linear leading-index baseline
  19. 1995Constructing least-squares trend channels
  20. 1995Linear baseline holdout checks for annual bill-rate forecasts
  21. 1995Projection bands from high and low regression slopes
  22. 1995Evaluating a least-squares end-point moving average on a known test series
  23. 1996Constructing an endpoint moving average from a least-squares line
  24. 1996Scoring equity path consistency with a k-ratio overlay
  25. 1996Evaluating month-end yield gaps for equity regimes
  26. 1996Constructing session-indexed standard error bands
  27. 1998Evaluating linear regression baselines for index valuation
  28. 1998R-squared as a two-state trend filter from a price-time fit
  29. 2000Second-order moving-average lag correction
  30. 2002Price regression line versus beta for index tracking
  31. 2003Regression slope with an r-squared trend confidence gate
  32. 2003Constructing finite-volume-element divergence with slope comparison
  33. 2004Building a daily score from regression, retracement, and volume
  34. 2004Constructing least-squares trendlines from ordered prices
  35. 2007Rectangle breakout targets beyond height
  36. 2007Confirming a price trend with regression slope and r-squared
  37. 2008A linear-regression angle assembled as one trend filter
  38. 2010A two-state swing machine from four running extremes
  39. 2016Score oil-complex tightness before divergence or regression
  40. 2017Nikkei-yen intermarket divergence as a regime case study
  41. 2017Constructing Calmar ratio and linear regression baselines
  42. 2019Pair-trade layer construction versus average-spread management
  43. 2020A convolution slope built from nested linear regression
All 112 readings tagged Linear regression
Also on Linear regression5 readings