WhitmanTrading

Standard Error Bands: Fit, Not Volatility

Standard error bands sit a multiple of the standard error either side of a linear regression line fitted to recent prices. The width measures how well that line fits, not how far price moves. So an orderly trend narrows them, and a quiet, directionless market widens them.

How it works

Standard error bands are drawn around a fitted line, not an average. The centre is a linear regression through the recent closes, and the bands sit a multiple of that fit’s standard error either side of it.

A candlestick chart of the site's shared price history. The headline on the chart reads: Bands set by how badly the line fits.
Bands set by how badly the line fits. Illustrative chart - not real market data.

The width is the error of the regression itself. Standard error summarises how far the actual closes sit from the line drawn through them. Nothing else enters the number.

A gently rising stretch of the long price series. The headline on the chart reads: The width is the error of the regression itself.
The width is the error of the regression itself. Illustrative chart - not real market data.

Which is not the same as price volatility. Bollinger Bands widen when price moves a lot; these widen when price stops following the line, and a fast, orderly trend can produce narrow bands and a large daily range at once.

A calmly advancing stretch of the long price series. The headline on the chart reads: Which is not the same as price volatility.
Which is not the same as price volatility. Illustrative chart - not real market data.

A good fit gives narrow bands even in a fast market. If every close lands near the sloping line the residuals are small and the channel is tight, however far price has travelled in the meantime.

A choppy, directionless stretch of the long price series. The headline on the chart reads: A good fit gives narrow bands even in a fast market.
A good fit gives narrow bands even in a fast market. Illustrative chart - not real market data.

So they narrow when the trend is orderly. That is the reverse of what a volatility band does, and it is the single fact that makes the indicator worth learning at all.

A flat, quiet stretch of the long price series. The headline on the chart reads: So they narrow when the trend is orderly.
So they narrow when the trend is orderly. Illustrative chart - not real market data.

Reading the width the right way round

And widen when price stops following the line. A quiet, directionless market fits a straight line badly, so the channel can be at its widest while the bars themselves are small.

A strongly rising stretch of the long price series. The headline on the chart reads: And widen when price stops following the line.
And widen when price stops following the line. Illustrative chart - not real market data.

Most versions smooth the result, which adds lag. Published implementations run a moving average over both the regression line and the error, which steadies the picture and delays every change in it.

A declining stretch of the long price series. The headline on the chart reads: Most versions smooth the result, which adds lag.
Most versions smooth the result, which adds lag. Illustrative chart - not real market data.

Participation is nowhere in the calculation. Volume enters neither the regression nor the error, so a tight channel says the closes were orderly, not that anyone was trading them.

A candlestick chart with a volume histogram beneath it, with the volume histogram emphasised. The headline on the chart reads: Participation is nowhere in the calculation.
Participation is nowhere in the calculation. Illustrative chart - not real market data.

In practice

A longer window makes everything steadier and later. The lookback is a free parameter, and lengthening it flattens the slope and calms the width at the cost of reacting a good deal later.

A long-horizon candlestick view of the same price series. The headline on the chart reads: A longer window makes everything steadier and later.
A longer window makes everything steadier and later. Illustrative chart - not real market data.

And one gap inflates the error for the whole window. A single opening gap leaves a large residual that widens the channel for as long as that bar stays inside the lookback.

A candlestick series containing several opening gaps, with the largest opening gap marked. The headline on the chart reads: And one gap inflates the error for the whole window.
And one gap inflates the error for the whole window. Illustrative chart - not real market data.

The opposite band is the only level on offer. Nothing in a regression channel marks where orders rest, so any stop loss other than the far band is a number you chose yourself.

A declining stretch of the long price series, with the entry price and the level at which a stop would trigger drawn as horizontal lines. The headline on the chart reads: The opposite band is the only level on offer.
The opposite band is the only level on offer. Illustrative chart - not real market data.

Every round trip costs 2% of a bar. research/series-measurements.json puts round-trip cost at 0.0098 price units, which is 2% of a median bar’s range on this series and 45% of the smallest bar.

A candlestick chart of the site's shared price history, annotated with the round-trip cost. The headline on the chart reads: Every round trip costs 2% of a bar.
Every round trip costs 2% of a bar. Illustrative chart - not real market data.

It is a goodness-of-fit measure wearing a channel. The whole regression is recomputed every bar, so the historical portion of the channel is not sitting where it sat yesterday.

A 72-bar candlestick section of the shared price history. The headline on the chart reads: It is a goodness-of-fit measure wearing a channel.
It is a goodness-of-fit measure wearing a channel. Illustrative chart - not real market data.

Reading both band families at once

The two families answer different questions, so read them side by side. Bollinger Bands and Keltner channels both scale with movement — one from standard deviation, one from the average true range, or ATR. Standard error bands scale with disorder.

Volatility bands widening while error bands narrow is the clearest reading available. Price is moving hard and moving straight, which is what an orderly trend looks like from both angles at once. It is also the point at which the Bollinger squeeze idea inverts.

Both widening is the genuinely disorderly case. Large bars going nowhere in particular: historical volatility is up and the fit is poor, which is the condition that punishes trend analysis and flatters mean reversion.

And a trader treating the two as interchangeable is reading different things off the same-looking picture. A narrowing means a coming move on one and settled order on the other. The picture is identical; the meaning is inverted.

What standard error bands are not

When it fails

A sideways, range-bound candlestick series. The headline on the chart reads: In a range the fit is poor and the bands are wide.
In a range the fit is poor and the bands are wide. Illustrative chart - not real market data.

The original data

A 72-bar window of the shared price history, cut short at the decision bar. The headline on the chart reads: The bands just narrowed sharply. Trend starting?
The bands just narrowed sharply. Trend starting? Illustrative chart - not real market data.

The coverage figures come from research/broker-coverage.json. A scan of the 31,760 videos in research/search-study-corpus.jsonl finds “bollinger bands” in 311 titles from 173 channels, median 3,816 views, against a single “standard error” title, 2,309 views, one channel. Both draw a channel; only one has a memorable name.

The more useful comparison is between the two measurements. research/series-measurements.json puts the average true range at a factor of 2.82 between quiet and active conditions, and the efficiency ratio at a median of 0.34. Before acting on any band width, ask which quantity it measures — if the answer is fit quality, a narrowing describes order, not a coming move.

Linear regression is the line these bands are drawn around, and the width is nothing more than how badly it fits.

Bollinger Bands measure dispersion around a moving average instead, which is why the two families widen at opposite moments.

Standard deviation is the quantity that separates them, since one applies it to price and the other to the residuals of a fit.

What I actually do

I put these on a chart years ago expecting them to behave like Bollinger Bands, and spent a fortnight reading them backwards. Every time they pinched in I braced for a breakout, and what was actually happening was a trend behaving itself. Once I understood that the width was scoring the fit rather than the movement, the indicator stopped lying to me. It never had lied; I had simply assumed all bands measure the same thing.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.