Technical analysis indicators condense price information, providing analytical insight and trading signals which may not be obvious on a stock’s price chart. The Moving-Average-Convergence-Divergence (MACD) indicator fluctuates above and below zero, highlighting both the momentum and trend direction of a stock. Utilizing the MACD effectively requires understanding how it works, its functions and applications, as well as its limitations.
What is the MACD Indicator?
Gerald Appel developed the MACD in the 1970s, and it is one of the most popular indicators in use today. Traders use the MACD for determining trend direction, momentum and potential reversals. It is used to confirm trades based on other strategies, but it also provides its own trade signals.
Figure 1 shows the MACD applied to a daily chart of Apple (AAPL) stock.
Two lines compose the MACD: the MACD line and Signal line. These lines move together, except the MACD moves faster as the Signal line is a moving average of the MACD line.
The MACD Histogram that oscillates above and below zero shows the extent to which the MACD line is above or below signal line. The histogram provides a short-term view on recent momentum and direction. When the histogram is above zero, recent movement has been higher; below zero and the recent momentum was down. The greater the histogram value the greater the momentum of the recent move.
The Histogram is not always shown as part of the MACD indicator as many traders prefer to focus on the how the two lines (MACD and Signal) are interacting. These two lines are the source of most MACD strategies and price analysis.
The MACD is calculated as follows:
MACD Line = 12day EMA – 26day EMA
Signal Line = 9day EMA of MACD Line
EMA stands for exponential moving average.
The MACD Histogram is the MACD Line – Signal Line
Trading with the MACD Indicator
There are three primary uses for the MACD indicator, each offering advantages and disadvantages. Combing all three functions will help eliminate some losing MACD trade signals, as will using the MACD in conjunction with other indicators and price analysis.
Moves across the zero line on the indicator represent times when the 12day EMA is crossing the 26day EMA. When the MACD crosses the zero line from below, a new uptrend may be emerging. When the MACD crosses the zero line from above a new downtrend may be emerging.
Figure 2 shows several zero line crossovers in International Business Machines (IBM).
The strategy is to buy when the MACD crosses above the zero line, and sell (or take short positions) when the MACD line (black) crosses below the zero line. During choppy conditions this results in losing trades, and is profitable when strong trends emerge.
Hold long trades until the MACD crosses back below the zero line. Hold short trades until the MACD crosses above the zero line. This strategy is very basic and doesn’t have a stop loss, which means risk is not controlled. To utilize this strategy, traders need to implement their own form of risk control (see next section)
Zero line crossovers also confirm trends. When the MACD line is above zero it helps confirm uptrends and other strategies that indicate taking long positions. Below zero, the MACD confirms downtrends and taking short trades based on other strategies.
Signal Line Crossovers
Signal line crossovers provide better timing, and are preferred by most traders to zero-line crossovers.
With this method, a buy signal occurs when the MACD line crosses above the Signal line.
A sell (short) signal occurs when the MACD line crosses below the Signal line. Figure 3 shows IBM again, this time using Signal line crossovers. The buy and sell signals occur earlier in the price move than zero-line crossovers, potentially providing better entry and exit prices.
Since the MACD is an indicator, and not a trading system, there is no stop loss. For buy signals a stop can be placed below a recent low, and for short signals a stop can be placed above the recent high.
There are no built in targets, so trades are held until a crossover in the opposite direction occurs. New trades can then be initiated in the new crossover direction.
The downfall of this strategy is that it can result in “whipsaw” trades, when the MACD and Signal lines cross back and forth in a short amount time.
One way to avoid some whipsaws is to only take trades in the direction of the long-term trend. If the trend is up, only take a buy signals, and exit when the MACD line crosses back below the Signal Line.
Bearish divergence is when the price is making new highs, but the MACD isn’t. It shows that momentum has slowed, and a reversal could be forthcoming.
Bullish divergence is when the price is making new lows, but the MACD isn’t. It shows selling pressure has slowed, and a reversal higher could be around the corner.
Until divergence is confirmed by an actual turnaround in price, don’t base trades simply on divergence. A stock can continue to rise (fall) for a long time even while bearish (bullish) divergence is occurring.
In Figure 4 the price tries to make a new low in late March, but the MACD is already making higher highs. This indicated the move lower would potentially fail and a rally would ensue.
In May the price makes a new high but the MACD is making a lower high. This warns buying pressure has slowed and that the move higher could fail.
Adjustment and Limitations
The MACD line is based on the difference between the 26-day and 12-day EMA (see calculation). The Signal line is a 9-period EMA of the of the MACD line. Increasing the number of periods for the Signal line will reduce the number of crossover signals, helping avoid false signals. The drawback is that trade signals will occur later in the price move than they would with a shorter Signal line EMA.
Figure 5 shows this in action. Two MACD indicators are shown; the top one uses a 9-period signal line and bottom one uses a 26-period signal line.
The top one has more crossovers, but gets you into the long trade soon. The bottom one gets you into the trade later, but there are no crossovers, letting you to profit more from the extended uptrend.
The MACD is a useful indicator but it isn’t perfect. The Indicator is prone to “false signals” – providing a trade signal just as the price is turning the other way. The MACD also doesn’t come with built in risk controls or profit targets – it is just an indicator, not a strategy. Traders need to therefore implement their own risk and profit management tactics.
Divergence is a useful tool and warns a trend has slowed down, but this doesn’t mean price will reverse. Even if the price does reverse, divergence doesn’t tell you when that will occur.
The Bottom Line
If the MACD is above zero it helps confirm an uptrend; below zero and it helps confirm a downtrend. Zero line and Signal line crossovers are used as trade signals to enter and exit trending trades. Losing trade signals occur when crossovers occur in rapid succession due to choppy price action. Divergence shows when momentum is slowing, but it doesn’t indicate when a reversal will occur (if it occurs).
Combing different elements of each strategy makes the indicator more useful, such as taking buy signals following a bullish divergence. Using price and trend analysis will aid in determining which signals to take, such as only taking buy signals when a long-term uptrend is in place.