MACD
Related
For educational purposes only. Not financial advice. Higher returns come with higher risk. Never risk more than you can afford to lose.
For educational purposes only. Not financial advice. Higher returns come with higher risk. Never risk more than you can afford to lose.
The Moving Average Convergence Divergence indicator, universally known as MACD, is one of the most popular and versatile tools in technical analysis. Developed by Gerald Appel in the late 1970s, it combines trend-following and momentum characteristics into a single indicator. MACD reveals changes in the strength, direction, momentum, and duration of a trend by tracking the relationship between two exponential moving averages.
What makes MACD uniquely valuable is that it serves double duty. As a trend indicator, it shows whether bulls or bears are in control. As a momentum indicator, it shows whether that control is strengthening or weakening. This dual nature means traders can use MACD both to identify the trend and to time entries and exits within that trend, making it a complete trading system in its simplest form.
MACD consists of three components. The MACD line itself is the difference between the 12-period EMA and the 26-period EMA. When the shorter EMA is above the longer EMA, the MACD line is positive, indicating bullish momentum. When it is below, the MACD line is negative, indicating bearish momentum. The further the MACD line is from zero, the stronger the momentum in that direction.
The signal line is a 9-period EMA of the MACD line itself. It acts as a smoothed trigger for buy and sell decisions. Because it is an average of the MACD, it will always lag slightly behind the MACD line, and the crossings between these two lines generate the indicator's primary trading signals.
The histogram is the visual representation of the difference between the MACD line and the signal line. When the MACD line is above the signal line, the histogram is positive (typically shown as green bars). When below, it is negative (red bars). The height of the histogram bars shows the rate of change in momentum. Growing histogram bars indicate accelerating momentum, while shrinking bars indicate decelerating momentum, often providing early warning of trend changes before the actual crossover occurs.
The zero line is the most fundamental reference point. When the MACD line is above zero, the short-term trend is bullish relative to the longer-term trend. When below zero, it is bearish. A MACD line that has been positive for an extended period indicates a sustained uptrend, while one that has been negative for a long time indicates a sustained downtrend. The magnitude of the reading shows how stretched the short-term trend is relative to the long-term trend.
The relationship between the MACD line and the signal line tells you about momentum within the trend. When the MACD is pulling away from the signal line (histogram growing), momentum is increasing. When they are converging (histogram shrinking), momentum is fading. This is often the first sign that a move is running out of steam, even if price itself has not yet reversed.
Reading the histogram in isolation can be powerful. A histogram that has been negative and starts producing shorter bars (moving toward zero) tells you that selling pressure is decreasing. A histogram that transitions from negative to positive represents a shift from bearish to bullish momentum. Watching histogram bar progression gives you the earliest possible read on momentum changes within the MACD framework.
The signal line crossover is the most common MACD trade. When the MACD line crosses above the signal line, it generates a bullish signal. When it crosses below, a bearish signal. These crossovers work best when they occur in the direction of the prevailing trend. A bullish crossover that happens above the zero line is more reliable than one below it, because the overall trend context is already bullish. Similarly, bearish crossovers below the zero line carry more weight.
The zero line crossover is a stronger but slower signal. When the MACD line crosses above zero, it means the 12 EMA has crossed above the 26 EMA, confirming a shift in trend direction. These signals are equivalent to a moving average crossover but presented in a more nuanced format. They tend to produce fewer false signals than signal line crossovers but enter trades later in the move.
Histogram reversals offer the earliest signals. When the histogram peaks and begins to decline while still positive, it suggests bullish momentum is fading. Some aggressive traders take counter-trend positions on histogram reversals, while more conservative traders use them as warnings to tighten stops on existing positions. The key is context: a histogram reversal in the direction of the larger trend is a pullback entry opportunity, while one against the trend is a potential exhaustion signal.
MACD divergence is one of the most reliable reversal signals in technical analysis. Bullish divergence occurs when price makes a lower low but the MACD line or histogram makes a higher low. This indicates that despite new price lows, selling momentum is actually weakening, often foreshadowing a reversal upward. Bearish divergence is the mirror image: price makes a higher high but MACD makes a lower high, suggesting buying momentum is fading beneath the surface.
Hidden divergence signals trend continuation rather than reversal. Bullish hidden divergence occurs when price makes a higher low (confirming the uptrend) but MACD makes a lower low. This suggests the pullback in the indicator is deeper than in price, and the trend is likely to resume. Hidden divergence is particularly useful for finding pullback entry points within established trends. However, divergence signals should never be traded in isolation. They are warnings that require confirmation from price action, such as a break of a trendline or a candlestick reversal pattern.
MACD works exceptionally well with RSI. While MACD shows momentum direction and trend, RSI shows whether conditions are overbought or oversold. A bullish MACD crossover combined with RSI rising from below 30 is a high-conviction buy signal. Conversely, a bearish MACD crossover with RSI falling from above 70 is a strong sell signal. Using both together filters out many false signals that either would produce alone.
Pairing MACD with volume indicators adds another dimension of confirmation. A bullish MACD crossover supported by rising On-Balance Volume (OBV) suggests that money is flowing into the security, backing up the momentum shift. Without volume confirmation, MACD crossovers are more prone to failure. Support and resistance levels from price charts also complement MACD well. A bullish MACD signal occurring at a major support level has much higher odds of success than one occurring in the middle of a range.
AAPL has been in a daily downtrend with the MACD line well below zero. Over two weeks, price forms a double bottom near $165 while the MACD histogram begins producing shorter negative bars. The MACD line then makes a higher low compared to its previous trough, creating bullish divergence. This is the first warning that the downtrend is losing momentum.
Three days later, the MACD line crosses above the signal line, and the histogram turns positive. RSI simultaneously crosses above 50. A trader enters long at $170 with a stop below the recent double bottom at $163. The target is the 50-day EMA overhead at $182. This gives a risk of $7 and a reward of $12, a 1.7:1 ratio.
Over the next two weeks, AAPL rallies to $185 as the MACD line crosses above zero, confirming the trend has shifted from bearish to bullish. The trader trails the stop to the 20-day EMA, eventually exiting at $183 when the histogram begins to shrink. The sequence of divergence followed by crossover followed by zero-line cross provided multiple confirmation points, each adding confidence to the trade.
The most frequent error is trading every MACD crossover without considering the broader context. In choppy, range-bound markets, the MACD line oscillates around zero and the signal line, producing a rapid series of crossovers that each result in small losses. These whipsaw periods can generate five or six losing trades in a row. The solution is to filter crossovers with a trend requirement: only take bullish crossovers when the MACD is above zero (or trending toward it), and only take bearish crossovers when below zero.
Another mistake is ignoring the histogram and focusing only on crossovers. By the time a crossover occurs, a significant portion of the move may already be complete. The histogram provides much earlier signals: when it begins shrinking, momentum is already shifting. Traders who learn to read histogram progression can anticipate crossovers and enter positions earlier with better risk-reward ratios.
The default 12, 26, 9 settings work well for most applications. These parameters were designed for daily charts and represent roughly two weeks, one month, and a week and a half of trading data respectively. For faster signals on intraday charts, some traders use 5, 13, 6 or 8, 17, 9. For weekly charts or longer-term analysis, 19, 39, 9 provides smoother signals with fewer false crossovers.
An important consideration is that changing the settings changes the character of the indicator significantly. Shorter settings produce more signals but more false ones. Longer settings produce fewer signals but with higher reliability. Rather than constantly adjusting settings, most professional traders stick with the defaults and instead improve their results by adding context: trend filters, volume confirmation, and support/resistance analysis. The default settings work precisely because millions of other traders are watching the same levels.
MACD is a lagging indicator because it is derived from moving averages, which are themselves lagging. It will never signal a top or bottom in real time. By the time a crossover confirms a trend change, price has typically already moved 5-15% from the actual turning point. This lag is the fundamental tradeoff for the signal reliability that MACD provides.
MACD does not work well as a standalone indicator in range-bound markets. When price is oscillating within a trading range, the MACD will produce a series of crossovers that go nowhere, eroding capital with each false signal. Additionally, MACD does not provide overbought or oversold readings because it is unbounded. While you can compare MACD levels historically for a given security, you cannot use absolute thresholds the way you would with RSI or Stochastic. This makes it harder to identify extreme conditions without additional tools.