MACD Indicator: Meaning, Formula, Example and How to Read It
MACD stands for Moving Average Convergence Divergence. It measures the gap between two moving averages of price: a fast 12-day EMA and a slower 26-day EMA. A second line, the signal line, smooths the MACD line, and bars called the histogram show the distance between the two lines. It is a way to see momentum turning.
Try /macd in StockChat
Instant commands are free, on Android and the web.
How MACD is calculated
MACD line = 12-day EMA − 26-day EMA. Signal line = a 9-day EMA of the MACD line. Histogram = MACD line − signal line. When the short average is above the long one, the MACD line is above zero; when it is below, MACD is negative.
MACD = EMA(12) − EMA(26); Signal = EMA(9) of MACDCrossovers
When the MACD line crosses above the signal line, momentum is turning up; when it crosses below, momentum is turning down. The histogram makes this easy to see: bars growing above zero show momentum building, bars shrinking show it fading.
The zero line
Above zero means the 12-day average is above the 26-day average, which describes a rising short-term trend. Below zero describes the opposite. Some people watch zero-line crosses as a slower confirmation than signal-line crosses.
Common mistakes
Crossovers come after the move has started, because both lines are built from averages. In sideways markets they flip often and produce many false starts. Using MACD alone, without the trend and price levels, is a common mistake. It describes the past, not the future.
Example
Say an example stock's 12-day EMA is ₹105 and its 26-day EMA is ₹102: the MACD is +3, so the short average is above the long one. As the stock turns up, the MACD line crosses above the signal line, showing momentum turning up, and the bars grow. Later the rise slows and the MACD line crosses below the signal line: momentum is turning down. It describes the past, not the future; it is a guide, not a forecast.
Frequently asked questions
What is MACD?
MACD (Moving Average Convergence Divergence) is the 12-day EMA minus the 26-day EMA, with a 9-day signal line. It shows momentum turning up or down.
How is MACD calculated?
MACD line = 12-day EMA − 26-day EMA; signal line = 9-day EMA of the MACD line; histogram = MACD − signal. With a 12-day EMA of ₹105 and a 26-day EMA of ₹102, MACD = +3.
Is MACD a buy or sell signal?
No. StockChat explains what MACD means in past data; it is education, not a recommendation. StockChat is not registered with SEBI as an investment adviser or research analyst.
How can I check MACD on a stock?
Type /macd in the chat of any stock in StockChat. It reads the past data and shows MACD for it, as education, not a recommendation.