The Standard Deviation Indicator: What It Actually Measures
Standard Deviation is not a signal. It is a single number describing how widely closing prices have been scattered around their own moving average over the last N bars, and almost everything useful about it follows from that one sentence.
In one sentence:
It measures how spread out recent closing prices have been; a high reading means the market has been moving in large steps, a low reading means it has been crawling.
Standard Deviation Indicator at a glance
| Difficulty | Intermediate: simple to plot, easy to misread as a signal |
| What it measures | The dispersion of closing prices around their own moving average, in price units |
| Direction | None. It is unsigned, up moves and down moves read the same |
| MT5 location | Ships as standard. Insert → Indicators → Trend → Standard Deviation (it sits in the Trend group despite not being a trend tool) |
| Common settings | Period 20, applied to Close, with a Simple moving-average method |
| Timeframes | Works on any, but readings are only comparable to the same instrument on the same timeframe |
| Effectively duplicates | Bollinger Band width; overlaps heavily with ATR and with Keltner channel width |
| What kills it | Comparing raw values between instruments, or treating a high reading as a directional signal |
What it is and why it works
Standard deviation is a statistic, not a trading idea. Take the last 20 closing prices. Work out their average. Measure how far each close sits from that average, square those distances so that positive and negative gaps do not cancel out, take the mean of the squares, then take the square root to get back to price units. That result is the standard deviation, and the indicator simply plots it once per bar.
So the line you see is answering one question and only one: over the last N closes, how far from the average has a typical close been? A rising line means recent closes have been scattered more widely than they were; the market is taking bigger steps. A falling line means closes have been clustering; the market is taking smaller steps. Nothing in the calculation knows anything about direction. A market falling hard and a market rallying hard produce identical readings.
This is worth being blunt about because Standard Deviation is the engine inside Bollinger Bands. Bollinger Bands are a moving average with a band drawn a set number of standard deviations above and below. If you have Bollinger Bands on your chart and you then add Standard Deviation underneath, you have not added information; you have plotted the band width as a separate line. That can be genuinely useful, because a number in its own pane is easier to compare across time than the visual gap between two bands, but it is not confirmation of anything.
It is also a close cousin of ATR, and the difference matters. ATR measures the average size of each bar’s full range including gaps. Standard Deviation only ever looks at closing prices. A market that whips through a huge range every bar but closes in the same place each time will show a high ATR and a low Standard Deviation. If you are sizing stops, ATR is the more honest input, because your stop gets hit by wicks, not by closes.
How to trade it, step by step
- Add it and set the period to match your decision horizon. In MT5 open Insert → Indicators → Trend → Standard Deviation. Set Period to 20 and Apply to Close. A 20-period reading on the H1 chart describes roughly the last day of trading; a 20-period reading on the M5 chart describes the last 100 minutes. Choose the one that matches how long you actually hold trades.
- Read the level relative to its own history, never in absolute terms. A Standard Deviation of 0.0012 means nothing on its own. Scroll back several hundred bars and note where the line has typically sat, where its lows are and where its spikes top out. You are building a personal sense of “normal for this instrument on this timeframe”. That reference frame is the whole tool.
- Mark the compressed zones. Find the periods where the line has fallen to the bottom of its own range and stayed there. These are the phases where closes have been clustering tightly. Volatility is mean-reverting over time, so extended compression tells you an expansion is more likely than not, but it tells you nothing about which way.
- Use expansion as a validity check on breakouts, not as an entry. When price breaks a level you care about, look at the Standard Deviation line. If it is rising as the break happens, closes are genuinely moving away from their average. If it is flat or falling, price has poked through a level without any change in behaviour, which is what most failed breakouts look like.
- Cross-check with ATR before you use it for stops. If Standard Deviation is low but ATR is high, the market is producing large wicked bars that keep closing in the same area. That is a stop-hunting environment. Size and place stops from ATR in that case, and treat the low Standard Deviation as a warning that direction is absent, not that risk is.
- Normalise it if you want to compare instruments. Divide the Standard Deviation by the current price to get a percentage. Only then can you say that gold is more volatile than EUR/USD in any meaningful sense. Raw price-unit readings on different instruments are not comparable and comparing them is the single most common misuse of this indicator.
- Decide in advance what you will do with each state. Compressed reading means smaller position or no position, and patience. Expanding reading means wider stops, smaller size for the same risk, and a preference for continuation over mean reversion. Extremely elevated reading means the move is mature and late entries carry the worst risk-to-reward of the whole cycle.
Size every one of those entries with the position size calculator and check the trade is worth taking with the risk/reward calculator before you commit.
The conditions it needs
A single instrument, a single timeframe, and enough history to calibrate
The indicator only has meaning in comparison with itself. You need several hundred bars of the same instrument on the same timeframe visible before a reading tells you anything. Traders who add it and immediately start trading it are reading a number with no reference frame.
Markets with a genuine volatility cycle
Instruments that alternate between quiet accumulation and directional expansion (index CFDs, gold, the major FX pairs during and outside their sessions) produce a Standard Deviation line with a usable rhythm. Instruments that grind at a constant pace give you a flat line with nothing to read.
As a filter on top of a structural method
It is most informative when it is answering a question you already have. You have identified a level from market structure and you want to know whether the current break is behaviourally different from the last five. That is a question Standard Deviation can answer. “What should I trade today?” is not.
Position sizing and expectation setting
Perhaps its most honest use. If dispersion has doubled, the same fixed stop distance is now half as far away in behavioural terms, and your target needs rescaling too. Feeding a volatility reading into size rather than into entries removes the temptation to treat it as a signal.
When it fails
- Treating a high reading as bullish. The calculation squares every deviation, which destroys the sign. A crash and a melt-up produce the same line. If you find yourself buying because Standard Deviation is rising, you are reading a magnitude as a direction.
- Stacking it with Bollinger Bands and calling it confluence. Bollinger Band width is standard deviation. Adding both to a chart and waiting for them to agree is waiting for a number to agree with itself. Genuine confluence requires inputs that can actually disagree.
- Comparing raw readings across instruments. A reading of 1.80 on gold and 0.0009 on EUR/USD are not on the same scale and never will be. Any conclusion drawn from comparing them is arithmetic nonsense.
- Assuming low volatility means low risk. Compression is the condition that precedes expansion. The quietest chart is often the most dangerous one to be over-sized in, because the resolution of a squeeze is exactly when a normal stop distance stops being normal.
- Using it for stop placement instead of ATR. Standard Deviation only sees closes. Your stop is hit by the low of the bar, not by its close. A tool that is blind to wicks is the wrong tool for placing an order that only wicks can reach.
- Chasing the period setting. Shortening the period to make the line more responsive just makes it noisier, and lengthening it makes it lag the very expansion you wanted early warning of. There is no setting that removes that trade-off, and hunting for one is time you are not spending on structure.
Markets it is most informative on
- GER40 (DAX): A pronounced volatility cycle around the European open makes compression and expansion phases unusually clear.
- Gold (XAU/USD): Long quiet stretches punctuated by violent expansion; the exact rhythm this indicator is built to describe.
- EUR/USD: Deep, well-behaved and heavily session-driven, so its dispersion cycle maps cleanly onto the trading day.
- NAS100 (Nasdaq): Volatility regimes shift fast here, and a dispersion reading is a better guide to position size than instinct.
For different levels of experience
If you are brand new
Ignore the maths for a moment and look at the shape. The line goes up when the market has been making big moves and down when it has been quiet. That is genuinely all it says.
The most useful thing you can do with it as a beginner is nothing clever at all: check it before you enter. If the line is near the bottom of where it has been over the last few hundred bars, the market is quiet, your target should be smaller, and a “breakout” is more likely to be a drift. If it is high, moves are bigger, your stop needs more room, and you should therefore trade a smaller position, not a bigger one because it looks exciting.
Do not try to buy or sell because of this indicator. It cannot tell you which way to go. It only tells you how far things have been travelling.
If your results are inconsistent
The mistake at this stage is adding it to a chart that already contains Bollinger Bands, ATR and a Keltner channel and believing four things are agreeing. They are all measuring bar size from more or less the same data. When they agree it is because they are near-duplicates, not because the evidence is strong.
Pick one volatility measure and understand it properly. If your stops are hit by wicks, that measure should be ATR. If you care about whether closes are genuinely moving away from the mean, which is what a real breakout looks like, Standard Deviation is the better read. Then spend the freed-up chart space on something that measures a different thing entirely, such as volume or structure.
The second adjustment: start normalising. Divide the reading by price, keep a note of the percentage on the instruments you trade, and you will stop being surprised by how differently the same stop distance behaves on gold versus a major pair.
If you are experienced
Treated as a realised-volatility proxy on close-to-close data, its limitations are well understood: it is blind to intrabar range and to gaps, it responds to a single outlier bar with a lasting bump because of the squaring, and it inherits a window artefact where an old extreme dropping out of the lookback moves the line with no new information at all. That last point catches people out on longer periods; a fall in the line can be an old bar leaving, not a new regime.
Where it earns its place is in regime classification and sizing, not timing. A percent-of-price series compared against its own multi-month distribution gives you a workable low/normal/high state, and that state should drive position size, target scaling and whether you allow mean-reversion entries at all. Above the top of the historical range, continuation systems degrade and reversion systems get run over; at the bottom, the opposite.
If you need an early read on expansion rather than a lagging one, the useful comparison is Standard Deviation against ATR rather than against itself. Divergence between the two, range expanding while close-to-close dispersion stays flat, identifies the wick-heavy, two-sided conditions where breakout logic fails hardest, and it is a state that neither indicator identifies alone.
Risk management for this strategy
Because Standard Deviation carries no direction, it cannot generate a stop or a target on its own. What it can do is tell you when your usual stop distance has stopped being appropriate.
The practical rule: if dispersion has roughly doubled from where it sat when you calibrated your strategy, your stop needs roughly twice the room, which means your position size should be roughly halved to keep the cash risk identical. Traders routinely do the first half and forget the second, which is how a normal losing trade becomes an abnormal one. Work the size out with a position size calculator rather than adjusting by feel.
Be equally disciplined in the other direction. Low dispersion is not permission to increase size. It is a warning that the current stop distance is calibrated to a state of the market that will not last, and the transition out of compression is exactly when accounts get damaged.
Where Market Structure Pro fits
The hard part of using a volatility measure is not reading it. It is deciding what to do with it in the seconds before an entry, when the number is one input among a dozen and you are already leaning towards the trade.
Market Structure Pro folds volatility state into a single verdict rather than leaving it as another line to interpret. Its ranging and chop filter exists specifically to say NO TRADE when dispersion is low and price is oscillating around its own mean; the compressed state where Standard Deviation is at the bottom of its range and breakout attempts mostly fail. It is also spread-aware, which matters in the same conditions, because when the available range shrinks the spread becomes a much larger share of any target.
Because the verdict locks on the closed bar and does not repaint, the volatility state you were shown at the moment you decided is the state that stays on the chart afterwards. That makes review honest, and reviewing your own decisions honestly is the only way a volatility filter ever improves anything.
One verdict with a confidence score, an A/B/C grade and a plain-English reason. Non-repainting, on every MT5 instrument and timeframe.
Stop guessing whether the setup is valid
Market Structure Pro reads structure, trend, momentum, levels, volatility, volume and session in one pass and gives you a single answer with the reasoning attached. Free 7-day trial, no card required.
Start free trialFrequently asked questions
What does the Standard Deviation indicator actually measure?
It measures how far closing prices have typically strayed from their own moving average over the last N bars, expressed in the price units of the instrument. A high value means recent closes have been widely scattered; a low value means they have been clustering tightly. It contains no directional information at all.
Is Standard Deviation the same as Bollinger Bands?
It is the ingredient Bollinger Bands are built from. Bollinger Bands plot a moving average with an upper and lower band set a number of standard deviations away, so the width of the bands is the standard deviation. Plotting both on one chart shows the same measurement twice rather than confirming anything.
Standard Deviation or ATR, which should I use for stops?
ATR, in almost every case. ATR measures the full high-to-low range of each bar including gaps, which is what actually reaches a stop order. Standard Deviation only looks at closing prices, so it can read low while the market is producing large wicked bars that would take you out.
What is the best period setting for the Standard Deviation indicator?
Twenty is the common default and matches the standard Bollinger Band setting, but the right answer is whatever window matches your holding time. Shorter periods react faster and produce more noise; longer periods are steadier but lag the expansion you wanted warning of. There is no setting that avoids that trade-off.
Can Standard Deviation tell me whether to buy or sell?
No. The calculation squares each deviation from the average, which removes the sign, so a sharp fall and a sharp rally produce identical readings. It describes how much the market is moving, never which way. Any directional decision has to come from structure or price itself.
Why can I not compare Standard Deviation between two instruments?
Because it is measured in the instrument's own price units. A reading on gold is denominated in dollars per ounce and a reading on EUR/USD in fractions of a cent, so the two numbers are on unrelated scales. Divide by the current price to get a percentage if you need a genuine comparison.
Does the Standard Deviation indicator come with MetaTrader 5?
Yes. It ships as standard and is found under Insert, then Indicators, then the Trend group, which is a slightly odd place for a volatility tool but that is where MetaQuotes put it. No custom indicator or download is required.
What does a very low Standard Deviation reading mean?
It means closes have been clustering tightly and the market has been moving in small steps. Volatility tends to cycle rather than stay flat, so extended compression makes an eventual expansion more likely, but the indicator gives no clue about the direction of that expansion and low readings are not the same thing as low risk.
Related reading
- Bollinger Bands: The same calculation drawn as bands around price rather than as a separate line.
- ATR: The volatility measure that includes wicks and gaps, and the right one for stop placement.
- Keltner Channels: ATR-based channels: useful to contrast with the standard-deviation approach.
- Risk Management: Where a volatility reading genuinely belongs: in your position size.