From the December 01, 2011 issue of Futures Magazine • Subscribe!

Stock trading with MACD

The moving average convergence-divergence (MACD) originally was constructed by Gerald Appel, an analyst in New York at the time, as a technique for analyzing stock trends. The indicator achieved widespread application by many traders across all types of markets. Today, it is one of the most widely referenced gauges of the market’s technical condition.

There is good reason for this. MACD is one of the simplest and most intuitive indicators available. Over time, it has demonstrated a satisfying level of reliability. While not always perfect, of course, when MACD doesn’t signal precise entry and exit points, it usually conveys valuable information about the general state of the market — bullish or bearish — and points traders in the right direction.

MACD is constructed by subtracting a longer moving average from a shorter moving average. A moving average is simply the average value of prices over the most recent N days. The shorter average is believed to be more responsive to price changes; the longer average is considered less responsive. By subtracting the value of the longer moving average from the value of the shorter moving average, we generate the difference. This can be plotted by itself below the price chart. The plot will oscillate above and below zero, with (theoretically) no upper or lower limit. In addition to the MACD, the oscillator chart often includes two other plots. One is the signal line, which is just a moving average of the MACD itself. The other is a histogram. The histogram is just a visual aid, indicating how far the oscillator is from its signal line.

Traders typically speak of a "fast" MACD and a "slow" MACD. For our purposes, we’ll consider a fast MACD one that uses shorter moving averages (say, five and 10 periods) to produce a quicker, more responsive indicator. We’ll consider a slow MACD one that uses longer moving averages (say, 12 and 26 periods) to produce a slower indicator, but one that is less prone to false signals and whipsaw-type action. Most charting packages have a default of 12 periods for the fast-moving average and 26 periods for the slow.

MACD remains a viable method for analyzing both stock trends and identifying short-term changes in market trend, particularly in both the overall stock market and individual stocks.

Understanding MACD

For our MACD, we’ll turn to the 12- and 26-day averages. Instead of simple moving averages, we’ll use exponential moving averages (EMA), which are calculated to reflect prices over the stated period but emphasize more recent values.

A positive MACD is generated when the 12-day EMA is trading above the 26-day EMA. A negative MACD indicates that the 12-day EMA is trading below the 26-day EMA. If MACD is positive and rising, then the gap between the faster moving average (blue) and the slower moving average (red) is widening (see "MACD in the S&P," below). This indicates that the rate-of-change of the faster moving average is higher than that of the slower moving average. Positive momentum is increasing, indicating a bullish period for the price plot. Included in "MACD in the S&P" are the 12- and 26-period EMAs. Notice how MACD indicated a buy signal several bars before a basic moving average cross.

If MACD is negative and declining, then the negative gap between the faster moving average (blue) and the slower moving average (red) is expanding. Downward momentum is accelerating, indicating a bearish trading period. MACD centerline crossovers occur when the faster moving average crosses the slower one.

Bullish/bearish signals

There are a number of bullish signals generated by the MACD. They can be broken down as positive divergence, a bullish moving average crossover and a bullish centerline crossover.

A positive divergence occurs when MACD begins to advance and the index or stock is still in a downtrend and makes a lower reaction low. Positive divergences probably are the least common of the three signals, but usually are the most reliable, and lead to the biggest moves (see "Technical divergence," below).

A bullish moving average crossover occurs when MACD moves above its signal line (in this case, a nine-day EMA). Signal line crossovers are the most frequent signals given by the MACD (see "Signal line cross," below). If these aren’t used in conjunction with other technical analysis tools, the trader following them can fall victim to numerous false signals.

The bullish centerline crossover is another somewhat common occurrence. This signal is generated when the MACD moves above the zero line and into positive territory (see "Bull move," below). It tells us that price momentum has changed from bearish to bullish.

The mirror of the bullish signals can be used to identify potential bearish turns in the stock market. These are known as negative divergence, bearish moving average crossovers and bearish centerline crossovers.

As with bullish divergence, negative divergence is the most subjective of the three common bearish signals. Negative divergence forms when the index or security advances or moves sideways, and the MACD declines. Negative divergence in MACD can take the form of either a lower-high or a straight decline. Negative divergences probably are the least common of the three signals, but usually are the most reliable and can warn of an impending peak (see "Before the fall," below).

As on the bullish side, the more common signals are the bearish moving average crossover and the bearish centerline crossover. A bearish moving average crossover occurs when MACD declines below its signal line. A bearish signal line crossover occurs when MACD moves below its zero line and into negative territory; this is a clear indication that momentum has changed from bullish to bearish. Often, a centerline crossover can act as a confirmation of either a moving average crossover or negative divergence. In any case, once MACD crosses into negative territory, momentum, at least for the short-term, has turned bearish.

Of course, all of these analysis approaches can be modified in a number of ways. For example, you might place different weight on signal line crossovers that occur in positive or negative territory, or those that occur at recent extremes in the MACD itself.

Strengths & weaknesses

The primary strengths of MACD are that it incorporates aspects of both momentum and trend in one indicator. The use of moving averages ensures that the indicator eventually will follow the movements of the underlying security.

As a momentum indicator, MACD has the ability to foreshadow moves in the underlying index or security. For example, MACD divergences can be key factors in predicting a trend change. The effectiveness of the MACD will vary for different securities and markets. As with all indicators, MACD is not infallible and should be used in conjunction with other technical analysis tools, such as trendlines, volatility measures or cycle analysis. One of the beneficial aspects of the MACD also is one of its drawbacks. Moving averages, be they simple, exponential or weighted, are lagging indicators. Even though the MACD represents the difference between two moving averages, there still can be some lag in the indicator itself. This is more likely to be the case with weekly charts rather than daily.

Some traders avoid the MACD because it has achieved widespread use in the markets. Perhaps familiarity has bred contempt or they believe that the indicator’s signals are discounted by the markets. You may believe this is so, but base it on first-hand experience, not assumptions or unproven biases. Of course, if an indicator isn’t working for you, move on. But for most stock traders, MACD can point you in the right direction. It shouldn’t be your only tool, but it’s definitely one worth keeping at the ready.

Bramesh Bhandari trades the Indian stock market and teaches technical analysis to traders. He can be reached at: bhandaribrahmesh@gmail.com.

Page 2 of 2
Comments
comments powered by Disqus