VolatilityStatistical volatility measure (non-directional)SD

Standard Deviation SD

The statistical spread of price around its average — the raw math behind volatility.

Quick answer: Standard Deviation measures how far price disperses from its own moving average over a look-back period, quantifying volatility as a single number that rises when price scatters and falls when it clusters.

In simple words

Standard Deviation is the pure statistical measure of how spread out price has been around its recent average. If closing prices hug the average, the standard deviation is small and the market is calm; if they swing far above and below, it is large and the market is volatile. Like ATR, it measures magnitude, not direction. It is the raw ingredient inside Bollinger Bands — the bands are just the moving average plus and minus two standard deviations — but it can also be plotted on its own as a direct volatility gauge to spot when a market is unusually quiet or unusually stretched.

Standard Deviation — visual

How Standard Deviation looks on a chart

Standard Deviation plots as a single line below price. It rises when price disperses widely from its average (high volatility) and falls when price clusters (low volatility). It is always positive and non-directional.

317.555.4Std deviationTime (illustrative bars →)
Category
Volatility Indicators
Type
Statistical volatility measure (non-directional)
Created by
Statistical measure (basis of Bollinger Bands, 1980s)
Best timeframe
Daily for swing volatility; 15-min for intraday compression

Professional explanation

What standard deviation measures statistically

Standard deviation is a classic statistical measure of dispersion: the square root of the average squared distance of each value from the mean. Applied to price, it takes the last N closes, finds their average, measures how far each close sits from that average, and boils it into one number. A small standard deviation means closes cluster tightly around the mean (low volatility); a large one means they scatter widely (high volatility). Because deviations are squared, large outlier moves push it up sharply.

The engine inside Bollinger Bands

Standard Deviation is not just a companion to Bollinger Bands — it is their core. The upper and lower bands are literally the moving average plus and minus a multiple (usually 2) of the standard deviation. So every squeeze and expansion you see on Bollinger Bands is standard deviation contracting and widening. Plotting standard deviation on its own strips away the moving average and shows that volatility signal directly, which some traders find cleaner for spotting extremes.

Magnitude, not direction — and why squaring matters

Like ATR, standard deviation is direction-blind: a sharp rally and a sharp fall of equal size give the same reading. But it differs from ATR in how it is built. ATR averages true range (including gaps) linearly; standard deviation squares the distances from the mean, so it reacts more violently to a few large moves and is a purer measure of statistical dispersion of closes. ATR is better for stops in points; standard deviation is better for statistical comparison and mean-reversion.

Reading extremes and mean reversion

A very low standard deviation flags an unusually quiet, compressed market — a warning that volatility tends to revert to its mean and expand. A very high standard deviation flags a stretched, climactic market that often calms down afterward. This mean-reverting nature of volatility itself is the basis of squeeze strategies: buy the compression, expect the expansion. Standard deviation makes that compression measurable as a raw number rather than a band width.

Formula

Standard Deviation formula

σ = √( Σ(close − mean)² / N )

mean is the N-period average of closing price. Each close's distance from the mean is squared, averaged, and square-rooted. Default N is 20, matching Bollinger Bands.

  • σ (sigma) — The standard deviation — the volatility output, always positive
  • close — Each closing price in the look-back window
  • mean — The N-period simple moving average of closing price
  • N — Look-back period, default 20

How it is calculated

  1. Compute the N-period average (mean) of closing price (default 20).
  2. For each close in the window, subtract the mean and square the result.
  3. Average those squared differences (sum them and divide by N).
  4. Take the square root of that average — this is the standard deviation.
  5. Read a rising line as expanding volatility and a low, flat line as a quiet, compressed market.

Interpretation & signals

Traders read standard deviation for volatility level (high = stretched/volatile, low = quiet/compressed), for extremes (a multi-week low warns of a coming expansion; a spike warns of a possible climax), and as the input that drives Bollinger Band width.

