Standard deviation indicator

Standard deviation represents the technical foundation for effective online trading. Some of the greatest challenges that traders face is understanding the best time to enter the market, and how to foresee possible trend reversals. With this in mind, one of the most useful concepts is the so-called “standard deviation”.

This volatility indicator can have a great impact on investment strategies because it allows traders to better understand the up-and-down movements of the market, that is, movements that might prompt investors to enter a trade either too early or too late. Whereas more daring traders may be comfortable with an investment strategy that opts for above-average volatility, more conservative traders may not.

The standard deviation indicator measures market volatility and is used in statistics to describe the variability or dispersion of a set of data around the average. In technical analysis, it describes the price variability relative to a moving average (typically calculated at 20 days). The higher the standard deviation, the more unstable or volatile the market.
On the contrary, the lower the standard deviation, the more stable and steady the market; in other words, the price bars are very close to the moving average. It is a well-known fact, however, that market dynamics are characterised by an alternation of stable periods and peaks in activity.

standard-deviation

What does standard deviation show?

In general, this indicator is used as a partial component with other indicators. For example, standard deviation can be used to determine the spread between the lower and upper Bollinger Bands. In online trading systems, standard deviation (like other volatility indicators) is used to show and assess periods of volatility and to adjust the settings of technical indicators, so that the system can react more rapidly to the signals it receives during high periods of high volatility. This includes when price trends change very quickly and investors must promptly open or close a trade.

How to interpret standard deviation

The main interpretation of the standard deviation indicator is simple: if its value is too low – that is, if the market is completely stable – it is reasonable to expect a surge in activity in the near future. If, on the contrary, the indicator value is extremely high, the level of activity will likely slow down. Therefore, this information can alert traders to an imminent market entry opportunity.

Another use of the standard deviation in trading is to confirm upward or downward trends: as a rule, the market is less volatile during an upward trend, whereas during a downward trend or a market crash, you can witness high volatility due to an explosive volume of sale orders (also known as panic selling) initiated by investors.

How to use the standard deviation

Standard deviation can be used for three different purposes:

  1. To identify outliers, because they can represent situations in which good opportunities might emerge (especially for those practicing scalping and other advanced trading strategies)
  2. To choose points of entry based on trends: that is, understanding if some of the current prices have sufficiently deviated from the mean and could therefore return to their average value. If the trend is strong, investors could actually use the average price as the entry point.
  3. If prices instead indicate a narrow trading range and suddenly a strong standard deviation pushes prices away from the mean, investors can take advantage of the outlier values as an entry point.

Standard deviation formula

In mathematical statistics, standard deviation is the square root of the variance. By calculating a standard deviation, we are simply translating the square root of the variance, using the following formula:

[σ (x) = √V (x)]

In turn, the variance in trading is the sum of the squared value obtained by subtracting the mean (x) from each value in the data set, divided by the number of values in said set.

Open a live account

Unlock our full range of products and trading tools with a live account.

Apply now

Free demo account

Practise trading risk-free with virtual funds on our Next Generation platform.

Open a demo account

Standard deviation and variance

Technically, standard deviation is the square root of the variance. In turn, the variance is the sum of the squared values obtained by subtracting the mean (x) from each value in the data set, divided by the number of the values in said set. Standard deviation measures the dispersion of the returns around the average return value. In other words, standard deviation is a measure of volatility. This is a key concept when it comes to financial risk because financial risk is seen as the possibility of returns dispersing around the expected value.

Why is volatility important for the standard deviation?


Volatility and standard deviation are closely related. Standard deviation is a statistical term that measures the amount of variability or dispersion around the average, and it is also a measure of volatility. Generally speaking, dispersion is the difference between the value and the average. The greater this dispersion or volatility, the greater the standard deviation. The lower this dispersion or variability, the lower the standard deviation.

Example of volatility

Volatility can also be calculated for any market: imagine, for example, that some investors are building a pension portfolio. Since they will be retiring in the coming years, they are actively looking for stocks with low volatility and stable returns.
Consider two companies:
Mitsubishi Motors Corporation has a beta coefficient of 1.10, which makes it approximately as volatile as the S&P 500 index.
Peugeot S.A. has a beta coefficient of 1.78, making it significantly more volatile than the S&P 500 index. 

How to calculate standard deviation

Standard deviation can be calculated for assets within any market, including stocks, indices, commodities, forex and cryptocurrencies.
For example, consider Apple stock (AAPL) over the past five years. The returns for Apple Inc shares were 10.03% in 2016, 46.11% in 2017, -6.79% in 2018, 86.16% in 2019, and 6.05% in 2020.
The average yield (m) in this five year period is 28.31%.
The return value for each year minus the mean is -18.28% in 2016, 17.8% in 2017, -35.1% in 2018, 57.85% in 2019 and -22.26% in 2020. You can then square the values to produce 334.15, 316.84, 1232.01, 3346.62 and 503.07.
The variance equals 1433.17, in which the squared values are added and divided by 4. Then, the square root of the variance is taken, which leaves us with a standard deviation of 37.35%.

Standard deviation and Metatrader 4

Standard deviation is also often used with other MT4 indicators and add-ons, such as Bollinger Bands. These bands are plotted two standard deviations above and below a moving average. Movements beyond the bands are considered significant enough to be carefully evaluated. The most suitable platform to display these indicators is Metatrader 4.

Disclaimer
CMC Markets is an execution-only service provider. The material (whether or not it states any opinions) is for general information purposes only, and does not take into account your personal circumstances or objectives. Nothing in this material is (or should be considered to be) financial, investment or other advice on which reliance should be placed. No opinion given in the material constitutes a recommendation by CMC Markets or the author that any particular investment, security, transaction or investment strategy is suitable for any specific person.

Live account

Access our full range of markets, trading tools and features.

Open a live account

Demo account

Try trading with virtual funds in a risk-free environment.

Open a demo account

Demo account

Try CFD trading with virtual funds in a risk-free environment.

Live account

Access our full range of products, trading tools and features.

TOP