Moving Average Convergence-Divergence (MACD)
Introduction
Developed by Gerald Appel in the late seventies, Moving Average Convergence-Divergence (MACD) is one of the simplest and most effective momentum indicators available. MACD turns two trend-following indicators, moving averages, into a momentum oscillator by subtracting the longer moving average from the shorter moving average. As a result, MACD offers the best of both worlds: trend following and momentum. MACD fluctuates above and below the zero line as the moving averages converge, cross and diverge. Traders can look for signal line crossovers, centerline crossovers and divergences to generate signals. Because MACD is unbounded, it is not particular useful for identifying overbought and oversold levels.
Calculation
MACD: (12-day EMA - 26-day EMA) Signal Line: 9-day EMA of MACD MACD Histogram: MACD - Signal Line
Standard MACD is the 12-day Exponential Moving Average (EMA) less the 26-day EMA. Closing prices are used to form the moving averages so MACD is based on closing prices. A 9-day EMA of MACD is plotted along side to act as a signal line to identify turns in the indicator. The MACD-Histogram represents the difference between MACD and its 9-day EMA, the signal line. The histogram is positive when MACD is above its 9-day EMA and negative when MACD is below its 9-day EMA.
Interpretation
As its name implies, MACD is all about the convergence and divergence of the two moving averages. Convergence occurs when the moving averages move towards each other. Divergence occurs when the moving averages move away from each other. The shorter moving average (12-day) is faster and responsible for most of the MACD movement. The longer moving average (26-day) is slower and less reactive to price changes in the underlying security.
Positive MACD indicates that the 12-day EMA is above the 26-day EMA. Positive values increase as the shorter EMA trades further above the longer EMA. This means upside momentum is increasing. Negative MACD indicates that the 12-day EMA is below the 26-day EMA. Negative values increase as the shorter EMA trades further below the longer EMA. This means downside momentum is increasing. There are times when MACD crosses the zero line, which is also known as the centerline. This signals that the 12-day EMA has crossed the 26-day EMA. The direction of the centerline cross, of course, depends on direction of the moving average cross.
In the example above, the yellow area shows MACD in negative territory as the 12-day EMA trades below the 26-day EMA. The initial cross occurred at the end of September (black arrow) and MACD moved further into negative territory as the 12-day EMA diverged further from the 26-day EMA. The orange area highlights a period of positive MACD, which is when the 12-day EMA was above the 26-day EMA. Notice that the 12-day EMA remained below 1 during this period (red dotted line). This means the distance between the 12-day EMA and 26-day EMA was less than 1 point, which is not a big difference.
Signal Line Crossovers
Signal line crossovers are the most common MACD signals. The signal line is a 9-day EMA of MACD. As a moving average of the indicator, it trails MACD and makes it easier to spot turns in MACD. A bullish crossover occurs when MACD turns up and crosses above the signal line. A bearish crossover occurs when MACD turns down and crosses below the signal line. Crossovers can last a few days or a few weeks, it all depends on the strength of the move that causes the crossover.
Signal crossovers are quite common. As such, due diligence is required before relying on these signals. Signal line crossovers at positive or negative extremes should be viewed with caution. Even though MACD is an unbounded oscillator, chartists can estimate historical extremes with a simple visual assessment of the indicator. It takes a strong move in the underlying security to push momentum to an extreme. Even though the move may continue, momentum is likely to slow and this will usually produce a signal line crossover at the extremities. Volatility in the underlying security can also increase the number of crossovers.
Chart 2 shows IBM with its 12-day EMA (green), 26-day EMA (red) and MACD (12,26,9) in the indicator window. There were eight signal line crossovers in six months: four up and four down. There were some good signals and some bad signals. The yellow area highlights a period when MACD surged above 2 to reach a positive extreme. There were two bearish signal line crossovers in April and May, but IBM continued trending higher. Even though upward momentum slowed after the surge, upward momentum was still stronger than downside momentum in April and May. The third bearish signal line crossover in May resulted in a good signal.
Centerline Crossovers
Centerline crossovers are the next most common MACD signals. A bullish centerline crossover occurs when MACD moves above the zero line to turn positive. This happens when the 12-day EMA of the underlying security moves above the 26-day EMA. A bearish centerline crossover occurs when MACD moves below the zero line to turn negative. This happens when the 12-day EMA moves below the 26-day EMA.
Centerline crossovers can last a few days or a few months. It all depends on the strength of the trend. MACD will remain positive as long as there is a sustained uptrend. MACD will remain negative when there is a sustained downtrend. Chart 3 shows Pulte Homes (PHM) with at least four centerline crosses in a nine month period. The post-crossover moves were quite strong so the resulting signals worked well.
Chart 4 shows Cummins Inc (CMI) with seven centerline crossovers in five months. Taking these signals would have resulted in numerous whipsaws.
Chart 5 shows 3M (MMM) with a bullish centerline crossover in late March 2009 and a bearish centerline crossover in early February 2010. This signal lasted 10 months. In other words, the 12-day EMA was above the 26-day EMA for 10 months. This was one strong trend.
Divergences
Divergences form when MACD diverges from the price action of the underlying security. A bullish divergence forms when a security records a lower low and MACD forms a higher low. The low lower in the security affirms the current downtrend, but the higher low in MACD shows less downside momentum. The slowing of the downtrend sometimes foreshadows a trend reversal or a sizable rally. Chart 6 shows Google (GOOG) with a bullish divergence in October-November 2008. First, notice that I am using closing prices to identify the divergence. The MACD moving averages are based on closing prices and we should consider closing prices in the security as well. Second, notice that there were clear reaction lows in October as Google bounced for a few weeks and MACD moved above its signal line. Third, notice that MACD formed a higher high as Google formed a lower low in November.
A bearish divergence forms when a security records a higher high and MACD forms a lower high. The higher high in the security is normal for an uptrend, but the lower high in MACD shows less upside momentum. Waning upward momentum can sometimes foreshadow a trend reversal or sizable decline. Chart 7 shows Gamestop (GME) with a large bearish divergence from August to October. The stock forged a higher high above 28, but MACD fell short of its prior high and formed a lower high. The subsequent signal line crossover and support break in MACD were bearish. Notice how broken support in the stock turned into resistance and on the throwback in November.
Divergences should be taken with caution. Bearish divergences are commonplace in a strong uptrend, while bullish divergences occur often in a strong downtrend. Yes, you read right. Uptrends often start with a strong advance that produces a surge in upside momentum (MACD). Even though the uptrend continues, it continues at a slower pace and this causes MACD to decline from its highs. The opposite occurs at the beginning of a strong downtrend. Chart 8 shows the S&P 500 ETF (SPY) with four bearish divergences from August to November 2009. Despite waning upside momentum, the ETF continued higher because the uptrend was strong. Remember, upside momentum is stronger than downside momentum as long as MACD is positive. MACD may have been less positive as the advance extended, but it was still largely positive.
Conclusions
MACD is special because it brings together momentum and trend in one indicator. This means MACD will never be far removed from price action. MACD's unique blend of trend and momentum can be applied to daily, weekly or monthly charts. The standard setting for MACD is the difference between the 12 and 26-period EMAs. Chartists looking for more sensitivity may try (5,35,5). Chartists looking for less sensitivity may consider (20,50,10). A less sensitive MACD will still oscillate above/below zero, but the centerline crossovers and signal line crossovers will be less frequent.
MACD is not particularly good for identifying overbought and oversold levels. Even though it is possible to identify levels that historically represent overbought and oversold, MACD does not have any upper or lower limits to bind its movement. MACD can continue to overextend beyond historical extremes.
MACD calculates the absolute difference between two moving averages and not the percentage difference. A $20 stock may have a MACD range of -1.5 to 1.5, while a $100 stock may have a MACD range from -10 to +10. It is not possible to compare MACD for securities that vary in price. An alternative is to use the Percentage Price Oscillator (PPO), which shows the percentage difference between two moving averages.
MACD and SharpCharts
MACD can be set as an indicator above, below or behind a security's price plot. Once the indicator is chosen from the drop down list, the default parameter setting appears (12,26,9). These parameters can be adjusted to increase sensitivity or decrease sensitivity. The signal line default is 9, which can also be adjusted to increase or decrease sensitivity. The MACD-Histogram appears with the indicator. This reflects the difference between MACD and the signal line. Click here for a live example of MACD.
Suggested Scans
MACD Bullish Signal Line Cross: This scan reveals stocks that are trading above their 200-day moving average and have a bullish signal line crossover in MACD. Also notice that MACD is required to be negative to insure this upturn occurs after a pullback. This scan is just meant as a starter for further refinement.
MACD Bearish Signal Line Cross: This scan reveals stocks that are trading below their 200-day moving average and have a bearish signal line crossover in MACD. Also notice that MACD is required to be positive to insure this downturn occurs after a bounce. This scan is just meant as a starter for further refinement.
Further Study
Book: Technical Analysis - Power Tools for Active Investors by Gerald Appel. This book offers a complete course in market forecasting from the creator of MACD. Short, intermediate and long term strategies are explained with many incorporating MACD.
Book: Understanding MACD by Gerald Appel and Edward Dobson. From the creator, this book offers a comprehensive guide to using and interpreting MACD.
출저:- 7767 휘증회 안용진 Moving Average Convergence-Divergence 2010-07-31
- 7766 휘증회 안용진 Stochastic Oscillator -2 2010-07-31
- 7765 휘문69회 김세형 ‘대통령의 눈물’ -퍼옴 2010-07-31
- 7764 휘문69회 송승범 (소설) 사랑, 그 심한 착각. 21 2010-07-31
- 7763 휘문55회 안용진 [낚시]2010년7월28~30일 단양 향산리 늪실의 견지낚시 2010-07-31
- 7762 휘문55회 안용진 [사진]2010년7월27일 화요산악회 제109차 망월사계곡 산행 2010-07-31
- 7761 휘문71회 신성수 8월을 맞는다. 말없이 뜨거운 태양을 받는 자연을 바라보자. 2010-07-31
- 7760 휘문69회 김세형 광고 및 홍보 기사 접수중 2010-07-30
- 7759 휘문IT 유용식 “청계산 약초샘골에서 휘문IT동문 알탕 번개”_[휘문IT 7월31(... 2010-07-30
- 7758 휘문53회 유호선 友人을 祝賀하면서 2010-07-30








