WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,186.79 +7.36%

Technical Indicators · Illustrated reference

Bollinger Bands: dispersion around a moving reference

How dispersed are recent closes around their own moving mean?

Read, watch or explore. No exercises, scores or required progression.

Animated explanation · synthetic observations

Bollinger Bands: dispersion around a moving reference

Once old observations leave, width can change without a comparable new move. The 10-period view reacts differently; two-sigma bands are not a guaranteed coverage interval.
Compare windows and reject guaranteed reversals

Once old observations leave, width can change without a comparable new move. The 10-period view reacts differently; two-sigma bands are not a guaranteed coverage interval.

Original synthetic bands explanation with calculated outputs, explicit initialization and a comparison view. The complete reference is shown when motion is unavailable. Playback is optional.

In this reference
  1. How dispersed are recent closes around their own moving mean?
  2. Inputs and reproducible calculation
  3. A calculation you can reproduce
  4. Read the behavior with price
  5. Initialization and implementation differences
  6. Compare the calculation, not just the shape
  7. What the output cannot establish
  8. A practical reading sequence
  9. Methodology and source notes

How dispersed are recent closes around their own moving mean?

Bollinger Bands place an upper and lower envelope around a moving average using a selected multiple of recent price dispersion. Their width changes as the dispersion changes. A band touch describes location relative to that recent distribution; it does not automatically mean price is about to reverse. An orderly trend can continue near a band.

The animation begins with the analytical purpose, then relates the calculated output to the price observations that produced it. Every line is recomputed from the same local synthetic inputs. No historical market dataset or success-rate claim is implied.

Inputs and reproducible calculation

M(t) = mean of the latest n closes
σ(t) = sqrt[Σ(C−M)² / n] over that same window
Upper = M + kσ; Lower = M − kσ
BandWidth% = 100 × (Upper−Lower)/M, when M ≠ 0
%B = (C−Lower)/(Upper−Lower), when width ≠ 0

Specify the observation interval, input field, price adjustment, history length and missing-value policy. A period counts observations, not calendar days. A partial candle can change its close, high, low and volume before completion; the corresponding indicator can change too. This reference treats its synthetic observations as completed.

A calculation you can reproduce

For closes 98,100,102, the mean is 100 and population variance is (4+0+4)/3=8/3. Standard deviation is about 1.6330. With k=2, the bands are 96.7340 and 103.2660; BandWidth is about 6.5320%. Using sample standard deviation with denominator n−1 would instead give 2 and different bands. That is a calculation choice, not rounding error.

Keep full precision through intermediate updates and round only for presentation. Repeatedly rounding the recursive state produces a different series. A numerical difference between implementations should first be traced to input history, seed, smoothing and degenerate-case rules before being called a market signal.

Read the behavior with price

The sequence starts in a narrow range, accelerates upward, continues more gradually, suffers a downward shock, and returns to quieter movement. The price panel shows the computed mean and bands; the lower panel shows their percentage width. The shorter-window comparison keeps the same prices and multiplier, changing n from 20 to 10.

Because the mean and standard deviation both come from the changing price window, band expansion can reflect a persistent slope as well as irregular fluctuations. A narrow band describes low recent dispersion; it supplies no direction for a subsequent exit. A new shock widens the envelope, and its later departure from a finite window can narrow it abruptly even without a new price event.

Initialization and implementation differences

This demonstration uses SMA, population standard deviation, a full-window warm-up and multiplier 2. No band is drawn before n valid closes exist. EMA-centered variants, different standard-deviation conventions and different price fields yield different envelopes. Replacing SMA with EMA while leaving an unspecified dispersion estimator is not a fully defined indicator.

Indicator values may differ across platforms because of calculation methods, initialization, data history, session settings and missing-data handling. The synthetic examples in this guide illustrate the stated calculation method and may differ from live indicator readings.

Compare the calculation, not just the shape

Input event

The advance increases separation among closes in the window. Both the mean and dispersion update from those same inputs.
The advance increases separation among closes in the window. Both the mean and dispersion update from those same inputs.

Later behavior

The shock remains inside the finite window and continues to influence dispersion even after daily movement becomes quieter.
The shock remains inside the finite window and continues to influence dispersion even after daily movement becomes quieter.

Controlled comparison

Once old observations leave, width can change without a comparable new move. The 10-period view reacts differently; two-sigma bands are not a guaranteed coverage interval. Comparison: 10-period window; the multiplier remains 2.
Once old observations leave, width can change without a comparable new move. The 10-period view reacts differently; two-sigma bands are not a guaranteed coverage interval. Comparison: 10-period window; the multiplier remains 2.

The comparison view changes the stated input or parameter while retaining the rest of the experiment. It is an optional demonstration, not an exercise. The captions explain the result directly; no answer or prediction is required.

What the output cannot establish

Two standard deviations around a moving price mean do not establish a 95% future-price prediction interval. That interpretation would require assumptions about distribution, dependence and forecasting that this calculation does not provide. Repeated touches in a trend, abrupt window exits and outliers all challenge a simplistic “upper means sell, lower means buy” interpretation.

A threshold crossing is an observation about the formula. Turning it into a decision requires an entry convention, an exit convention, execution assumptions and a loss budget. Without those, an attractive indicator picture is not an investment strategy. Repeated signals derived from the same prices are also not automatically independent confirmations.

Parameter choices should follow the question being asked, not a search for the smoothest historical chart. A shorter memory can reveal change sooner while reacting to more transient variation. A longer memory can reduce some fluctuations while retaining obsolete conditions. Neither choice removes uncertainty, transaction costs or gap risk.

A practical reading sequence

First identify the price behavior and interval. Next inspect whether the indicator has enough completed observations to be initialized. Then describe the output in its actual units and compare it with the relevant input event. Finally consider a competing explanation, such as a window exit, an unusual volume weight or a change in the reference range. This sequence prevents a familiar line shape from replacing the calculation.

Preserve failed or ambiguous examples when evaluating a rule. Do not move an indicator backward in time to make it appear more responsive, exclude cases with unavailable outputs without describing the exclusion, or use a completed higher-timeframe value before that candle actually ended.

Related: smoothing and initialization, market context, completed and incomplete intervals, risk and adverse execution.

Methodology and source notes

John Bollinger’s methodology and interpretive cautions: Bollinger Band Rules. Bollinger Bands is an established indicator name; the calculations and synthetic visual examples here are original WOI work.

Source references checked 3 December 2026. Formulas are explained independently; no external illustration is reproduced. The original synthetic scenarios explain mechanisms and limitations, not validated investment advantages.