The MACD indicator (Moving Average Convergence Divergence) shows the relationship between two exponential moving averages of price. When the faster average pulls away from the slower one, momentum is building in that direction; when the two converge, the move is losing steam. Gerald Appel developed it in the late 1970s, and it remains one of the most popular indicators because it mixes trend and momentum in one pane.
It is drawn as three elements: the MACD line, a signal line and a histogram. Each tells you something slightly different, and each produces plenty of false signals when a market moves sideways. This guide explains how to read all three, using real S&P 500 numbers, and what history says about the classic crossover signal.
How is the MACD calculated?
MACD is built from exponential moving averages (EMAs), which give more weight to recent closes than a simple average does. If the distinction is new to you, read Moving Averages: SMA vs. EMA Explained first.
EMAtoday = close × k + EMAyesterday × (1 − k), where k = 2 ÷ (N + 1)
MACD line = EMA(12) − EMA(26)
Signal line = EMA(9) of the MACD line
Histogram = MACD line − signal line
For the 12-day EMA, k is 2 ÷ 13, about 0.154; for the 26-day EMA it is 2 ÷ 27, about 0.074. VantageLedger starts each EMA from the simple average of its first N closes and then applies the formula day by day, which is the standard approach.
The MACD line is measured in the asset's own units: points for an index, dollars for a stock. A MACD of −85 on the S&P 500 and one of −3.7 on Microsoft cannot be compared directly, which is why the percentage version, PPO, exists.
A worked MACD example: the S&P 500 in April 2025
On April 24, 2025, the S&P 500 closed at 5,484.77, recovering from the tariff sell-off earlier that month. VantageLedger's chart gives these values for that close:
| Component (April 24, 2025) | Value | How it is obtained |
| 12-day EMA | 5,352.23 | Exponential average of closes |
| 26-day EMA | 5,437.83 | Exponential average of closes |
| MACD line | −85.60 | 5,352.23 − 5,437.83 |
| Signal line | −113.31 | 9-day EMA of the MACD line |
| Histogram | +27.71 | −85.60 − (−113.31) |
| PPO | −1.57% | −85.60 ÷ 5,437.83 × 100 |
Reading it: the MACD line was still negative, so the 12-day average sat below the 26-day average and the medium-term picture was still weak. But the MACD line was above its signal line and the histogram was positive and growing, so short-term momentum had turned up.
The days around it show how the components move. The MACD line bottomed at −172.8 on April 8, the same day as the index's closing low of 4,982.77. The histogram then shrank every day, from −64.5 to −2.2 by April 14, before the MACD crossed above its signal line on April 15. It dipped back below on April 21, crossed up again on April 22, and the MACD line finally crossed above zero on May 2.
How to read MACD signals
Signal-line crossovers
When the MACD line crosses above the signal line, it is a bullish crossover: the gap between the two EMAs has risen above its own 9-day average. A cross below is bearish. These are the most common MACD signals and the most prone to noise, as the April 2025 back-and-forth shows.
Zero-line crossovers
When the MACD line crosses zero, the 12-day EMA has crossed the 26-day EMA. This is a slower, trend-type signal. Many traders only take bullish signal-line crosses while the MACD is above zero, or treat a cross below zero as a sign the trend has turned.
The histogram
Thomas Aspray added the histogram in 1986 to make crossovers easier to anticipate. Its bars show the distance between MACD and signal. Shrinking bars mean momentum is fading even if the trend has not changed, so the histogram often turns before a crossover happens, as it did through mid-April 2025.
Divergences
A bearish divergence occurs when price makes a higher high but the MACD makes a lower high; a bullish divergence when price makes a lower low but the MACD makes a higher low. As with the RSI, divergences can persist for months in a strong trend, so they work best as a warning combined with a price signal, such as a break of a recent low.
Do MACD crossovers work? 36 years of S&P 500 data
We tested the textbook signal on VantageLedger's daily price history of the S&P 500 price index (dividends excluded).
Method. MACD(12, 26, 9) computed with the same calculator our charts use, warmed up from 1985. Sample: every session from January 2, 1990 to December 31, 2025 (9,067 sessions). A bullish cross is a close where the MACD line is above the signal line after being at or below it the previous close; a bearish cross is the reverse. For each cross we measured the index's price change over the next 20 and 60 trading days and compared it with all days.
| S&P 500, 1990–2025 | Cases | Median, 20 days | Higher after 20 days | Median, 60 days |
| All sessions | 9,067 | +1.2% | 64% | +3.0% |
| Bullish cross, any | 385 | +1.4% | 63% | +2.6% |
| Bullish cross below zero | 165 | +2.2% | 69% | +2.6% |
| Bullish cross above zero | 220 | +0.9% | 58% | +2.6% |
| Bearish cross | 385 | +1.1% | 59% | +3.1% |
The results are sobering. Signal-line crosses came about 11 times a year in each direction, and 208 of the 385 bullish crosses (54%) were undone by a bearish cross within ten sessions. Returns after a bullish cross were indistinguishable from returns after any other day, and the index rose more often than not even after bearish crosses, as it did on most days.
One detail matches the textbook: bullish crosses that happened while the MACD was below zero, usually after a decline, were followed by better 20-day returns than those that happened above zero. The difference fades by 60 days.
We also checked a simple rule: hold the index only while the MACD is above its signal line, switching at the close of the day the cross appears, with no trading costs and no interest on cash. From 1990 to 2025 it multiplied money by about 2.9 while buy-and-hold multiplied it by about 19, because it sat out roughly half the days and missed many of the strongest rebounds. Acting one session later, at the next close, cut the result to about 1.9.
Limits of this test. It covers one index in a long bull market, ignores dividends and costs, and the 20- and 60-day windows overlap. It says nothing about a single stock or about MACD used with other filters, and it implies no forecasting power.
Why MACD gives false signals in a range
MACD is built from moving averages, so it lags price and works best when a market trends. In a sideways range the two EMAs wind around each other, the MACD hovers near zero and crosses its signal line every few days. Each cross looks like a signal; most are noise.
Practical ways traders cut the noise:
- Check the trend first with a longer filter, such as price above its 200-day average or a 50/200-day golden cross.
- Ignore crosses that happen very close to zero, where the two EMAs are almost equal.
- Use weekly charts for investing decisions; weekly MACD crosses are rarer and less noisy.
- Combine MACD with an oscillator such as RSI, so a bullish cross from oversold carries more weight than one in the middle of nowhere.
MACD settings: is 12, 26, 9 the best?
12, 26 and 9 are Appel's original parameters and remain the standard almost everywhere. VantageLedger draws the standard 12, 26, 9 so its values match what most traders and articles refer to.
Faster settings react sooner and produce more crossovers, and with them more false signals; slower settings lag more but whipsaw less. Given how noisy the default already is on daily data, the bigger improvement usually comes from filtering signals by trend or using a longer chart timeframe rather than from tweaking the numbers.
MACD vs PPO: the percentage version
The Percentage Price Oscillator (PPO) uses the same EMAs but divides the gap by the slow EMA:
PPO = (EMA(12) − EMA(26)) ÷ EMA(26) × 100
Its signal line and histogram are built the same way. The advantage is comparability. On April 24, 2025, the S&P 500's MACD was −85.6 points and Microsoft's was −3.66 dollars: impossible to compare directly. Their PPOs were −1.57% and −0.97%, showing that the index was further below its 26-day trend than Microsoft was. Microsoft's figures come from closes adjusted for splits and dividends, so its MACD in dollars can differ slightly from a chart built on unadjusted prices; the PPO, a ratio, is barely affected.
PPO also fixes a long-history problem. When the S&P 500 traded near 1,000, a MACD of 20 points was large; near 6,000 it is small. PPO's percentages stay comparable across decades, which matters if you compare today's readings with past ones, for example on Apple, whose price has multiplied many times over. VantageLedger's charts include PPO alongside MACD.
How to use MACD on VantageLedger
On any instrument page, add MACD from the indicator picker: it opens in its own pane with the MACD line, signal line and histogram around a zero line. Add PPO to compare momentum across assets, or the RSI to see both views at once.
To scan the whole database, the screener can look for "MACD histogram crosses above 0", which is the same event as the MACD line crossing above its signal line, or for the MACD line crossing above 0 for the slower trend signal. Indicator alerts can email you when that happens on an asset you follow, checked once a day on end-of-day data.
Scan for MACD crossovers
For more alert ideas, see Stock Alerts on Technical Indicators, or set one up directly on the indicator alerts page.
FAQ
What does it mean when MACD crosses above the signal line?
The gap between the 12-day and 26-day EMAs has risen above its own 9-day average, so short-term momentum is improving. On the S&P 500, more than half of those crosses reversed within ten sessions, so most traders wait for confirmation.
Is MACD a leading or lagging indicator?
Lagging, because it is made of moving averages of past closes. The histogram turns earlier than the crossover, and divergences can hint at a turn, but neither predicts one.
Which is better, MACD or RSI?
They answer different questions. MACD follows trend and momentum and works best in trending markets; RSI measures how stretched recent moves are on a fixed 0–100 scale and is more useful in ranges. Many traders use them together.
Why is my MACD value different from another website's?
MACD depends on how far back the EMAs start and how they are seeded, and on whether closes are adjusted for dividends. Small differences are normal; the crossovers usually land on the same days.
This article is for education only and is not investment advice. Past performance does not guarantee future results. Live figures are computed from daily closing prices and can lag the market by a day or more.