Skip to main content
Track Chart scale analysis
7 / 14
Library

1995issue C021-9

Constructing a least-squares trend channel with two-standard-deviation rails

A statistically positioned trend channel is built by locking a bar window, fitting a least-squares midline through highs, lows, and closes, and placing two-standard-deviation rails around that line. Candidate support and resistance stay withheld until the rails show enough channel contact and the price scale matches the size of the move.

  • Lock a window from an early turning bar to a recent bar, fit a least-squares midline through highs, lows, and closes, and place two-standard-deviation rails from the scatter of those distances.
  • Use the outer rails as candidate support and resistance only after a maturity check: a projected turning level is not mature until the sides have been contacted at least three times, counting the leftmost bar as the first channel contact.
  • When prices have moved through a wide range, perform the fit on logarithms of price. Semilog construction avoids scale mismatch, in which a linear axis can put the same observations outside an otherwise comparable envelope.
  • An early reversal warning is constructed when an established advance fails to reach the upper rail. Confirmation is constructed when price later crosses the lower rail. The same construction applies to declining trends and to any chartable bar length.
Entries in this reading3 entries

Fit the midline and the rails

A statistically positioned trend channel is constructed by fitting a least-squares straight line through highs, lows, and closes from a chosen early turning bar to a recent bar, then drawing parallels two standard deviations above and below that line.

The least-squares midline is the single straight line that minimizes squared distances to the highs, lows, and closes inside that chosen bar window.

The scatter used to place the parallels is the standard deviation of the distances from the fitted line to the highs, lows, and closes inside the selected window. The two-standard-deviation rails are a pair of lines parallel to the midline and offset by twice that standard deviation, used as the channel's outer edges.

If those distances are treated as approximately normal, about 95 percent of the window's high, low, and close observations are expected to lie between the minus-two and plus-two standard-deviation rails.

A maturity check before support and resistance

Because nearly all observations in the window are expected inside the envelope, the outer rails are used as candidate support and resistance levels, subject to a separate maturity check.

A projected turning level from a channel edge is not treated as mature until the sides have been contacted at least three times. A channel contact is an occasion when price reaches or slightly crosses a rail. The leftmost bar of the channel is ordinarily counted as the first contact.

Nested channels and intersections

Smaller channels can be drawn inside larger ones. A nested channel is a statistically positioned envelope drawn on a shorter window that sits inside a larger envelope on a longer window. Their intersections are treated as candidate turning locations even when a nested envelope has only two edge contacts.

Match the price scale to the move

When prices have moved through a wide range, the regression and deviation calculations are to be performed on logarithms of price. Semilog construction fits the midline and rails to the logarithms of price so equal percentage moves occupy equal vertical space.

Scale mismatch is the use of a linear price axis on a fast-moving series, which can place the same observations outside rails that would contain them on a logarithmic axis. On a linear scale the same series can travel well beyond an otherwise comparable envelope.

Construct a reversal warning

An early reversal warning is constructed when an established advance fails to reach the upper rail. Confirmation is constructed when price later crosses the lower rail.

The same construction is described as applicable to any chartable bar length from one-minute bars to yearly bars, and to declining as well as advancing trends.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
7 of 14 in the Chart scale analysis track
19951-7 pp.Next on Chart scale analysisPercentage boxes turn a three-box reversal into a scale decisionA point-and-figure chart records direction and size of price change and does not place elapsed time on the horizontal axis.
All readings on this track · 14 readings
  1. 1982Constructing semi-log scales for trend channels
  2. 1988Treat a suspected bend as a construction test
  3. 1989Constructing percentage-box point-and-figure charts
  4. 1989Constructing point-and-figure objectives across chart scales
  5. 1991Unfinished point-and-figure until filter, scale, and pivots measure percent
  6. 1992A logarithmic point-and-figure construction with weekly breadth scores
  7. 1995Constructing a least-squares trend channel with two-standard-deviation rails
  8. 1995Percentage boxes turn a three-box reversal into a scale decision
  9. 2003Log scale trendlines and compound growth
  10. 2007Trendline and channel construction on linear versus log scales
  11. 2012Constructing trend-intensity overlays across chart scales
  12. 2015Index drawdown caps, chart-scale stops, and leverage
  13. 2016Evaluating breakouts by share-price band
  14. 2016Constructing chart scale with a golden-rectangle aspect ratio
All 14 readings tagged Chart scale analysis
Also on Chart scale analysis5 readings