Buy / bullish signals

  • Compression-to-expansion long: standard deviation sits at a multi-week low (a squeeze) and then rises as price breaks upward — a volatility-expansion entry in the breakout direction.
  • A low, flat standard deviation identifies a coiled market; combine with a directional breakout to time the long.
  • Use standard deviation to widen or tighten a volatility-based stop: a rising line means give the trade more room.
  • After a standard-deviation spike and reversal, price returning toward its mean can support a mean-reversion long in a range.

Sell / bearish signals

  • Compression-to-expansion short: a squeeze in standard deviation that then rises as price breaks downward flags a downside volatility expansion.
  • A climactic spike in standard deviation after an extended move warns of exhaustion — a cue to trim or tighten stops, not chase.
  • In a range, a mean-reversion short as price stretches far above its average with standard deviation elevated.
  • Reduce position size when standard deviation is high, since each move is statistically larger.

False signals to beware

  • Standard deviation gives no direction — a high reading does not say up or down, only that the market is volatile.
  • A single large gap or spike bar inflates it sharply because distances are squared, distorting the read for several bars.
  • Low standard deviation warns a move is coming but not when or which way — acting on compression alone is guessing direction.

Settings, timeframe & conditions

Best settings
20 periods (matches Bollinger Bands); tune to instrument
Avoid
Reading it as a directional or overbought/oversold signal
Works best in
Spotting volatility extremes and squeezes ahead of expansions
Struggles in
Around isolated gaps that spike the squared deviations

Advantages & limitations

Advantages

  • The purest statistical measure of price dispersion — objective and well-understood.
  • The engine behind Bollinger Bands, so understanding it deepens band interpretation.
  • Excellent at flagging volatility compression (squeezes) and stretched extremes.
  • Useful for mean-reversion and for scaling volatility-adjusted stops and sizing.

Limitations & disadvantages

  • Completely non-directional — useless alone for entries.
  • Over-reacts to a few large moves because deviations are squared.
  • Expressed in price units, so it is not directly comparable across instruments.
  • Lags, since it is computed over a trailing window.

Combining Standard Deviation with other indicators

  • Bollinger Bands — Bollinger Bands are standard deviation made visual — plotting the raw line alongside shows exactly why the bands squeeze and expand.
  • Average True Range — ATR and standard deviation are two lenses on volatility; agreement between them (both at multi-week lows) is a strong compression signal, while divergence hints one is distorted by gaps.
  • Moving Average — A moving average supplies the mean and the direction; standard deviation quantifies how far price has stretched from it for mean-reversion or breakout timing.

Practical examples (Nifty & Bank Nifty)

NIFTY example

Nifty drifts in a quiet, narrow band and its 20-period standard deviation falls to a multi-month low near 45 points — statistically the calmest it has been in months. Volatility being mean-reverting, this compression warns an expansion is near. When Nifty breaks its range and the standard deviation line turns sharply up, the expansion confirms; a trader takes the breakout in its direction, knowing the quiet phase is ending.

BANKNIFTY example

Bank Nifty's standard deviation is structurally larger than Nifty's because it swings harder — often running two to three times higher in point terms. Ahead of a policy event Bank Nifty coils and its standard deviation compresses; on the event day it spikes as price gaps and swings. A trader uses that spike to widen stops and cut size, since each bar is now statistically far larger, rather than reading the spike as a directional signal.

Common mistakes

  • Reading a high standard deviation as bullish or bearish — it is direction-blind.
  • Comparing Nifty's and Bank Nifty's raw standard deviation and calling one 'more volatile' without adjusting for price level.
  • Ignoring that one big gap can inflate it disproportionately because deviations are squared.
  • Confusing statistical standard deviation with ATR — they measure volatility differently.

Professional usage

Professionals use standard deviation as the quantitative core of volatility analysis. They track it to identify compression regimes (squeezes) that precede expansions, to scale volatility-adjusted stops and position sizes, and to understand exactly why Bollinger Bands behave as they do. In quantitative work it underpins volatility models, z-scores and mean-reversion signals — it is less a chart trigger than a foundational measurement other tools are built on.

Key takeaway

