Moving average trading signal

Here's what this technical indicator says about US stocks now.

  • Facebook.
  • Twitter.
  • LinkedIn.
  • Print

It's been nearly a year since US stocks—as measured by the S&P 500—recovered all of their COVID-19-induced losses. The uptrend in the charts since then has been strong, and as of mid-June, stocks are at all-time highs, trading above 4,200.

While there are a number of reasons to think that stocks can continue to rally, including a steadily improving jobs picture, lower COVID-19 infection and mortality rates in many parts of the world amid the vaccination rollout, and an ongoing reopening of global economies, investors should continue to monitor their investments and the market for potential risks. At the top of this list: A potential resurgence in infection rates (as well as the risk of COVID-19 variants developing), inflationary pressures, the withdrawal of some government and central bank support, geopolitical risks, and any other factors that could slow or reverse the market’s momentum.

From a chart perspective, a tool that you can use to watch for a continuation or change to an existing trend is moving averages. This indicator suggests US stocks may be able to keep pushing higher, but there are some key price levels to watch for a potential change in the trend.

What are moving averages?

As a supplement to your fundamental analysis of an investment opportunity, or to add insight to an investment you already own, you can incorporate moving averages to potentially enhance your trading proficiency.

Among all the technical analysis tools at your disposal, moving averages are one of the easiest to understand and use in your strategy. Moving averages may be a particularly useful tool to help you see through the noise and identify trends as they are unfolding.

A mean is simply the average of a set of numbers. A moving average is a (time) series of means; it's a "moving" average because as new prices are made, the older data is dropped and the newest data replaces it.

A stock or other investment's normal movements can sometimes be volatile, gyrating up or down, which can make it somewhat difficult to assess if a pattern is forming. The primary purpose of moving averages is to smooth out the data you're reviewing to help get a clearer sense of the trend.

There are a few different types of moving averages that investors commonly use.

  • Simple moving average (SMA). An SMA is calculated by adding all the data for a specific time period and dividing the total by the number of days. If XYZ stock closed at 30, 31, 30, 29, and 30 over the last 5 days, the 5-day simple moving average would be 30 [(30 + 31 + 30 +29 + 30) / 5 ].
  • Exponential moving average (EMA). Also known as a weighted moving average, an EMA assigns greater weight to the most recent data. Many traders prefer using EMAs because they place more emphasis on the most recent market developments.
  • Centered moving average. Also known as a triangular moving average, a centered moving average takes price and time into account by placing the most weight in the middle of the series. This is the least commonly used type of moving average.

Fast and slow

Shorter moving averages are frequently referred to as "fast" because they change direction on the chart more quickly than a longer moving average. Alternatively, longer moving averages can be referred to as "slow."

Moving averages can be added on to all types of price charts (i.e., line, bar, and candlestick), and are also an important component of some other technical indicators. In terms of when to use moving averages, they can be helpful at any time. However, they are considered to be particularly useful in upward or downward trending markets—like this stock market.

In most trading platforms, you can choose between different moving average indicators, including a simple or an exponential moving average. You can also choose the length of time for the moving average. A commonly used setting is to apply a 50-day exponential moving average and a 200-day exponential moving average to a price chart (see Moving averages applied to the S&P 500 chart).

Moving averages in action

Moving averages with different time frames can provide a variety of information. A longer moving average (such as a 200-day EMA) can serve as a valuable smoothing device when you are trying to assess long-term trends.

A shorter moving average, such as a 50-day moving average, will more closely follow the recent price action, and therefore is frequently used to assess short-term patterns. Each moving average can serve as a support and resistance indicator, and each is also frequently used as a short-term price target or key level.

