The moving average (MA) is a simple technical analysis tool that smooths out price data by creating a constantly updated average price. The average is taken over a specific period of time, like 10 days, 20 minutes, 30 weeks, or any time period the trader chooses. There are advantages to using a moving average in your trading, as well options on what type of moving average to use. Moving average strategies are also popular and can be tailored to any time frame, suiting both long term investors and short-term traders. (see "The Top Four Technical Indicators Trend Traders Need to Know.")
Why Use a Moving Average
A moving average can help cut down the amount of "noise" on a price chart. Look at the the direction of the moving average to get a basic idea of which way the price is moving. Angled up and price is moving up (or was recently) overall, angled down and price is moving down overall, moving sideways and the price is likely in a range.
A moving average can also act as support or resistance. In an uptrend a 50-day, 100-day or 200-day moving average may act as a support level, as shown in the figure below. This is because the average acts like a floor (support), so the price bounces up off of it. In a downtrend a moving average may act as resistance; like a ceiling, the price hits it and then starts to drop again.
The price won't always "respect" the moving average in this way. The price may run through it slightly or stop and reverse prior to reaching it.
As a general guideline, if the price is above a moving average the trend is up. If the price is below a moving average the trend is down. Moving averages can have different lengths though (discussed shortly), so one may indicate an uptrend while another indicates a downtrend.
Types of Moving Averages
A moving average can be calculated in different ways. A five-day simple moving average (SMA) simply adds up the five most recent daily closing prices and divides it by five to create a new average each day. Each average is connected to the next, creating the singular flowing line.
Another popular type of moving average is the exponential moving average (EMA). The calculation is more complex but basically applies more weighting to the most recent prices. Plot a 50-day SMA and a 50-day EMA on the same chart, and you'll notice the EMA reacts more quickly to price changes than the SMA does, due to the additional weighting on recent price data.
Charting software and trading platforms do the calculations, so no manual math is required to use a MA.
One type of MA isn't better than another. An EMA may work better in a stock or financial market for a time, and at other times an SMA may work better. The time frame chosen for a moving average will also play a significant role in how effective it is (regardless of type).
Moving Average Length
Common moving average lengths are 10, 20, 50, 100 and 200. These lengths can be applied to any chart time frame (one minute, daily, weekly, etc), depending on the traders trade horizon.
The time frame or length you choose for a moving average, also called the "look back period", can play a big role in how effective it is.
An MA with a short time frame will react much quicker to price changes than an MA with a long look back period. In the figure below the 20-day moving average more closely tracks the actual price than the 100-day does.
The 20-day may be of analytical benefit to a shorter-term trader since it follows the price more closely, and therefore produces less "lag" than the longer-term moving average.
Lag is the time it takes for a moving average to signal a potential reversal. Recall, as a general guideline, when the price is above a moving average the trend is considered up. So when the price drops below that moving average it signals a potential reversal based on that MA. A 20-day moving average will provide many more "reversal" signals than a 100-day moving average.
A moving average can be any length, 15, 28, 89, etc. Adjusting the moving average so it provides more accurate signals on historical data may help create better future signals.
Trading Strategies - Crossovers
Crossovers are one of the main moving average strategies. The first type is a price crossover. This was discussed earlier, and is when the price crosses above or below a moving average to signal a potential change in trend.
Another strategy is to apply two moving averages to a chart, one longer and one shorter. When the shorter MA crosses above the longer term MA it's a buy signal as it indicates the trend is shifting up.This is known as a "golden cross."
When the shorter MA crosses below the longer term MA it's a sell signal as it indicates the trend is shifting down. This is known as a "dead/death cross"
Moving averages are calculated based on historical data, and nothing about the calculation is predictive in nature. Therefore results using moving averages can be random--at times the market seems to respect MA support/resistance and trade signals, and other times it shows no respect.
One major problem is that if the price action becomes choppy the price may swing back and forth generating multiple trend reversal/trade signals. When this occurs it's best to step aside or utilize another indicator to help clarify the trend. The same thing can occur with MA crossovers, where the MAs get "tangled" for a period of time triggering multiple (liking losing) trades.
Moving averages work quite well in strong trending conditions, but often poorly in choppy or ranging conditions.
Adjusting the time frame can aid in this temporarily, although at some point these issues are likely to occur regardless of the time frame chosen for the MA(s).
The Bottom Line
A moving average simplifies price data by smoothing it out and creating one flowing line. This can make isolating trends easier. Exponential moving averages react quicker to price changes than a simple moving average. In some cases this may be good, and in others it may cause false signals. Moving averages with a shorter look back period (20 days, for example) will also respond quicker to price changes than an average with a longer look period (200 days). Moving average crossovers are a popular strategy for both entries and exits. MAs can also highlight areas of potential support or resistance. While this may appear predictive, moving averages are always based on historical data and simply show the average price over a certain time period.
Forex EducationFind out how you can profit from this short squeeze strategy.
Active TradingWhile moving averages can be a valuable tool, they are not without risk. Discover the pitalls and how to avoid them.
Trading StrategiesThis tweak on moving averages gives traders faster access to the information they need.
Forex EducationLearn a strategy with clear entry and exit levels that will get you into a trend at the right time.
Forex EducationThese technical indicators help investors to visualize trends by smoothing out price movements.
Active TradingThese complex indicators can help traders interpret trend changes, but are they too good to be true?
Forex EducationTraders can benefit from experimenting with envelopes, which help spot trends after they develop.
Fundamental AnalysisLearn how to calculate a metric that improves on simple variance.
Forex EducationFind out how this simple trading strategy can be added into your trading arsenal.
Forex StrategiesU.S. dollar crosses with Canadian and Australian dollars offer easy access to crude oil trends due to their tight correlation with energy futures.
Fintech is a portmanteau of financial technology that describes ...
Indicators are statistics used to measure current conditions ...
A technical indicator that combines aspects of candlestick analysis ...
A form of technical analysis that looks at the range between ...
A momentum indicator that uses a stock’s price and volume to ...
A momentum indicator that uses volume flow to predict changes ...
Double exponential moving average, or DEMA, is a measure of a security's trending average price that gives the most weight ... Read Full Answer >>
Moving averages are very popular tools used by technical traders to measure momentum. The main purpose of these averages ... Read Full Answer >>
The only difference between these two types of moving average is the sensitivity each one shows to changes in the data used ... Read Full Answer >>
Whether you are using the 50-day, 100-day or 200-day moving average, the method of calculation and the manner in which the ... Read Full Answer >>
The exhausted selling model is a pricing strategy used to identify and trade based off of the price floor of a security. ... Read Full Answer >>
Count analysis is a means of interpreting point and figure charts to measure vertical price movements. Technical analysts ... Read Full Answer >>