Standard Deviation is the raw statistical measure of how far price scatters from its average — the engine inside Bollinger Bands. It quantifies volatility as a single number: low means a compressed, coiled market likely to expand, high means a stretched one likely to calm. Like all volatility tools, it measures magnitude, never direction.

Frequently asked questions

What is standard deviation in trading?
Standard deviation measures how far price disperses from its own moving average over a look-back period, quantifying volatility as a single number. A low value means price is clustered and the market is calm; a high value means price is scattered and volatile.
How is standard deviation related to Bollinger Bands?
Standard deviation is the engine inside Bollinger Bands. The upper and lower bands are the moving average plus and minus a multiple (usually 2) of the standard deviation, so every band squeeze and expansion is the standard deviation contracting and widening.
Does standard deviation show market direction?
No. Like ATR, standard deviation measures only the magnitude of price movement, not its direction. A sharp rally and a sharp fall of the same size produce the same reading, so it is used for volatility, not for buy or sell decisions.
What is a good standard deviation setting?
The common default is 20 periods, matching Bollinger Bands. Shorter periods react faster to changing volatility; longer periods give a smoother, more stable read. The period should suit your trading timeframe.
What is the difference between standard deviation and ATR?
Both measure volatility, but standard deviation squares the distances of closes from their mean (a pure statistical dispersion of closing prices), while ATR averages true range including gaps, in points. ATR is better for stops; standard deviation is better for statistical comparison and mean reversion.
What does a low standard deviation mean?
A low standard deviation means closing prices are clustered tightly around their average — a quiet, compressed market. Because volatility tends to revert to its mean, a multi-week low often precedes a large expansion, though it gives no direction.
What does a high standard deviation mean?
A high standard deviation means price is scattering widely from its average — a volatile, stretched market. It often accompanies climaxes and sharp moves, and elevated readings tend to be followed by a calming as volatility reverts.
Why is standard deviation squared in the formula?
Each close's distance from the mean is squared before averaging so that positive and negative deviations do not cancel out and larger moves count much more. The square root at the end returns the measure to the original price units.
Can standard deviation be used for position sizing?
Yes. Because it quantifies volatility, traders scale stops and position sizes to it — giving trades more room and taking smaller size when standard deviation is high, and vice versa — to keep risk roughly constant across conditions.
Is standard deviation useful on its own?
It can be, as a direct volatility line to spot squeezes and extremes without the moving average that Bollinger Bands add. But because it is non-directional, it is most useful combined with a trend or breakout tool that supplies direction.
Does standard deviation work for Nifty and Bank Nifty?
Yes. It flags compression and expansion on both indices. Bank Nifty's raw standard deviation is much larger than Nifty's because it swings harder in point terms, so the two should not be compared without adjusting for price level.
How does standard deviation relate to volatility?
Standard deviation is one of the most direct mathematical definitions of volatility — the dispersion of price around its average. Rising standard deviation is rising volatility; falling standard deviation is falling volatility. It underpins Bollinger Bands and many quantitative volatility models.

Voice search & related questions

Natural-language questions people ask about Standard Deviation.

What is standard deviation in simple words?
It is a number that shows how spread out prices have been around their average. A small number means the market is calm and steady; a big number means it is swinging around a lot.
Does standard deviation tell you when to buy?
Not by itself. It only measures how volatile the market is, not which direction it will go. Traders use it to spot quiet markets that may explode and to set stop sizes, alongside a direction tool.
Is standard deviation the same as Bollinger Bands?
They are closely linked. Bollinger Bands are drawn using standard deviation — the bands are the average plus and minus two standard deviations. So standard deviation is the math behind the bands.
What does low standard deviation mean?
It means the market has gone very quiet, with prices staying close to their average. That calm often does not last, so a low reading can warn that a bigger move is on the way.

Sources & references

Last reviewed 8 July 2026. Educational content only — not investment advice.

Educational content only — not investment advice. Indicator diagrams are illustrative, computed from a fixed synthetic price series. Trading involves substantial risk. See our Risk Disclosure and SEBI Disclaimer.