Moving Average Convergence Divergence (MACD)

The MACD, developed by Gerald Appel, is both a trend follower and an oscillator. The abbreviation stands for Moving Average Convergence Divergence. MACD.OSC is the difference between a fast Exponential Moving Average (EMA) and a slow Exponential Moving Average. The name “Moving Average Convergence Divergence” originated from the fact that the fast EMA is continually converging towards or diverging away from the slow EMA. A third Exponential Moving Average, MACD.EMAOSC, (the signal line) is then plotted on top of the MACD.OSC.

 

Pane: Bottom

 

Formula

 

MACD.OSC  = EMA period1 (C) - EMA period2 (C)

MACD.EMAOSC = EMA SmoothingPeriod (MACD.OSC)

MACD.DIFF = MACD.OSC – MACD.EMAOSC

 

EMA = Exponential Moving Average

C = Closing price

Period1 = Usually defined as 12 days

MACD.EMAOSC = Moving Average over the MACD.OSC, usually takes the period of 9 days

Period2 = Usually defined as 26 days

          SmoothingPeriod = Usually defined as 9 days

 

 

Properties

 

Input Field: The Symbol field on which the study will be calculated. Input Field is set to "Default", which, when viewing a chart for a specific symbol, is the same as "Close".

 

Period1: The time period for the first Exponential Moving Average. The application uses a default value of 12, referring to 12 bars.

 

Period2: The time period for the subtracted Exponential Moving Average. The application uses a default value of 26, referring to 26 bars.

 

Smoothing Period: The period of 9 bars for the signal line representing an additional Exponential Moving Average.

 

Interpretation

 

The MACD study can be interpreted as any other trend-following analysis, i.e. one line crossing another indicates either a buy or sell signal. When the MACD.OSC crosses above the signal line (MACD.EMAOSC), an uptrend may be starting, suggesting a buy. Equally, the crossing below the signal line may indicate a downtrend and a sell signal. The crossover signals are more reliable when applied to weekly charts, though this study may be applied to daily charts for short-term trading.

 

The MACD can signal overbought and oversold trends, if analyzed as an oscillator that fluctuates above and below a zero line. The market is oversold (buy signal) when both lines are below zero, and it is overbought (sell signal) when the two lines are above the zero line.

 

The MACD can also help identify divergences between the study and price activity which may signal trend reversals or trend losing momentum. A bearish divergence occurs when the MACD is making new lows while prices fail to reach new lows. This can be an early signal of an uptrend losing momentum. A bullish divergence occurs when the MACD is making new highs while prices fail to reach new highs. Both of these signals are most serious when they occur at relatively overbought/oversold levels. Weekly charts are more reliable than daily for divergence analysis with the MACD study.

 

Literature