What is MACD
Two moving averages compared, to show when a trend is gaining or losing speed.
Picture: Two runners: a fast one, the 12-day average, ahead of a slow one, the 26-day average. The gap between them is MACD, +10. Small bars growing taller show the move speeding up.
What it means
MACD stands for moving average convergence divergence. It takes a fast moving average and a slow one and measures the gap between them. When the fast one pulls ahead of the slow one, the price has been speeding up; when the gap shrinks, the move is slowing.
How it is worked out
MACD has three parts:
MACD line = 12-day EMA − 26-day EMA
Signal line = 9-day EMA of the MACD line
Histogram = MACD line − Signal line
EMA is an exponential moving average, which gives more weight to recent days. See the moving average guide.
An example
Example: Company A today
- 12-day EMA: ₹520. 26-day EMA: ₹510.
- MACD line = 520 − 510 = +10. The recent price is above the longer average: an upward move.
- Signal line: +8.
- Histogram = 10 − 8 = +2. The MACD line is above its signal line, and the bars are positive.
How it is commonly read
- MACD line crossing above the signal line is called a bullish crossover; crossing below, a bearish crossover.
- MACD above zero means the 12-day average is above the 26-day average, a sign of an upward trend; below zero, a downward one.
- Histogram bars growing taller mean the move is gaining speed; bars shrinking mean it is slowing.
- Divergence: the price makes a new high but MACD does not. Like RSI divergence, this hints the rise is tiring.
Keep in mind
- MACD is built from moving averages, so it reacts late.
- When the price moves sideways, the lines cross back and forth and give many false signals.
- The 12, 26 and 9 settings are the standard ones; Stockaris uses them.
See it on Stockaris
For education only. Not investment advice. Worked examples use made-up companies and round numbers; past market events are given with rounded figures.