MACD
Moving average convergence divergence: the gap between two moving averages, with a signal line and histogram that show shifts in momentum.
What MACD is.
A line, a signal line and a histogram, drawn in a window below price.
MACD stands for moving average convergence divergence. It takes a fast moving average of price and subtracts a slow one. The result is the MACD line.
When the fast average pulls away from the slow one, the averages diverge and momentum is building. When they move back together, they converge and momentum is fading.
A second line, the signal line, is an average of the MACD line itself. The histogram shows the gap between the two lines as bars.
How it is calculated.
Three lines from two averages. Your platform works them out on every new bar.
Work out two exponential moving averages.
One covers the last 12 closes and one the last 26. An exponential average gives the most weight to the latest prices.
Subtract the slow from the fast.
The 12-period average minus the 26-period average is the MACD line. It is positive when the fast average is above the slow one.
Average the MACD line.
A 9-period average of the MACD line gives the signal line. It is smoother than the MACD line and turns later.
Plot the difference as bars.
The MACD line minus the signal line is the histogram. Taller bars mean the two lines are moving further apart.
Signal line = 9-period average of the MACD line
Histogram = MACD line − signal line
How to read it.
Four things traders watch. Each describes momentum that has already happened.
Signal-line crossovers.
When the MACD line crosses above the signal line, upward momentum is picking up. A cross below shows downward momentum gaining. Crosses are frequent, so many are noise.
The zero line.
Above zero, the 12-period average is above the 26-period average. Below zero, it is beneath it. A zero cross matches the two averages crossing on the price chart.
The histogram.
Shrinking bars show the MACD and signal lines drawing together. That often comes before a crossover, so some traders watch the bars for an earlier read.
Divergence.
Price makes a new high while MACD makes a lower high, or the reverse at lows. It suggests momentum is fading, though price can keep going.
Common mistakes.
Where traders new to MACD most often go wrong.
Acting on every crossover. In a sideways market the lines cross back and forth, and most of those crosses lead nowhere.
Forgetting that MACD lags. It is built from moving averages, so it confirms a turn after price has already moved.
Comparing MACD readings across markets. The values are in price units, so a reading on one instrument tells you little about another.
Reading MT5’s bars as the classic histogram. In MT5 the bars are the MACD line itself, not the MACD line minus the signal line.
Using MACD alone. Price levels or an indicator built a different way give fuller context.
Using it on MetaTrader 5.
MACD is one of MT5’s built-in indicators, on desktop, web and mobile. It is drawn a little differently there.
Open a chart.
In MetaTrader 5, open the instrument and timeframe you want to study.
Add the indicator.
Go to Insert, then Indicators, then Oscillators, and choose MACD.
Check the settings.
The defaults are Fast EMA 12, Slow EMA 26 and MACD SMA 9, applied to the close. MACD SMA is the period of the signal line.
Know what you are looking at.
MT5 draws the MACD line as bars and the signal line as a line. Its signal line is a simple average, not an exponential one.
| The chart on this page | MT5’s built-in MACD | |
|---|---|---|
| MACD line | A navy line | Bars |
| Signal line | An orange line, an exponential average | A line, a simple average |
| MACD minus signal | Histogram bars | Not drawn |
Both versions tell the same story. In MT5, a crossover is where the signal line passes through the tops of the bars.
Questions, answered.
What traders ask most about MACD.
01Who created MACD?
02Why does MACD look different in MT5?
03What do the 12, 26 and 9 mean?
04Is MACD a leading or a lagging indicator?
05Can I practise with it first?
Practise it on a demo.
Add MACD to a chart on a free MT5 demo and watch its crossovers against price before you trade with real money.
Trading CFDs on a live account puts your capital at risk and you can lose money. A demo does not.




