Moving Average Convergence Divergence (MACD)
Beginnerمؤشر الماكد
Also known as: MACD
Last updated
Definition reviewed before publishing
Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.
Last updated on 25 November 2026
The MACD (Moving Average Convergence Divergence) is a momentum and trend indicator that measures the relationship between two exponential moving averages of an asset's price. It was developed by Gerald Appel in the 1970s. It has three elements: the MACD line, the signal line and the histogram showing the difference between them. It is one of the best-known technical indicators.
Quick summary
• The difference between 12- and 26-period exponential averages. • Made up of the MACD line, signal line and histogram. • Measures momentum and confirms the trend.
How it works
The MACD line is calculated by subtracting the 26-period exponential moving average from the 12-period average, the most common default settings. When the short average is above the long one, the MACD is positive, indicating upward momentum. The signal line is then calculated as a 9-period exponential average of the MACD line itself. Among the best-known signals: the MACD crossing above the signal line, seen as bullish, and crossing below it, seen as bearish. Crossings of the zero line are also watched; crossing upward means the short average has moved above the long one. The histogram shows the difference between the MACD and the signal line as bars, and shrinking bars indicate slowing momentum before a crossover. Divergence between the MACD and price is used to warn of a weakening trend. Because it is built on moving averages, it lags somewhat and sometimes gives frequent false signals in sideways markets, so it works best in trending markets.
Example
A stock's 12-day exponential average is 52 riyals and its 26-day average 50 riyals, so the MACD = 52 - 50 = 2. The signal line is 1.5, so the histogram = 2 - 1.5 = 0.5. Because the MACD is above the signal line and above zero, momentum is currently upward.
Where you will see it
Below the chart in trading platforms, in technical analysis reports referring to bullish or bearish crossovers, and in trend-following strategies.
Why it matters
It is used to measure momentum, identify its changes and confirm the trend, combining trend-following and momentum measurement in one tool.
How it is calculated
MACD line = 12-period EMA - 26-period EMA. Signal line = 9-period EMA of the MACD line. Histogram = MACD line - signal line.
How it differs from similar terms
• RSI: an oscillator bounded between zero and 100, while the MACD is unbounded. • Signal line: a component of the MACD, not a separate indicator. • Moving average crossover: the core idea of the MACD in simpler form.
Common mistakes
Relying on every crossover in a sideways market, or comparing absolute MACD values between assets with different prices. Use it in trending markets with additional confirmation.