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.
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
- Compute the N-period average (mean) of closing price (default 20).
- For each close in the window, subtract the mean and square the result.
- Average those squared differences (sum them and divide by N).
- Take the square root of that average — this is the standard deviation.
- 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
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?
How is standard deviation related to Bollinger Bands?
Does standard deviation show market direction?
What is a good standard deviation setting?
What is the difference between standard deviation and ATR?
What does a low standard deviation mean?
What does a high standard deviation mean?
Why is standard deviation squared in the formula?
Can standard deviation be used for position sizing?
Is standard deviation useful on its own?
Does standard deviation work for Nifty and Bank Nifty?
How does standard deviation relate to volatility?
Voice search & related questions
Natural-language questions people ask about Standard Deviation.
What is standard deviation in simple words?
Does standard deviation tell you when to buy?
Is standard deviation the same as Bollinger Bands?
What does low standard deviation mean?
Sources & references
- John Bollinger, Bollinger on Bollinger Bands — standard deviation basis
- Standard deviation as a volatility measure
Last reviewed 8 July 2026. Educational content only — not investment advice.