Indicators / FOREX ACADEMY

MACD indicator: lines, histogram and momentum

Understand the 12/26 EMA difference, 9-period signal line and histogram.

Illustrative chart: MACD indicator: lines, histogram and momentum (synthetic data)
FX Analyzer educational diagram using synthetic prices, not live data or a trade recommendation.

Formula

The conventional MACD line is EMA(12) minus EMA(26) of closing prices. The signal line is a 9-period EMA of MACD. The histogram equals MACD minus the signal line. All periods are bars on the selected timeframe.

Interpretation

A positive MACD means the faster EMA exceeds the slower EMA. A positive histogram means MACD exceeds its signal line. A shrinking positive histogram suggests that difference is narrowing, not necessarily that price is falling.

Worked example

If EMA(12) is 105 and EMA(26) is 103, MACD is 2. If its signal line is 1.5, the histogram is 0.5. The chart uses synthetic closes and standard exponential smoothing.

Testing and limitations

Crossovers lag prices and can occur repeatedly in a range. Test predefined crossover and trend-context rules on unseen data, including costs. Do not equate any crossover with a guaranteed outcome.