CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 78.1% of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.
US English

The Moving Average: what is it and how to use it

By Richard Reed

12:43, 28 March 2018

Stock chart

When you’re trading stocks or any other type of security, it’s vital to keep track of their performance.

While you don’t want to overreact to short-term price fluctuation, you do need to ensure your investment is going up, not down, and to measure the rate at which the price is moving (unless you are in a ‘sell’ trade – shorting).

One of the most popular tools for checking movement over a given period of time is called the ‘moving average’.

This will give you the average price of a stock over a set number of days, depending on your investment horizon. This works whether you’re a short-term or a long-term investor.

Simple moving average

Sometimes known as the ‘simple moving average’ (there are more complex versions, such as the exponential moving average, or EMA) this can help cut through the volatility on a stock chart by showing long-term trends as a single line, rather than just seeing the noise of frequent fluctuations.

If you’re a short-term trader, then you will want to keep a close eye on a 10-20 day moving average – this is the average of the price movement over a set number of days, and will change each day (see table below).

A moving average of 30-100 days will give you a medium-term snapshot, while for longer-term investors, 100-plus day moving averages will give you a good feel as to how the stock is performing over a longer timescale.

Moving average plotsPlotting the simple moving average gives you a snapshot of stock price movement Photo: Shutterstock

Example of a moving average formula

Day Closing price 10-day MA Formula

  1. 150
  2. 155
  3.  157
  4. 160
  5. 165
  6. 159
  7. 162
  8. 160
  9. 165
  10. 169 160.2 Average days 1 to 10
  11. 166 161.8 Average days 2 to 11
  12. 167 163.0 Average days 3 to 12
  13. 168 164.1 Average days 4 to 13
  14. 169 165.0 Average days 5 to 14
  15. 170 165.5 Average days 6 to 15
  16. 174 167.0 Average days 7 to 16
  17. 172 168.0 Average days 8 to 17
  18. 175 169.5 Average days 9 to 18
  19. 177 170.7 Average days 10 to 19
  20. 180 171.8 Average days 11 to 20

You can also compare short-term trends with long-term trends by looking at the crossover between, say, a 10-day moving average and a 100-day average.

If you plot them on the same graph, if the 100-day average is moving steadily upwards, and the 10-day is moving downwards, there is some short-term selling occurring.

If it crosses downwards over the plot of the longer-term average, then there is a downward trend occurring, and it’s called a bearish crossover. Similarly, if the short-term moving average crosses the longer-term plot in an upwards direction, it’s known as a bullish crossover.

New trendsMoving averages are a good way of spotting trends Photo: Shutterstock

Trends

You can take this process one stage further. Rather than just analysing historic trends, you can also spot new trends under way. If current prices are significantly above a rising moving average, it suggests the stock is in an upward trend, while if prices are below a falling moving average it’s in a downward trend.

BTC/USD

70,910.70 Price
+2.860% 1D Chg, %
Long position overnight fee -0.0616%
Short position overnight fee 0.0137%
Overnight fee time 21:00 (UTC)
Spread 106.00

XRP/USD

0.63 Price
+1.120% 1D Chg, %
Long position overnight fee -0.0753%
Short position overnight fee 0.0069%
Overnight fee time 21:00 (UTC)
Spread 0.01168

Gold

2,214.37 Price
+0.880% 1D Chg, %
Long position overnight fee -0.0188%
Short position overnight fee 0.0106%
Overnight fee time 21:00 (UTC)
Spread 0.50

US100

18,262.00 Price
-0.110% 1D Chg, %
Long position overnight fee -0.0262%
Short position overnight fee 0.0040%
Overnight fee time 21:00 (UTC)
Spread 1.8

You can elaborate on this process to see whether recent price movement is just a blip, or part of a longer-term trend. If you plot short-, medium- and long-term moving averages on a chart, if the short-term moving average is diverging from the longer averages, it indicates a new trend in process.

If it is rising strongly above the longer averages then it is in an upward trend, while if it is dropping below falling averages, then it is in a downward trend.

This type of analysis is particularly useful in short-term trading, especially when you are using contracts for difference (CFDs), where you can sell or ‘short’ falling stocks.

However, it’s also useful for longer-term investing, where you may not wish to buy stock unless you can be confident it is outperforming a long-term moving average.

chart supportMoving averages will also often support a trend, with the troughs will frequently stopping at the line before rebounding Photo: ShutterstockChart

Support and resistance

Moving averages will also often support a trend. Stock prices fluctuate on a minute-to-minute basis, and if you look at a chart you will see a series of peaks and troughs.

Overlaying short- and medium-term moving averages as lines on the chart, the troughs or ‘pull-backs’ will frequently stop at the moving average before rebounding, as professional traders anticipate the stock’s next move.

Equally, if a stock falls below the trend indicated by a moving average, it often struggles to bounce back above the average. This is known as resistance.

You can also use this method of observation to set stops on your trading platform below (if you’re buying) the moving average of your choice, depending on your investment horizon. This prevents you being stopped out of the trade too easily due to random price spikes.

Gauging just how far below the moving average will come with experience, which is why it’s useful to have a dummy account before you start trading with real cash.

Moving averages should be considered an essential part of your toolkit as a trader, enabling you to thoroughly research price movements and trends before making a trade.

See also exponential moving averages.

Rate this article

Capital Com is an execution-only service provider. The material provided in this article is for information purposes only and should not be understood as investment advice. Any opinion that may be provided on this page does not constitute a recommendation by Capital Com or its agents and has not been prepared in accordance with the legal requirements designed to promote investment research independence. While the information in this communication, or on which this communication is based, has been obtained from sources that Capital.com believes to be reliable and accurate, it has not undergone independent verification. No representation or warranty, whether expressed or implied, is made as to the accuracy or completeness of any information obtained from third parties. If you rely on the information on this page, then you do so entirely at your own risk.

Still looking for a broker you can trust?

Join the 580.000+ traders worldwide that chose to trade with Capital.com

1. Create & verify your account 2. Make your first deposit 3. You’re all set. Start trading