Standard deviation explained: trading with standard deviation

Article By: ,  Financial Writer

What is standard deviation?

Standard deviation is a measurement of variation within a set of data points relative to the dataset’s mean average. A higher standard deviation indicates greater variability, while a lower standard deviation suggests less variability from the mean.

To understand standard deviation as it applies to trading, you can think of the data points as closing prices and the average mean as representative of the average price for the period you’re analyzing.

For traders, standard deviation is frequently used to assess the volatility or risk associated with an asset. A stock with high volatility has a wider range of price fluctuations, resulting in a higher standard deviation. On the other hand, a stock with lower price fluctuations will have a lower standard deviation.

How to use standard deviation in your trading strategy

Standard deviation is used in several different trading indicators to calculate risk vs return when conducting risk management. It can be applied to a single asset, an index or an entire market. When applied specifically to the rate of return, standard deviation can measure a trade or investment’s historical volatility.

Evaluating a market using standard deviation

Deviation can also be used to measure a market’s current price action. For example, market tops with growing standard deviation can indicate indecisive traders, while market tops with low standard deviation may indicate a more mature bull market. On the other hand, market bottoms with high standard deviation indicate panicked sell-offs while low standard deviation demonstrates traders may currently be disinterested in the market.

  • Market tops + decreasing volatility = maturing bull market
    • Evaluating longer time frames, a maturing bull market displays low standard deviation during recurring price tops
  • Market tops + growing volatility = hesitant traders
    • Traders may be unsure of where the market is going next when price tops occur with increasing standard deviation
  • Market bottoms + decreasing volatility = traders losing interest
    • An extended period of low standard deviation and recurring market bottoms often signals a flat market
  • Market bottoms + growing volatility = panicked selloffs
    • Mass selloffs are often indicated by high standard deviation and recurring market bottoms

In the EUR/USD chart above, a period of losing interest is indicated by recurring market bottoms while the price drifts downwards and standard deviation falls.

Standard deviation has many uses beyond measuring current market momentum. Keep reading to learn how standard deviation is calculated and the many ways it can be applied to your trading strategy.

How to calculate standard deviation

Standard deviation is calculated in these steps:

  1. Find the mean average closing price for every period in the timespan you’re analyzing
  2. Determine the deviation for each period (closing price – average price)
  3. Square each deviation
  4. Add the total sum of all squared deviations
  5. Divide the total by the number of periods (the same number of deviations you squared)
  6. Take the square root of the quotient found in step 5

Thankfully, most trading platforms will automatically calculate the standard deviation of any timeframe. On the FOREX.com web trader platform, you can apply standard deviation from the dropdown list of indicators.

Standard deviation formula

The formula for calculating standard deviation looks like this:

Trading strategies with standard deviation

Standard deviation can be used on its own to measure volatility in a market, but it is also used in the calculation of several other indicators to give a more comprehensive analysis. Below, we go through several ways you can apply standard deviation to your trading plan.

However, like other measures of volatility, standard deviation does not differentiate positive and negative deviation in its calculation. So, a high deviation could be from a market outperforming its average or underperforming. 

Risk assessment

Standard deviation is a key tool for measuring volatility, which is a crucial factor in assessing risk. A higher standard deviation indicates greater price swings and potential losses. For example, commodities will typically have higher standard deviations while a balanced stock index will display less deviation.

Diversification

Diversification is a strategy aimed at reducing risk by investing in a variety of assets. Standard deviation plays a role here by allowing investors to compare the volatility of different assets in their portfolios. A well-diversified portfolio consists of assets with varying standard deviations to mitigate the impact of a single highly volatile asset.

Volatility

Some traders specialize in volatility trading, which involves profiting from price fluctuations regardless of the market's direction. Volatility trading strategies often rely on options and derivatives, and standard deviation is used to assess the expected magnitude of price movements.

Stop loss and take profit orders

You can use standard deviation to place appropriate stop loss and take profit levels. A high standard deviation might require wider stop loss and take profit ranges to account for the asset's volatility, while a lower standard deviation might require tighter ranges.

