Reading the chart
What Bollinger Bands are
Three lines run across the price on this chart. The middle one is a moving average of the kind covered earlier in this module. The outer two sit above and below it at a distance that is not fixed: they spread apart when recent closes have been scattered, and they close in when recent closes have been bunched together. That is the entire construction. One average, and one measurement of how far the closes strayed from it.
8 min read, Reviewed
What you will be able to do
- State how the bands are constructed from an average and a dispersion measure
- Explain what band width records about recent volatility
- Explain why price touching a band is a statistical description, not an event
- Explain how the bands behave when volatility contracts and expands
The three lines, and where each comes from
The middle line is a simple moving average of closing prices, conventionally over twenty periods. Nothing about it is new: it is the mean of a stated count of recent closes, recalculated when each bar closes, with the drop out effect and the lag that construction guarantees. Everything said in the moving average lesson about the middle line remains true here, because it is the same object under a different name.
The outer two lines are the part that is new, and they are computed from exactly the same closes as the middle one. The standard deviation of those closes is worked out, multiplied by a stated number, conventionally two, and the result is added to the middle line to draw the upper band and subtracted from it to draw the lower one. The envelope is therefore not an independent measurement laid over the average. It is derived from the same window, the same input price and the same bars, which is the single fact most of the rest of this lesson follows from.
Key term
- Bollinger Bands
- A moving average drawn with two bands a chosen number of standard deviations above and below it, so the bands widen when recent closes have been dispersed and narrow when they have been tightly grouped.
Key term
- Keltner channel
- A Keltner channel is a pair of bands drawn a chosen multiple of the average true range above and below a moving average, so the channel widens and narrows with volatility.
Two settings fully specify a set of bands: the length of the window and the multiple applied to the standard deviation. Twenty and two are the numbers the construction was published with, and they are inherited rather than derived, exactly as the moving average lengths in circulation are. Changing either one changes every line on the chart and therefore changes every date on which a close appears to have reached a band. A set of bands quoted without both settings, and without the timeframe they are drawn on, does not describe anything specific.
What the standard deviation measures
A standard deviation is a measure of spread, and the procedure that produces it is short. The mean of the values is taken. Each value's distance from that mean is measured, and each of those distances is squared, which removes the sign so that distances above and below the mean count the same. The squared distances are averaged, and the square root of that average is the standard deviation. Squaring and then taking the root returns the answer to the units of the original data, so a standard deviation of closing prices is quoted in the same units the prices are quoted in.
Key term
- Standard deviation
- Standard deviation measures how far a set of values sits from its own mean on average, expressed in the same units as the values themselves, which is why it can be added to and subtracted from a price.
One property of that procedure matters more than the rest. Because the distances are squared before they are averaged, a single close far from the mean contributes disproportionately to the result. A window containing one large excursion and many small ones returns a larger standard deviation than a window whose closes are evenly scattered by the same total amount. The measure is not a description of the typical bar. It is a description of the spread of the whole window, weighted towards its extremes.
One set of bands, computed from scratch
- Assumed window length
- 5 periods
- Assumed multiple of the standard deviation
- 2
- Closes in the window
- 100.00, 102.00, 98.00, 104.00, 96.00
- Mean of the five closes, the middle line
- 100.00
- Each close's distance from that mean
- 0.00, 2.00, 2.00, 4.00, 4.00
- Those distances squared, totalled
- 40.00
- Total divided by 5, the variance
- 8.00
- Square root of the variance, the standard deviation
- 2.83
- Upper band, 100.00 plus 2 × 2.83
- 105.66
- Lower band, 100.00 less 2 × 2.83
- 94.34
- Distance between the two outer lines
- 11.31
The window length and the multiple are assumptions, chosen short and round so every step can be checked by hand rather than because anything recommends them. The conventional settings are stated in the prose above. The standard deviation is shown rounded while the bands are computed from the unrounded value, which is why the last three rows do not tie exactly to two decimal places. The divisor used here is the count of closes; charting packages differ on that point, as the prose below sets out. No instrument is named, no profit or loss is calculated and no cost is involved.
One step in that table is a genuine and unresolved difference between charting packages. The squared distances can be divided by the count of closes, which treats the window as the entire population being described, or by one less than the count, which treats it as a sample drawn from something larger. The second divisor returns a slightly larger standard deviation and therefore slightly wider bands. Neither convention is wrong, and software does not always state which it uses, so identical settings on identical prices in two applications can draw bands in marginally different places.
What the width of the envelope records
The distance between the two outer lines is the standard deviation multiplied by twice the chosen multiple, and nothing else enters it. The middle line does not affect the width, the direction of the market does not affect it, and the absolute level of price does not affect it. Width is a direct rendering of one quantity: how far the closes in the current window sat from their own mean.
The same middle line, two levels of dispersion
- Middle line, both cases
- 100.00
- Assumed multiple, both cases
- 2
- Case one, standard deviation of the window
- 0.50
- Case one, upper and lower bands
- 101.00 and 99.00
- Case one, distance between them
- 2.00
- Case one, that distance as a proportion of the middle line
- 2.00%
- Case two, standard deviation of the window
- 2.00
- Case two, upper and lower bands
- 104.00 and 96.00
- Case two, distance between them
- 8.00
- Case two, that distance as a proportion of the middle line
- 8.00%
The two standard deviations are assumed rather than computed from a series, chosen so the ratio between the cases is exactly fourfold. The middle line is identical in both cases: nothing about the average changed, only the spread of the closes around it. The proportion in the last row of each case is the derived measure charting packages call band width, which exists so that envelopes on instruments quoted at different price levels can be compared at all. Round illustrative figures, no instrument named, no profit or loss calculated, no cost involved.
Key term
- Historical volatility
- A measure of how much a price actually moved over a past window, calculated as the standard deviation of its returns and usually restated as an annual percentage.
Key term
- Volatility
- Volatility measures how widely a price has moved around its own average over a period, counting moves in both directions equally and saying nothing about which way the next one goes.
Width is what people mean when they say the bands measure volatility, and the claim is accurate provided volatility is understood in its narrow statistical sense: the dispersion of a set of closes that have already printed, over a window that has already elapsed, on one timeframe. It is not a measure of how far price travelled inside each bar, since only closes are used and the highs and lows never enter the calculation. It is not a measure of anything expected. A wide envelope is a record of a scattered window and a narrow envelope is a record of a bunched one.
What a close at a band describes
A close sitting on the upper band states one thing exactly: that close is the chosen multiple of standard deviations above the mean of the closes in the current window. A close on the lower band states the same in the other direction. That is a description of where one number sits relative to a small set of recent numbers, and it is complete. There is no second statement folded into it about the level being high or low, about a move being finished, or about what the next bar contains.
The reason the two standard deviation multiple was chosen is worth knowing, and so is the reason it does not carry the meaning it appears to. In a normal distribution, roughly ninety five observations in a hundred fall within two standard deviations of the mean, which makes an observation outside that distance an unusual one for that distribution. A rolling window of closes is not a normal distribution, and three separate features of the construction break the analogy. The mean and the standard deviation are recomputed every period, so the reference point moves. The window is short, so both are estimated from very few observations. And the close being judged is itself one of the observations used to compute the mean and the deviation it is being compared against.
That last feature has a consequence visible in arithmetic. Because an unusually distant close enters the window it is being measured against, it raises the standard deviation of that window, which pushes the band outward at the same moment the close is reaching for it. The band is not a fence that price arrives at. It is a line that moves in response to the same close that appears to be testing it.
An extreme close widens the band it is reaching for
- Assumed window length and multiple
- 5 periods, multiple of 2
- Closes before the new one, oldest to newest
- 99.00, 100.00, 101.00, 100.00, 100.00
- Mean and standard deviation of that window
- 100.00 and 0.63
- Upper band before the new close
- 101.26
- Next close arrives, oldest close leaves
- 104.00 arrives, 99.00 leaves
- Closes now in the window
- 100.00, 101.00, 100.00, 100.00, 104.00
- New mean, the middle line
- 101.00
- New standard deviation
- 1.55
- New upper band, 101.00 plus 2 × 1.55
- 104.10
- The arriving close, against that band
- 104.00, still inside it
- Furthest any single close can sit from its own window mean, 5 period window
- 1.79 standard deviations
The window length is an assumption chosen so every step can be checked by hand, and the final row is a property of that assumption rather than of any market: with only five closes, no single close can reach two standard deviations from their mean, so on this window no close can print outside the bands at all. A twenty period window has a much higher arithmetic ceiling, and closes outside the bands do occur there. What survives the assumption is the middle of the table: the close that stretched the window also stretched the lines computed from it, and both bands moved on the bar being judged. Round illustrative figures, no instrument named, no profit or loss calculated, no cost involved.
Contraction, expansion, and walking a band
When successive closes cluster tightly around their own mean, the standard deviation falls and the envelope narrows. Practitioners call a period of unusually narrow bands a squeeze, and the word is a description of the chart to the left of it: it records that closes have been bunched, over the window, up to now. Some traditions hold that a narrow envelope is followed by a wide one, and rest the claim on the observation that width is bounded below by nothing and unbounded above, so a series cannot sit near its floor forever. Critics of that reasoning point out that it establishes only that width eventually changes, which was never in question, and fixes neither when nor by how much.
Two limits are conceded by the practitioners who make that argument. The arithmetic dates nothing: a window can stay narrow for as long as closes keep clustering, and the construction contains no clock. And the width of the envelope is direction free by definition, because squaring the distances discarded the sign, so a contraction says nothing whatsoever about which way a subsequent expansion would run. An expansion is also visible only after the closes that produced it have printed and entered the window, which is the same lag the moving average lesson derived, inherited intact.
The mirror situation is the one most often misread. During a sustained move in one direction, closes cluster near the band on that side while the whole envelope travels with the mean, and successive closes touch or sit just outside the same band for a long run of bars. Practitioners call this walking the band. It is not a malfunction and not a contradiction of the construction: a directional move is precisely a set of closes that keep sitting on one side of their own recent mean, and that is what the arithmetic is built to report. Repeated contact with one band and a sustained move in that direction are the same fact described twice.
Where the description breaks down
- A step change in price. After a gap or an abrupt repricing, the window carries closes from both sides of the change for its whole length. The standard deviation is inflated by a difference that occurred once, so the envelope reports elevated dispersion for as many periods as the window is long, and then collapses when the pre change closes fall out of it.
- The settings are not fixed by anything. The window length and the multiple are both chosen, and every touch, every squeeze and every walk on a chart is a consequence of that pair. Adjusting them until past touches look convincing is fitting the setting to the chart it will be judged on.
- The divisor convention. Dividing by the count of closes or by one less than the count produces different bands from identical prices, and packages do not always say which they use.
- Session breaks and data conventions. The bands are built from closes, so wherever two providers define a session differently or fill a non trading period differently, the mean and the dispersion both differ, and so do all three lines.
- The timeframe. A twenty period window covers hours on an hourly chart and a month on a daily one. The same instrument carries contracting bands on one timeframe and expanding bands on another at the same moment, and neither is the instrument's volatility.
- The highs and lows are absent. Only closes enter the calculation, so a period that travelled a long way and came back contributes nothing to the standard deviation, while a period that barely moved but closed away from the mean contributes a great deal.
Where practitioners disagree
The largest disagreement is about what a close at a band is taken to indicate, and the two positions are flat contradictions of each other. One tradition reads a touch as a stretched condition and expects closes to return towards the middle line. Another reads the same touch as evidence of a move with enough force behind it to push closes to the edge of their own recent distribution, and expects continuation. The two schools look at the same line on the same chart and draw opposite conclusions from it, which is itself the most useful thing to know about the touch: it does not carry a direction. The arithmetic states where a close sits relative to a recent window, and both readings are interpretations laid on top of that statement rather than consequences of it.
The second disagreement is statistical. Critics of the construction argue that applying a normal distribution's two standard deviation convention to a short rolling window of prices borrows the authority of a statistical result whose conditions are not met, since the observations are not independent, their distribution is not normal, and the observation being tested is inside the sample that defines the test. Defenders answer that the envelope was never presented as a probability statement, only as a relative measure of position that adapts to the instrument and the period rather than using a fixed distance, and that its value is legibility rather than inference.
The third concerns the middle line. Some practitioners treat it as a reference in its own right, on the argument that it is a widely watched average and the whole envelope is anchored to it. Others treat it as scaffolding whose only job is to give the standard deviation something to be measured from, and pay attention to width alone. Nothing in the calculation settles that, because the construction defines the middle line as an input to the outer two and says nothing about what either is for.
In summary
- Bollinger Bands are a simple moving average of closes, conventionally over twenty periods, with two lines drawn a stated multiple of the standard deviation of those same closes above and below it. Both settings are inherited conventions rather than derived quantities.
- The width of the envelope is a rendering of one quantity only: how far the closes in the current window sat from their own mean. It records dispersion that has already occurred, it carries no direction because the sign was squared away, and it says nothing about how long a narrow or wide period lasts.
- A close at a band states that the close is that many standard deviations from the mean of its own window, and nothing further. The close is itself part of the window, so an extreme close widens the band it appears to be testing.
- During a sustained move, closes sit on one band for long runs of bars, because a directional move is exactly a set of closes staying on one side of their own recent mean. Repeated contact with a band and a continuing move are one fact described twice.
Get started
Open your account in four steps.
A clear path from sign-up to your first trade, in four steps.
No depositNo documents
01/ 04step 1 of 4
Register
A few details to get started.
No deposit to open
02/ 04step 2 of 4
Verify
Confirm your identity, securely.
ID and proof of address
03/ 04step 3 of 4
Fund
Add money by bank transfer or card.
From $0
04/ 04step 4 of 4
Trade
Go live on the platform you already know.
MetaTrader 5



