MACD, short for moving average convergence divergence, is the gap between a stock's 12-day and 26-day exponential moving averages. Traders buy when that gap crosses above its own 9-day average and sell when it crosses below. We checked 18,500 of those crosses in the 35 free stocks on HitBull. Twenty days after a buy cross, the price was higher 56% of the time. Twenty days after any day at all, it was higher 56% of the time.
The line, the signal and the histogram
An exponential moving average is an average of past closes that gives the newest days the most weight, so it turns sooner than a plain average. The MACD line is the 12-day one minus the 26-day one. When prices have been rising lately, the short average sits above the long one and the MACD line is above zero. When they have been falling, it is below zero.
The signal line is a 9-day exponential average of the MACD line itself, a slower copy of it. The histogram is the gap between the two, drawn as bars: above zero when the MACD line is over its signal, below zero when it is under. A shrinking histogram means the two lines are coming together. Because MACD is measured in dollars, an expensive stock has bigger readings than a cheap one, so you compare a stock's MACD only with its own past.
How traders read it
There are two common signals. The first is the MACD line crossing its signal line: upward is read as a buy, downward as a sell. These come often: on the free stocks, about once every 12 trading days. The second is the MACD line crossing zero, which means the 12-day average has moved above or below the 26-day one. Zero crosses are rarer and slower. Some traders also watch the histogram shrink and take that as an early warning that a cross is coming.
A buy signal near the bottom
SPY, March 12, 2009
SPY, the fund that tracks the S&P 500, made its lowest close of the 2008 to 2009 fall on March 9, 2009. The MACD line crossed above its signal line 3 trading days later. SPY never closed below the signal day's price in the next 60 days. Twenty days later it was +14%, sixty days later +26%, and a year later +56%.
This is MACD at its best: a sharp turn after a long fall, which the 12-day average catches quickly. The lines crossed back down on April 22, 2009, with SPY +13% from the buy, and a trader who sold there missed the rest of the year.
A sell signal before a crash
QQQ, February 21, 2020
QQQ, the Nasdaq-100 fund, gave a MACD sell signal on February 21, 2020. Five days later it was -10%, and by March 16, 2020 it had fallen 26%. The buy signal came on March 26, 2020, 24 trading days after the sell, with QQQ still 16% below the price of the sell. A year after the sell QQQ was +45%.
The sell was well timed. The buy came after the low, as MACD buys usually do, because the averages need several up days before they turn.
A whipsaw in a sideways market
SPY, August 17, 2015
In 2015 SPY moved sideways. Over the stretch on this chart it finished +2% from where it began, and the MACD line crossed its signal line 21 times. On August 17, 2015 it gave a buy. It crossed back down 2 trading days later, and by August 25, 2015 SPY had fallen 11% from the buy.
This is called a whipsaw: a signal one way, then the other, with a loss in between. When prices drift sideways the two lines stay close to zero and to each other, and small moves push them across. A trader acting on every cross buys after small rises and sells after small falls, again and again.
Above zero, then down by half
META, August 10, 2022
Meta Platforms fell for most of 2022. In August a summer bounce lifted its MACD line above zero on August 10, 2022, the slower of the two buy signals. The MACD line fell back under its signal line 8 trading days later. By November 3, 2022 META had fallen 50% from the zero cross.
A zero cross only says the 12-day average has caught up with the 26-day one. After a long fall, a few weeks of gains are enough. A year after this one META was +71%, but anyone who bought the signal first had to sit through a halving.
What 26,256 crosses say
Here is every MACD cross in the 35 free stocks on HitBull, set against every trading day in the same stocks. “Higher” means the close was above the close on the day of the cross.
| Count | Higher 5 days later | Higher 20 days later | Higher 60 days later | Higher a year later | Median change after a year | |
|---|---|---|---|---|---|---|
| Crosses above signal | 9,251 | 52% | 56% | 58% | 63% | +9% |
| Crosses below signal | 9,249 | 54% | 55% | 59% | 64% | +9% |
| Crosses above zero | 3,877 | 53% | 55% | 58% | 64% | +10% |
| Crosses below zero | 3,879 | 54% | 55% | 58% | 63% | +9% |
| Any trading day | 229,947 | 53% | 56% | 59% | 64% | +10% |
On these stocks no MACD cross did better than a random day. Buy crosses and sell crosses were followed by almost the same results, and a sell cross was followed by a higher price a year later 64% of the time. Each cross tells you what the averages have done. It doesn't tell you what the price will do next.
These are 35 well-known stocks and funds still trading today, most of which rose over the years, so any buy signal looks good and any sell signal looks bad on them. Prices are adjusted for splits and dividends. Past prices don't promise future ones, and this is a simulator, not investment advice.
What MACD is good for
MACD is a compact picture of momentum: whether the recent trend is speeding up or slowing down. Read that way it helps, as long as you remember it is built only from past closes and always runs a little behind. It works best on clear trends and worst in a range, which is when it crosses most often.
It pairs naturally with the golden cross, which uses slower averages, and with moving averages in general. For a gauge of how stretched a move is, see RSI or the stochastic oscillator.
Practise reading it
The replay buttons above open HitBull a month before each cross, with MACD under the chart. Play on Daily candles and decide what you would do when the lines meet, before you press GO and see what came next. The 2015 replay is the useful one: count how many crosses you would have traded and what they cost.
Then pick a stock you don't know and try again. Practice trading on charts you haven't seen is the only way to judge a signal without hindsight.