Bollinger Bands

Other technical analysis indicators like Bollinger Bands incorporate standard deviation to make trend predictions based on price momentum. Using this information, Bollinger Bands can help identify potential trend reversals and breakout points.

Bollinger Bands consist of a moving average line and two lines plotted above and below the moving average at a certain number of standard deviations. The ranges indicated by standard deviations suggest when a market is overbought or oversold compared to its average price. 

Mean reversion

Mean reversion is a trading theory in fundamental analysis that posits the price of an asset will revert to its historical mean, or equilibrium. Standard deviation aids in identifying situations where an asset's price has deviated significantly from its mean, potentially signaling an opportunity to enter a trade based on the assumption that the price will revert to its average.

Detecting flat markets

Standard deviation can be used to gain insight into what is causing a flat market. Flat markets are often caused by low trading volume, but they can also exist in markets like indices where different assets performing both positively and negatively cancel each other out. While you typically want to avoid a flat market with little trading volume, a flat market with high volume may be poised for a breakout.

Downsides of standard deviation

We’ve covered a lot of ways standard deviation can be used to improve your trading strategy, but there are a few pitfalls to watch out for when using standard deviation. For one, standard deviation doesn’t indicate which direction the price is moving. A stock can perform exceptionally compared to past performance, and another can do poorly, but both could display the same degree of variation.

In addition, a single outlier can have a strong impact on the average mean, making the standard deviation seem more severe than it would be if that one data point was removed. When using standard deviation, you should keep in mind that the indicator gives more weight to extreme values. 

The information on this web site is not targeted at the general public of any particular country. It is not intended for distribution to residents in any country where such distribution or use would contravene any local law or regulatory requirement. The information and opinions in this report are for general information use only and are not intended as an offer or solicitation with respect to the purchase or sale of any currency or CFD contract. All opinions and information contained in this report are subject to change without notice. This report has been prepared without regard to the specific investment objectives, financial situation and needs of any particular recipient. Any references to historical price movements or levels is informational based on our analysis and we do not represent or warranty that any such movements or levels are likely to reoccur in the future. While the information contained herein was obtained from sources believed to be reliable, author does not guarantee its accuracy or completeness, nor does author assume any liability for any direct, indirect or consequential loss that may result from the reliance by any person upon any such information or opinions.

Futures, Options on Futures, Foreign Exchange and other leveraged products involves significant risk of loss and is not suitable for all investors. Losses can exceed your deposits. Increasing leverage increases risk. Spot Gold and Silver contracts are not subject to regulation under the U.S. Commodity Exchange Act. Contracts for Difference (CFDs) are not available for US residents. Before deciding to trade forex, commodity futures, or digital assets, you should carefully consider your financial objectives, level of experience and risk appetite. Any opinions, news, research, analyses, prices or other information contained herein is intended as general information about the subject matter covered and is provided with the understanding that we do not provide any investment, legal, or tax advice. You should consult with appropriate counsel or other advisors on all investment, legal, or tax matters. References to FOREX.com or GAIN Capital refer to StoneX Group Inc. and its subsidiaries. Please read Characteristics and Risks of Standardized Options.

Please note that foreign exchange and other leveraged trading involves significant risk of loss. It is not suitable for all investors and you should make sure you understand the risks involved, seeking independent advice if necessary.

The products and services available to you at FOREX.com will depend on your location and on which of its regulated entities holds your account.

FOREX.com is a trading name of GAIN Global Markets Inc. which is authorized and regulated by the Cayman Islands Monetary Authority under the Securities Investment Business Law of the Cayman Islands (as revised) with License number 25033.

FOREX.com may, from time to time, offer payment processing services with respect to card deposits through StoneX Financial Ltd, Moor House First Floor, 120 London Wall, London, EC2Y 5ET.

GAIN Global Markets Inc. has its principal place of business at 30 Independence Blvd, Suite 300 (3rd floor), Warren, NJ 07059, USA., and is a wholly-owned subsidiary of StoneX Group Inc.

© FOREX.COM 2024