Standard Deviation (StdDev)

Standard Deviation
Indicator

VolatilitySeparate panelFree on ChartLabs

Standard Deviation measures how far the last 14 closes are spread around their average, in price units. It rises when price swings and falls when it calms.

A basic statistic of volatility. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIStandard Deviationchartlabs.co/charts
Atlas reads it

StdDev is rising. The last 14 closes are spreading further from their average.

StdDev 1,360.1 · 2.08% of price

Atlas reads it

StdDev is rising. The last 14 closes are spreading further from their average.

StdDev 1,360.1 · 2.08% of price

Illustration on simulated data.

Standard Deviation (StdDev)What is the Standard Deviation indicator?

Standard Deviation draws one grey line in its own panel. Its value is in the instrument's price units: a reading of 500 on a bitcoin chart means the last 14 closes have typically been about 500 dollars from their average.

For each bar it takes the last 14 closes, finds their average, and measures how far each close is from it. Squaring, averaging and taking the square root of those distances gives the standard deviation. ChartLabs uses the population form, dividing by 14, the same form Bollinger Bands use.

A rising line means closes are spreading out, which happens in fast rallies and sell-offs alike. A falling line means closes are bunching together. It says nothing about direction.

The start of the chart

ChartLabs computes Standard Deviation from the first bar using the closes available so far, so the line has values before 14 bars exist. Treat the first few as rough.

StdDev or ATR?

StdDev uses closes only and measures spread around an average. ATR uses highs, lows and gaps and measures bar size. Both rise with volatility.

Standard Deviation signalsFive patterns to know.

1Inconclusive

Closes bunch together

StdDev sinks to a low. Price is quiet, and quiet spells often come before a larger move.

Wakes up after the quiet spell
2Inconclusive

Waking up after a quiet spell

From a low, StdDev starts climbing. Volatility is returning; price shows which way.

3Inconclusive

Spreading out in a sell-off

StdDev doubles as price drops. Fast moves spread the closes away from their average.

Rises in a rally too
4Inconclusive

Rising in a rally

StdDev also climbs when price rises quickly. Volatility is not only a feature of falls.

5Inconclusive

Settling down

After a burst, StdDev falls back as closes bunch together again.

Standard Deviation formulaHow it is calculated.

x‾=114∑i=114closeiσ=114∑i=114(closei−x‾)2
STEP 1

Average the closes

Take the simple average of the last 14 closes.

STEP 2

Measure the distances

Subtract the average from each close and square the result.

STEP 3

Average and take the root

Average the squares, dividing by 14, and take the square root.

Standard Deviation settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length141 to 5,000 (typical 10 to 30)How many closes are measured. Shorter reacts faster to a burst of volatility.
SourceCloseAny price, or volumeWhich values are measured.
LineGrey #9598A1, 1 pxAny colour and widthColour and width of the line.
FormPopulation (divide by N)FixedThe same form Bollinger Bands use.
Setting
Length
Default
14
Range
1 to 5,000 (typical 10 to 30)
What it changes
How many closes are measured. Shorter reacts faster to a burst of volatility.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
Which values are measured.
Setting
Line
Default
Grey #9598A1, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
Setting
Form
Default
Population (divide by N)
Range
Fixed
What it changes
The same form Bollinger Bands use.
142 jumps to twice the 50-bar average
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Standard Deviation strategiesUse it in 3 setups.

Wakes up after the quiet spell

Expansion after a quiet spell

IfStdDevclimbs off a lowandprice breaks its rangethenfollow the break

Volatility returning after a lull often comes with a directional move. Traders let price decide the side.

Watch the lows

WhenStdDevis near its lowest in a whilepreparefor a larger move

A very low reading does not say which way, only that the market is unusually quiet.

Size down when it doubles

IfStdDevdoublesthenreduce position size

Wider swings mean the same stop distance carries more risk. Many traders size positions from current volatility.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Standard Deviation mistakesCommon mistakes.

Reading StdDev as direction

It rises in sell-offs and in rallies. It measures how spread out closes are, never which way they went.

Assuming calm means safe

A falling StdDev only describes the last 14 closes. Quiet markets can move sharply without warning.

Guessing the break direction

A low reading says a move may be coming, not its direction. Here the quiet range broke lower.

Standard Deviation combinationsPair it with these.

Standard Deviation FAQQuestions traders ask.

What are the default Standard Deviation settings?

Length 14 on the close, population form.

What does a rising StdDev mean?

The last 14 closes are spreading further from their average. Price is moving more, in either direction.

Population or sample standard deviation?

ChartLabs uses the population form, dividing by N, like Bollinger Bands.

Why does the line start on the first bar?

It uses the closes available so far until 14 exist, so early values are based on fewer closes.

StdDev or ATR?

StdDev uses closes only. ATR uses each bar's high, low and the previous close, so it also captures gaps and intrabar swings.

Can I compare StdDev across markets?

Not directly, because it is in price units. Divide by price, or use Historical Volatility, for a comparable figure.

Does StdDev work on crypto?

Yes. It tracks how volatile any market is.

Is StdDev leading or lagging?

Lagging. It describes the last 14 closes.

Does StdDev repaint?

No. Values on closed bars never change. The live bar moves until it closes.

How is it used in other indicators?

Bollinger Bands, Bollinger BandWidth and z-scores are all built on it.

Related indicatorsMore volatility tools.

All volatility indicators

Try Standard Deviation on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
StdDev (14, close)