What is MACD?
Short answer: MACD (Moving Average Convergence Divergence) is a momentum indicator. The MACD line is the difference between two exponential moving averages, EMA 12 and EMA 26. Smoothing it with EMA 9 gives the signal line, and the histogram shows the gap between the two. MACD crossing its signal line from below says upward momentum is growing; shrinking histogram bars often warn that momentum is fading before price turns. This is education, not investment advice.
Free course on this topicTechnical Analysis: free courseStart the course →
Where MACD comes from: EMA 12, 26 and 9
MACD was created by Gerald Appel in the late 1970s. It is built from moving averages:
- MACD line = EMA 12 − EMA 26.
- Signal line = EMA 9 of the MACD line.
- Histogram = the distance between the MACD line and the signal line.
12, 26 and 9 are TradingView's defaults, and almost all traders keep them.
An EMA is an average price over N candles where recent candles weigh more, so it turns faster than a simple average (SMA). Every average still lags: it shows what already happened, not what's next.
More in the lessons: MACD and Bollinger Bands, Moving averages
How to read MACD
- Crossover from below. The MACD line crosses above the signal line: upward momentum is growing.
- Above zero. The fast average is above the slow one.
- Shrinking bars. The histogram gets smaller: momentum often fades before price turns. This is one of the most useful things MACD shows.
More in the lesson: MACD and Bollinger Bands
When MACD lies: ranges and lag
In a range MACD saws back and forth and gives false signals, so look at the trend first.
Like every indicator, MACD is calculated from candles that already happened, so it confirms the picture rather than predicting it. The same is true of moving-average crosses such as the golden cross: by the time it happens, price has already covered part of the move, so it works as a direction filter, not an entry point.
More in the lessons: MACD and Bollinger Bands, Moving averages, Indicators: EMA and RSI
MACD vs RSI
Both are momentum tools, and they answer different questions. RSI squeezes recent gains and losses into a 0–100 scale and flags overbought (above 70) and oversold (below 30). MACD compares a fast and a slow average and shows whether momentum is growing or fading. Neither is a buy or sell button.
More in the lessons: Indicators: EMA and RSI, MACD and Bollinger Bands
FAQ
What are the best MACD settings?
The classic settings are 12, 26 and 9, and they are TradingView's defaults. The course uses them, and almost all traders keep them.
What does a MACD crossover mean?
When the MACD line crosses its signal line from below, upward momentum is growing. It's a hint, not an order: in a range MACD gives many false crossovers, so check the trend first.
Is MACD a leading or lagging indicator?
Lagging. It's built from moving averages of past prices, so it confirms moves rather than predicting them. Shrinking histogram bars are its earliest warning that momentum is fading.
Learn MACD on real charts
The free Brainax course «Technical Analysis» has 23 short lessons with drawing trainers: from candles and levels to moving averages, RSI, MACD and Bollinger Bands, each with a quiz. Start the lesson
Free course on this topicTechnical Analysis: free courseStart the course →
Articles on this topic
- What Are Bollinger Bands? Squeeze, Walk and Reversion
- How to Use Fibonacci Retracement: Levels, Golden Pocket, Rules
- How to Learn Trading for Free: a 7-Step Beginner Plan
- What Is the RSI Indicator? 70/30, Divergence and Trends