Blog / Technical
MACD Strategy: Crossovers, Histogram and Honest Limits
How the MACD is built, how to read crossovers and the histogram, and why it works better as a trend filter than a timing tool.
How MACD is built
MACD is the difference between a fast (12) and a slow (26) exponential moving average. A signal line (a 9-period average of MACD) is drawn on top, and the histogram shows the gap between the two.
Reading it
MACD above zero means the fast average is above the slow one, so momentum is up. A cross of MACD above its signal line is the classic buy signal; below is the classic sell. The histogram shrinking toward zero shows momentum slowing before the lines cross.
Where it works and fails
In clean trends crossovers keep you on the right side. In sideways markets MACD whipsaws, producing a string of small losses. That is why traders add a trend filter such as a 200-period average or only take signals in the direction of the higher timeframe trend.
Test before you trust
A signal that looks good on a few chart examples may not hold up. Run the MACD cross on several years of data in the backtester with realistic costs, and look at drawdown as well as total return.
A simple rule set to test
Long when MACD crosses above its signal line while price is above the 200-period average. Exit when MACD crosses back below. Stop 2 ATR under the entry.
Run it over several years on a few markets in the backtester, with costs on. Compare it with buy and hold, and look at the maximum drawdown. If it only works on one market or one year, it is probably luck.
What to look at in the results
Judge a MACD test by the maximum drawdown and the number of trades as well as the total return. A system that makes 40% with a 45% drawdown is much harder to trade than one that makes 20% with a 12% drawdown. Also check how often it whipsaws in sideways periods, since that is where discipline breaks down.
Key takeaways
- MACD shows momentum from two averages.
- Crossovers lag; the histogram leads slightly.
- It whipsaws in ranges.
- Backtest with costs.
Related
Educational content, not financial advice.