Skip to content

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

The basics of technical analysis

Lesson 9 of 11

Moving averages

So far we've just been looking at the various patterns that can appear in the movements of a price itself. However, there's a whole area of technical analysis dedicated to studying trading signals that are derived from the market price using mathematical calculations. These are called technical indicators, and they can be very useful weapons in a technical analyst's arsenal.

There are hundreds of indicators currently available, with analysts constantly working on new calculations to try and get an edge in the markets. Looking at all these in detail is beyond the scope of this course, but we will take a quick peek at one of the most popular and widely-used indicators out there - the moving average.

There are two main types of moving average:

  • Simple
  • Exponential

Simple moving average (MA or SMA)

Unsurprisingly given its name, the simple moving average simply plots the average price of a market over a specified period of time. Let's look at a daily GBP/USD chart with a 10-period MA overlaid on top:

In this case, to get the simple moving average for a particular day, all you need to do is add up the closing price of the last ten periods (or days in this case) then divide them by ten to get the average. Join those averages together and you'll get the green line above. Fortunately, you generally don't have to do these calculations yourself - most charting packages have the option to add moving averages to the chart automatically.

Notice how the 10-period moving average seems to follow the price, but the line is smoother and lags somewhat. Now look what happens when you add a 20-period MA to the chart:

The 20-period moving average is even smoother and lags even further behind the price. Which isn't particularly surprising when you consider it's taking into account the last 20 periods rather than the last ten. For this reason, technical analysts would say that the 20-period MA is slower than the 10-period MA. Now let's add a 50-period MA:

It's even smoother, with even more lag. Of the three moving averages, the 50 MA is the slowest while the 10 MA is the fastest.

Exponential moving average (EMA)

The exponential moving average works in pretty much the same way as the simple moving average, except it gives more weight to the more recent periods. This means the EMA is quicker to respond to price moves and tends to follow the underlying price more closely than the corresponding MA. Let's have a look at how the 20 EMA compares to the 20 MA on a daily GBP/USD chart:

Now here's the 50 EMA and the 50 MA:

Because of how it's calculated, the EMA is more sensitive to price spikes in recent periods, but less sensitive to price spikes in periods that are further away. This can be useful information when using moving averages to trade, as we'll see in the next section.

Lesson summary

  • Technical indicators are mathematical calculations derived from a market's price and often used to provide trading signals
  • The simple moving average (MA or SMA) plots the average price of a market over a specified period of time
  • The exponential moving average (EMA) is similar but gives more weight to recent periods
  • Fast moving averages stick close to the market price, while slow moving averages are smoother and lag further behind
Lesson complete