What Is MACD: The Indicator Behind Half the Charts You See

MACD is the most-quoted technical indicator on the internet. It’s also one of the simplest. Two moving averages, a difference, and a signal line. Here’s how it actually works, and where it fails.

Tech Talk News Editorial5 min readUpdated Jul 14, 2026
ShareXLinkedInRedditEmail
What Is MACD: The Indicator Behind Half the Charts You See

Key takeaways

  • MACD is the 12-day exponential moving average minus the 26-day exponential moving average, with a 9-day EMA of that difference as the signal line and the gap between the two drawn as the histogram.
  • The 12, 26, and 9 defaults are conventions Gerald Appel published in the 1970s, not optimized parameters, and backtests show 12/26/9 is roughly average rather than exceptional.
  • MACD is a lagging indicator built entirely from past prices, so a crossover confirms a trend that has usually already started rather than predicting one.
  • MACD works in trending markets and whipsaws badly in range-bound ones, generating false buy and sell signals that get eaten by transaction costs.
  • Almost nobody trades MACD alone. It's used as one filter in a stack alongside pattern recognition and volume confirmation, or as a divergence read on longer timeframes.

MACD stands for Moving Average Convergence Divergence. It's a momentum indicator built from two moving averages: the 12-day exponential moving average minus the 26-day exponential moving average. That difference is the MACD line. A 9-day EMA of the MACD line is the signal line. The space between them is the histogram. That's it. The whole indicator.

The way I think about MACD is that it's a derivative of price. Moving averages tell you the trend. The difference between two moving averages tells you whether the trend is accelerating or decelerating. MACD turns price into a velocity number, and the histogram turns that velocity into an acceleration number. That's where the signal comes from.

Plain English

Exponential moving average (EMA) weights recent prices more than older ones, so it reacts to changes faster than a simple moving average. The 12-day and 26-day windows are the standard defaults, set by Gerald Appel in the late 1970s. The histogram came later, added by Thomas Aspray in 1986 to make the crossover easier to see coming. None of those numbers are magic. Different windows give different signals.

What the Three Lines Mean

On any MACD chart, you're looking at three components:

  • The MACD line: 12-day EMA minus 26-day EMA. When it's positive, short-term momentum is above long-term. When it's negative, the opposite.
  • The signal line: 9-day EMA of the MACD line. A smoothed version of the MACD line, used to filter noise.
  • The histogram: MACD line minus signal line, drawn as bars. Positive bars when MACD is above signal, negative when below.

The whole indicator oscillates around zero. Above zero, the stock is in an uptrend by short-term momentum. Below zero, downtrend. The crossover between the MACD line and the signal line is what most traders watch.

The Three Common Signals

Traders typically read three patterns:

  • Signal line crossover. When MACD crosses above signal, that's a buy signal. When it crosses below, sell. The most-watched pattern in technical analysis after the 50/200-day moving average crossover.
  • Zero-line crossover. When MACD itself crosses above zero, the trend is turning up. Below zero, turning down. Slower than the signal line crossover, fewer false alarms.
  • Divergence. When price makes a new high but MACD doesn't, that's “bearish divergence,” suggesting momentum is weakening even as price continues. Reverse for bullish divergence at lows. The most cited “leading” signal MACD generates.

Where MACD Actually Works

MACD works best in trending markets. When a stock is moving directionally over weeks or months, the signal line crossovers tend to give you decent entries and exits. The classic test case is a stock breaking out of a long base: MACD will cross above signal and then above zero in sequence, and that sequence often coincides with the start of the move.

It does not work well in choppy or range-bound markets. When a stock is oscillating in a tight range, MACD whipsaws back and forth across the signal line, generating dozens of false buy and sell signals. Anyone who blindly trades MACD crossovers in a sideways market will get chopped to pieces by transaction costs.

The Honest Limitations

MACD is a lagging indicator. Both the MACD line and the signal line are derived from past prices. By the time MACD crosses up, the move has often already happened. The crossover is a confirmation of trend, not a prediction of it.

It also has no concept of price level. A MACD crossover at the top of a parabolic bubble looks identical to a MACD crossover at the bottom of a multi-year base. Without context (volume, support, fundamental earnings), the signal alone tells you nothing about whether the move ahead is 5% or 50%.

And the parameters are set by convention, not optimization. 12, 26, and 9 are the defaults Gerald Appel published. Backtest different windows on different stocks and you'll find that 12/26/9 is roughly average, not exceptional. Most of the “magic” of MACD is the popularity, not the math.

How Most Traders Actually Use It

Almost nobody uses MACD as a sole entry/exit signal. Most use it as one filter in a stack. Pattern recognition (a breakout from a base) plus MACD crossover plus volume confirmation is the typical setup. The MACD on its own would generate too many false signals. Combined with two or three other filters, the false-signal rate drops to something tradable.

The other common use is as a divergence indicator on multi-week or monthly timeframes. Looking for cases where price keeps making new highs but MACD doesn't, as a heads-up that a trend may be running on fumes. This use of MACD is more interpretive than mechanical, and it's where the practitioners I respect actually find value in the indicator.

Takeaway

MACD is a difference of two moving averages, and that's the entire trick. It's a momentum indicator that lags price, works in trending markets, fails in choppy ones, and is most useful as one input in a multi-filter setup rather than a standalone signal. The popularity comes from the simplicity, which is exactly why it shouldn't be confused with edge.

The Take

Learn MACD because everyone else is looking at it. That's a real reason. When most of the technical community sees the same crossover, the reaction to it can move price even if the indicator itself has no predictive power. That's reflexivity, and it's a meaningful effect on actively-traded stocks. For long-term investors, MACD is mostly noise. For short-term traders, it's a filter. For anyone using it as a magical timing tool, it's a way to lose money slowly.

Frequently asked questions

What does MACD actually measure?
MACD measures momentum by subtracting the 26-day exponential moving average from the 12-day exponential moving average. Moving averages tell you the trend, and the difference between two of them tells you whether that trend is speeding up or slowing down. The histogram, which is the MACD line minus the signal line, turns that velocity into an acceleration reading.
Is a MACD crossover a reliable buy signal?
Not on its own. A crossover of the MACD line above the signal line is a confirmation that momentum has already turned, not a prediction that it will. In a trending market the crossover tends to give decent entries. In a choppy market it fires constantly and both signals are noise. Most traders combine it with volume and price structure.
What is MACD divergence?
Divergence is when price makes a new high but MACD doesn't, which is called bearish divergence and suggests momentum is weakening even as price climbs. The reverse at lows is bullish divergence. It's the closest thing MACD has to a leading signal, and it works best read interpretively on multi-week or monthly timeframes.
What do the numbers 12, 26, and 9 mean in MACD?
They're the lookback windows in days: a 12-day EMA, a 26-day EMA, and a 9-day EMA of the resulting MACD line. Gerald Appel set these defaults in the 1970s. They aren't magic. Different windows produce different signals, and testing shows the standard settings perform about average.
Should long-term investors use MACD?
Mostly no. For a long-term investor, MACD is noise. It has no concept of price level, so a crossover at the top of a bubble looks identical to one at the bottom of a multi-year base. The one honest reason to learn it is reflexivity: enough traders watch the same crossover that the reaction itself can move actively-traded stocks.

Written by

Tech Talk News Editorial

Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.

More about the author
ShareXLinkedInRedditEmail