Spotting Stock Trends at a Glance with the MACD Indicator

What is a MACD Indicator? This tool helps identify the strength, direction, and duration of a price trend. Learn how to read the MACD and see trading signals.

https://tickertapecdn.tdameritrade.com/assets/images/pages/md/Spotting stock trends with MACD indicator
4 min read
Photo by TD Ameritrade

Key Takeaways

  • Moving average convergence divergence (MACD) is a momentum indicator that may help identify the strength, direction, and duration of a stock trend
  • MACD crossovers can help indicate when a trend is starting or slowing
  • MACD divergences can be used to spot trend reversals

It’s a mouthful. But the moving average convergence divergence (MACD) indicator can help put you on the right side of critical changes in a stock’s price.

Fashion trends change all the time. Adopting a new trend too soon, or too late, can result in some awkward moments. Stock price trends change even faster than the fashion runway. And being caught on the wrong side of a stock trend can be more than awkward—it can be potentially disastrous to a trade.

One way to track a stock trend is with a moving average, which charts the stock’s average price over a particular time frame. It “moves” by adding the current day and dropping the oldest day. The MACD indicator takes the concept a step further by adding a second moving average and some extra trimmings. Let’s take a closer look.

What Is the MACD?

The MACD is considered a momentum indicator that can help spot changes in the strength, direction, and duration of a price trend. Basically, it measures the divergence or convergence between two moving averages. MACD is a popular technical analysis tool that’s usually displayed in a subchart either as a histogram or in line form (see figure 1).

MACD indicator on a price chart
FIGURE 1: CHARTING THE MACD INDICATOR. The MACD is typically plotted as either two lines—fast line (cyan) and signal line (yellow)—or as a histogram. Both chart types can be applied in similar ways, but there are subtle differences. It’s a good idea to use both to help identify potential trade entries and exits. Chart source: the thinkorswim® platform from TD AmeritradeFor illustrative purposes only. Past performance does not guarantee future results.

The MACD line chart is displayed as two lines, in this case cyan and yellow. The cyan line, or the “fast” line, plots the difference between two exponential moving averages (EMAs). Figure 1 uses the 12- and 26-period EMA, but these parameters can be changed. The yellow line, which is sometimes called the slow or signal line, is the EMA of the MACD fast line.

So in short, the MACD calculation involves subtracting the two EMAs (12- and 26-period by default) to plot the fast line, and plotting the EMA of the fast line to create the signal line.   

The MACD histogram plots the difference between the MACD fast and signal lines. An upward slope in the bars typically indicates prices are rising, whereas a downward slope indicates falling prices. 

You may notice the MACD histogram bars move above and below a zero line. Movement around this zero line can help indicate the strength of a stock trend as well as potential trade entry points. 

MACD Formula

Fast line = 12-period EMA – 26-period EMA

Signal line = 9-period EMA of fast line

MACD histogram = fast line – signal line

How to Read the MACD

There are a few different ways to apply the MACD indicator. We’ll focus on two here: crossovers and divergences. 

MACD crossover. As a stock rises, the fast line typically crosses above the signal line. As a stock falls, the fast line crosses below the signal line. Technical analysts observe the location of the crossovers. If the crossover happens close to the zero line, it could indicate a strong trend.

If the MACD histogram bars are above the zero line but start moving down, it indicates that momentum may be slowing. This could signal a pullback or trend reversal.

Let’s look at figure 2 for an example of how to use the MACD crossover and divergence.

Price chart demonstrating MACD crossovers and divergences
FIGURE 2: MACD CROSSOVERS AND DIVERGENCES. There are different ways to use the MACD indicator. One popular way is to look at crossovers of the fast line above or below the signal line. You can also look at divergences between the indicator and stock price. Both chart types may be used to identify trends, trend reversals, and momentum. Chart source: the thinkorswim platform from TD AmeritradeFor illustrative purposes only. Past performance does not guarantee future results.

How to Chart MACD

In the thinkorswim platform from TD Ameritrade:

  1. On the Charts tab, enter the symbol at the top left.
  2. Select the Studies button, then Add study > Lower Studies (Popular), then MACD.
  3. The MACD indicator is displayed in a new subchart. You can choose to plot just the histogram (MACDHistogram) or lines (MACDTwoLines). 

In figure 2, the histogram bars (top subchart) moved above the zero line in January with each bar becoming higher than the preceding bar. Around the same time, the MACD line chart (bottom subchart) shows the fast line crossing above the signal line. These actions in the MACD indicate the likelihood of the beginning of an uptrend with strong momentum.

The two lines continued moving up and went above the zero line, which suggested the uptrend still had legs. It wasn’t until price hit the lower end of its channel that the MACD lines showed the likelihood of a slowdown in the trend. The two lines stayed above the zero line without much movement for a couple of months. But there was no indication of a trend reversal until April, when two things occurred:

  1. The histogram bars crossed below the zero line.
  2. The fast line crossed below the signal line and went below the zero line.

This should have alerted traders to the possibility of a downtrend.  

MACD divergence. Divergence happens when price moves in one direction and the indicator moves in the opposite direction. Divergences could indicate a trend slowdown or reversal. Shifting our attention to the histogram, the first time price reached the top of the price channel, the histogram bars started becoming shorter. That divergence between price and the MACD indicator may have been an early indication of a slowdown in the trend. This should have alerted traders that the trend may continue for some time but without much momentum. 

These are the types of MACD signals you could keep an eye on when analyzing a stock chart and thinking about when to place a trade.

The MACD can be used with other technical analysis indicators to identify potential trading opportunities as well as entry and exit points. It’s an important basic to include in your trading wardrobe. Trends may change. But having go-to tools never goes out of style.

Print

Key Takeaways

  • Moving average convergence divergence (MACD) is a momentum indicator that may help identify the strength, direction, and duration of a stock trend
  • MACD crossovers can help indicate when a trend is starting or slowing
  • MACD divergences can be used to spot trend reversals

Do Not Sell or Share My Personal Information

Content intended for educational/informational purposes only. Not investment advice, or a recommendation of any security, strategy, or account type.

Be sure to understand all risks involved with each strategy, including commission costs, before attempting to place any trade. Clients must consider all relevant risk factors, including their own personal financial situations, before trading.

While this article discusses technical analysis, other approaches, including fundamental analysis, may assert very different views.

TD Ameritrade does not make recommendations or determine the suitability of any security, strategy or course of action, for you through your use of trading tools or technical trading indicators. Any investment decision you make in your self-directed account is solely your responsibility.

adChoicesAdChoices

Market volatility, volume, and system availability may delay account access and trade executions.

Past performance of a security or strategy does not guarantee future results or success.

Options are not suitable for all investors as the special risks inherent to options trading may expose investors to potentially rapid and substantial losses. Options trading subject to TD Ameritrade review and approval. Please read Characteristics and Risks of Standardized Options before investing in options.

Supporting documentation for any claims, comparisons, statistics, or other technical data will be supplied upon request.

This is not an offer or solicitation in any jurisdiction where we are not authorized to do business or where such offer or solicitation would be contrary to the local laws and regulations of that jurisdiction, including, but not limited to persons residing in Australia, Canada, Hong Kong, Japan, Saudi Arabia, Singapore, UK, and the countries of the European Union.

TD Ameritrade, Inc., member FINRA/SIPC, a subsidiary of The Charles Schwab Corporation. © 2024 Charles Schwab & Co. Inc. All rights reserved.

Scroll to Top