CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Standard Deviation Indicator

This guide explains what the standard deviation indicator measures, how to set it up in MetaTrader, how to read it, and the conditions where it gives a false picture.

Extrade Pakistan editorial team ·

On this page
  1. What standard deviation shows
  2. The formula
  3. How to add it in MT4 and MT5
  4. How to read it: a drawn example
  5. How to use standard deviation
  6. Parameter choices for experienced traders
  7. Where it misleads
  8. Frequent questions

What standard deviation shows

Standard deviation is a volatility indicator. It measures how far recent prices have spread away from their average, called the mean. When prices stay close to the average, the line is low. When prices swing far from it, the line rises.

It shows only the size of movement. It does not show direction. A sharp rally and a sharp fall can both produce the same high reading.

StdDev 20
Standard deviation: how far the closes spread around their 20-bar average; it rises when the price moves fast and falls when it is calm. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula

For a chosen period of N bars:

The result is in price units, the same units as the chart. That is why the same reading means different things on EURUSD and on XAUUSD. In MetaTrader you can change the period, the moving average method (simple, exponential, smoothed, linear weighted) and the applied price. The default values are shown in the indicator's settings window.

How to add it in MT4 and MT5

In both MetaTrader 4 and MetaTrader 5:

  1. Open the chart of the instrument you want to study.
  2. Go to Insert → Indicators → Trend → Standard Deviation.
  3. Set the period, MA method and applied price, then confirm.

The indicator opens in a separate window below the price chart. You can practise on a demo account before using it with real money.

How to read it: a drawn example

The sketch below is drawn by hand and does not show real prices.

How to use standard deviation

Traders commonly use it to:

Parameter choices for experienced traders

Where it misleads

Leveraged forex and CFD trading can lose money fast. No volatility reading removes that risk. For more tools, see technical analysis and leading vs lagging indicators.

Frequent questions

Is standard deviation a buy or sell signal?

No. It measures how much prices are dispersed, not which way they are heading.

What is standard deviation in forex used for most?

Traders mainly use it to judge current volatility, plan stop distance and position size, and build Bollinger Bands.

How is it different from ATR?

ATR measures the average range of each bar, including gaps. Standard deviation measures how far closes spread from their mean.

Why does the reading differ so much between symbols?

The output is in price units, so instruments with higher prices show larger values. Normalise the reading before comparing symbols.

Does it repaint?

No. Values on closed bars stay fixed. Only the current, unfinished bar changes. See repainting indicators.

Related pages