Learn · Technical analysis
MACD indicator explained: settings, crossovers and divergence
MACD turns two moving averages into a single momentum gauge. It shows both the direction of a trend and whether it is gaining or losing strength.
The three parts of MACD
Moving Average Convergence Divergence was developed by Gerald Appel in the late 1970s. With the standard 12, 26, 9 settings:
| Part | Calculation | What it shows |
|---|---|---|
| MACD line | 12-period EMA − 26-period EMA | Short-term trend versus longer-term trend |
| Signal line | 9-period EMA of the MACD line | A smoothed version, used for crossovers |
| Histogram | MACD line − signal line | Whether momentum is building or fading |
Example: if the 12-day EMA is ₹1,052 and the 26-day EMA is ₹1,040, the MACD line is +12. With a signal line at +9, the histogram is +3. (See EMA vs SMA for how the averages are built.)
How traders read it
- Signal-line crossover: MACD crossing above its signal line is read as bullish momentum; crossing below as bearish.
- Zero-line crossover: MACD above zero means the 12-period EMA is above the 26-period EMA — the short-term trend is up.
- Histogram: bars shrinking towards zero show momentum fading before a crossover happens.
- Divergence: price making new highs while MACD makes lower highs warns that the trend is weakening.
Where MACD falls short
MACD is built from moving averages, so it lags: by the time it crosses, part of the move has happened. In sideways markets it whipsaws, crossing back and forth. Because it is not bounded like RSI, MACD values cannot be compared across stocks with very different prices. It works best as a trend-confirmation tool alongside price levels.
Common questions
What are the best MACD settings?
The standard 12, 26, 9 settings are used by most traders and charting platforms. Changing them is possible, but test any alternative before relying on it.
What does a MACD crossover mean?
When the MACD line crosses above the signal line, short-term momentum is turning up relative to the recent average; crossing below suggests it is turning down. It is a lagging confirmation, not a prediction.
Is MACD better than RSI?
They measure different things. MACD is a trend-and-momentum tool built from moving averages; RSI is a bounded momentum oscillator. Many traders use one of each rather than choosing.
Can MACD be used on intraday charts?
Yes — it can be applied to any timeframe. On very short timeframes it gives more false crossovers, so many intraday traders confirm with price levels or volume.
See it live
Free on Terminal365
Trade Finder
Scans NSE and BSE stocks for trend, momentum, breakout and volume setups, with the history of how each setup has played out.
Sources
By Team Terminal365 · Updated 2 November 2026 · Educational information, not investment advice — read the disclaimer. All explainers