What is the moving average and how do you trade with it?
A moving average is a technical indicator that measures historical and current price movements to show future market direction. Discover what a moving average is and the strategies you can use before you open a position with us.
What is a moving average?
A moving average (MA) is a technical indicator that can be useful in determining the future direction of a market. It does this by combining certain price points of the asset and then dividing that sum by the number of data points over a specific period - ultimately helping you to spot a possible trend.
Traders and investors generally use the historical data of price movement to spot a trend pattern and identify an entry and exit point to lessen the impact of random price fluctuations in a market. You can analyse the levels of support and resistance in a market by looking at the price charts to generate trading signals over a given time frame.
The term ‘moving’ average is derived from the replacement of old figures with new price points, changing the direction of the trend line on the chart every time. It is also known as a lagging indicator because it trails the price action of an asset over a specific period, smoothing out the price fluctuations to better spot the trend from the usual activity in the market.
This enables technical analysts to use the indicator when assessing short- and long-term timeframes to determine possible future patterns. For example, when trading finite commodities such as the US Crude, its price can see massive fluctuations due to supply and demand changes.
With us, you can use the MA indicator to analyse changes in price points on a custom date range, such as a 20-, 50-, 100- or 200-day period before you take a position.
Types of moving averages
The two most popular types of moving averages are simple moving average (SMA) and exponential moving average (EMA).
Simple moving average
A simple moving average is an unweighted technical indicator that combines the most recent data points to determine the mean price and divide the sum by the number of time periods in the past.
Once you’ve determined the mean over a given period, you’ll divide it by the number of prices in the set. You can calculate the simple moving average of an asset’s price by following the formula below:
For example, if you track the price of an asset over the last five data points using simple moving average (ie 67, 68, 65, 67 and 68), you’d combine all the values and divide them by five (n) to get the average of 67.
Exponential moving average
An exponential moving average is an indicator that places more significance on the most recent price points of an asset when determining future direction, making the indicator responsive to new information. It’s different from simple moving average because SMA measures data sets from the past, and EMA tracks the latest price point to provide trading signals on the direction that the market could take next.
Traders and investors tend to use the EMA indicator, especially in a highly volatile market because it’s more sensitive to price changes than the SMA. For example, EMA considers the most recent price points that could be a result of a company’s performance, changes in management, market sentiment or unexpected events.
Using the latest price point, you can measure the average closing price of a security over a specified number of periods, such as a 20-day, 50-day or 100-day average. You can calculate the exponential moving average using the formula below:
Let’s say you chose an EMA taken over a short timeframe such as a 10-day average. You’d calculate EMA by first getting the current closing price (Pt), the EMA of the previous period (EMAt-1), and the smoothing factor (k).
The smoothing factor (k) takes on a value of between 0 and 1, using the formula 2/(m+1), where m = 10.
Price | EMA (m=10) | |
Day one | 102.4 | |
Day two | 103.6 | |
Day three | 103.5 | |
Day four | 101.2 | |
Day five | 100 | |
Day six | 104 | |
Day seven | 103.9 | |
Day eight | 102.2 | |
Day nine | 101.6 | |
Day ten | 100.9 | 102.33 |
How to start trading using moving averages
You can use the moving average indicator to trade or invest with us. When trading, you’ll take a position on a financial asset’s price rising or falling without taking ownership of the underlying. You’ll use CFDs to go long if you believe that it’ll rise or short if you think that it’ll fall.
When investing, you’ll buy and hold an asset, taking ownership, with the aim of making a profit in the long term and selling it when the share price goes up. With us, you’ll use our share trading offering to invest in shares and ETFs.
We’ve listed a few steps that you need to follow to open a position with us:
- Decide whether you want to trade or invest
- Choose your preferred market
- Create an account or practise on a demo
- Set your position size and manage your risk
- Open your position and monitor your trade
CFD trading
CFD trading is buying and selling contracts to exchange the difference in price from the point at which the contract is opened, to when it’s closed. You can trade on leverage using this derivative product, which means you’ll only need a fraction of the full value of the trade as your deposit to open a position.
Just remember that this means that both your profits and losses will be calculated based on the full position size, not the deposit. Therefore, you have to take necessary steps to manage your risk.
People trade CFDs because they’re a great hedging tool. You’ll open a new position to protect your existing position from unpredictable market movements or offset potential losses.
Discover what CFD trading is and how it works
Share trading
With us, you can invest in over 13,000 shares and ETFs on a Share Trading account. You can trade international shares with zero commission1 and Australian shares from $5 if you trade more than three trades in the previous month.
Since share trading is non-leveraged, you’ll need to pay the full value of the position upfront to get exposure. This means that your maximum risk is capped at the total cost of your investment.
Moving average strategies in trading
There are several moving averages strategies that you can use to trade with us
Moving average crossover strategy
The moving average crossover strategy occurs when two different moving average lines intersect with one another to signal an opportunity to buy and sell. When this happens, the price level of the shorter-term moving average crosses either above or below the longer-term moving average to signal a potential change in the trend line.
The short-term moving average is also considered the faster moving average because it measures prices over a shorter time frame like a 5-, 10- or 20-day period. This makes it more responsive to daily price changes.
The long-term moving average, on the other hand, is much slower and less sensitive to short-term price actions because it considers prices over a longer stretch of time like a 100- or 200-day period. You can use these price levels to spot trend patterns, as well as the entry points to take a position and exit before the trend ends or reverses to the mean.
For example, when the short-term moving average (50 MA) crosses above the long-term moving average (200 MA) – also known as the golden cross – it signals that the asset price might rise and you should buy. Conversely, if the short-term moving average crosses below the long-term moving average – referred to as the death cross – it means that the price may fall, and you should consider selling.
Moving average ribbon strategy
A moving average ribbon is an adaptation of the crossover strategy in which a series of moving average trend lines are added onto the same chart in sequential order, to resemble a ribbon.
Generally, the moving average ribbon is created using six to eight lengths that display different trend lines, separated in 10-period intervals. For example, you’d add date ranges starting from 10-, 20-, 30-, 40-, 50-, and 60-day moving averages.
Note that you can calculate the moving average ribbon using SMA and EMA. To interpret the moving average ribbon, you’ll look at the direction that the trend lines are moving. For example, if the MA lines are moving in the same direction, this signals a strong trend. This would be MA lines in all time frames moving either upward or downward in the ribbon.
Traders and investors also measure the width between the MA lines to determine the momentum of the trend. For instance, let’s say the ribbon that the MA lines create moves parallel to one another, then that’d signal a strong trend.
However, if the MA lines form a ribbon with the lines growing farther apart from each period interval, this occurrence means that the current trend is coming to an end. Alternatively, if the MA lines are drawing closer together to the point where their crossing, this can indicate the start of a new trend.
Moving average convergence divergence (MACD)
The moving average convergence divergence (MACD) is a technical indicator that identifies changes in a market's price momentum. The indicator gathers data points from different moving average lines to determine support and resistance levels.
There are three components that are taken into consideration when making up the MACD indicator: the MACD line, the signal line and the histogram. Here are some of the calculations you need to consider:
- MACD line = 12-day EMA of closing price – 26-day EMA of closing price
- Signal line = 9-day EMA of MACD line
- Histogram = MACD line – signal line
You can use the indicator to determine the strength of the trend and the turning point of the trend. For example, when the MACD line crosses above the signal line, it indicates that you could buy the security, and if the MACD line crosses below the signal line, it indicates that you could sell or short the market.
Bollinger Bands moving average strategy
Bollinger Bands are used by technical analysts to plot trend lines on a chart that displays oversold or overbought levels. The two levels are on either side of the simple moving average line, two standard deviations away from the SMA of the asset’s price.
Traders and investors use the tool to measure the volatility in a market. That is, if the bands are further away from the middle line, it means that a market is more volatile, while the closer the bands are signals a more stable market.
The calculations involve taking the band on top of the middle (SMA) band and adding twice the daily standard deviation to that amount. The band below the middle band is subtracted two times the daily standard deviation.
One of the interpretations of using the Bollinger Bands is tracking the number of times that the market touches the bands to spot the signal to buy or sell. For example, if the price touches the band above the SMA line, it’ll provide an overbought signal. However, if the current price touches the band below the SMA line, it indicates an oversold signal.
Explore the ins and outs of the Bollinger bands
Moving average summed-up
- A moving average is an indicator that combines several price points and divides them by the number of data points available over a given timeframe to produce a trend line
- The two most popular types of moving averages are the simple moving average and exponential moving average
- The SMA adds the most recent data points over a specific period and divides the sum by the number of time periods in the past to provide signals for future price direction
- EMA applies an increase weighting to more recent price data, whereas a SMA places an equal weighting on price data
- There are several moving average strategies that you can use when trading, including the moving average crossover, moving average ribbon, MACD, and the Bollinger Bands
Footnotes
1 Note for multi-currency accounts: These figures apply to clients who opt for the default setting of 'instant currency conversion'. Clients who choose to convert currencies manually will pay commission of 2 cents per share with a minimum charge of $10 on US stocks and, for European markets, we charge £10 / €10 per trade or 0.1%, whichever is higher. Other fees and charges may apply, please refer to share trading charges and fees page.
This information has been prepared by IG, a trading name of IG Australia Pty Ltd. In addition to the disclaimer below, the material on this page does not contain a record of our trading prices, or an offer of, or solicitation for, a transaction in any financial instrument. IG accepts no responsibility for any use that may be made of these comments and for any consequences that result. No representation or warranty is given as to the accuracy or completeness of this information. Consequently any person acting on it does so entirely at their own risk. Any research provided does not have regard to the specific investment objectives, financial situation and needs of any specific person who may receive it. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and as such is considered to be a marketing communication. Although we are not specifically constrained from dealing ahead of our recommendations we do not seek to take advantage of them before they are provided to our clients.
Explore the markets with our free course
Discover the range of markets and learn how they work - with IG Academy's online course.