How exactly do moving averages generate trading signals? Moving averages are widely recognized by many traders as being indicators of potentially significant support and resistance price levels. If the price is above a moving average, it can serve as a strong support level—meaning if the stock does decline, the price might have a more difficult time falling below the moving average price level. Alternatively, if the price is below a moving average, it can serve as a strong resistance level—meaning if the stock were to increase, the price might struggle to rise above the moving average. If a stock does fall below a support level, that can be considered a short-term sell signal. Alternatively, if a stock rises above a resistance level, that can be considered a short-term buy signal. 

As the S&P 500 chart above shows, US stocks are currently trading above their 50-day (dark blue line) and 200-day (light blue line) EMA. The 50-day moving average has acted as support for stocks several times this year, including in January, March, and May. A break below this support level would be a bearish short-term signal, as would a break below the 200-day moving average. A break below the longer-term moving average would be considered the “stronger” signal.

The golden cross and the death cross

Two moving averages can also be used in combination to generate what is perceived by many traders as a powerful "crossover" trading signal. The crossover method involves buying or selling when a shorter moving average crosses a longer moving average.

A buy signal is generated when a shorter-term moving average crosses above a longer-term moving average. For example, the "golden cross" occurs when the 50-day exponential moving average crosses above a 200-day moving average. The thinking among chart users is that this price action illustrates a change in sentiment from bearish to bullish. This signal can be generated on an individual stock or on a broad market index, like the S&P 500.

The S&P 500 experienced a golden cross on June 15, 2020, when the 50-day EMA crossed above the 200-day EMA—a bullish indicator for chart users. Since then, the S&P 500 has gained 42%.

Alternatively, a sell signal is generated when a short moving average crosses below a long moving average. This "death cross" would occur if a 50-day moving average crossed below a 200-day moving average. The last death cross occurred in mid-March of 2020. It is worth noting that this crossover signal was not prescient, as most of the S&P 500's COVID-19 losses had already occurred by this time. From the current price level, the next possible moving average crossover signal would be a death cross.

Obviously, a golden cross or a death cross does not suggest that you should mechanically buy or sell. You shouldn’t buy or sell based solely on any single indicator. Remember, indicators like moving averages can generate signals that you may not want to act upon, depending on your strategy. There have been several crossovers by the 50-day and 200-day moving averages over the past several years, and trading these signals may not have aligned with your objectives. Rather, these crossovers are an additional piece of information that may suggest a change in the trend.

A few final tips

Adding moving averages

When setting up your charts, adding moving averages is very easy. In Fidelity's Active Trader Pro®, for example, simply open a chart and select "Indicators" from the main menu. Search for or navigate to moving averages, and select the one you would like added to the chart.

As a general rule, recall that moving averages are typically most useful during uptrends or downtrends, and are considered least useful during sideways, non-trending markets. Also, it is possible for the price to remain above (or below) a moving average for an extended period of time, as the chart above demonstrates. Moving averages can give frequent, and sometimes conflicting, trading signals. It's up to you to determine which signals you consider significant. Moreover, these signals should never be acted upon in isolation.

Each investment opportunity should be evaluated on its own merit, including how it aligns with your investment objectives, risk preferences, financial circumstances, and investing time frame. Moving averages can be used in combination with other technical and fundamental data points to help form your outlook on an individual stock and on the overall stock market.

Next steps to consider

Find new investing ideas and get up-to-the-minute market data.

Learn what you need to know before trading the market.

Learn about more technical indicators and how they can help you trade.

  • Facebook.
  • Twitter.
  • LinkedIn.
  • Print
Please enter a valid e-mail address
Please enter a valid e-mail address
Important legal information about the e-mail you will be sending. By using this service, you agree to input your real e-mail address and only send it to people you know. It is a violation of law in some jurisdictions to falsely identify yourself in an e-mail. All information you provide will be used by Fidelity solely for the purpose of sending the e-mail on your behalf.The subject line of the e-mail you send will be " "

Your e-mail has been sent.

Your e-mail has been sent.

Sign up for Fidelity Viewpoints®

Get a weekly email of our pros' current thinking about financial markets, investing strategies, and personal finance.