Terminology
Over the years, elements of the MACD have become known by multiple and often over-loaded terms. The common definitions of particularly overloaded terms are: Divergence: # As the D in MACD, "divergence" refers to the two underlying moving averages drifting apart, while "convergence" refers to the two underlying moving averages coming towards each other. # Gerald Appel referred to a "divergence" as the situation where the MACD line does not conform to the price movement, e.g. a price low is not accompanied by a low of the MACD. # Thomas Asprey dubbed the difference between the MACD and its signal line the "divergence" series. In practice, definition number 2 above is often preferred. Histogram: # Gerald Appel referred to bar graph plots of the basic MACD time series as "histogram". In Appel's Histogram the height of the bar corresponds to the MACD value for a particular point in time. # The difference between the MACD and its Signal line is often plotted as a bar chart and called a "histogram". In practice, definition number 2 above is often preferred.Formula
The formula for the MACD line is based on two exponential moving averages of the close prices, usually with the periods of 12 and 26: The signal line is then built as the exponential moving average of the MACD line:Mathematical interpretation
In signal processing terms, the MACD series is a filtered measure of the derivative of the input (price) series with respect to time. (The derivative is called "velocity" in technical stock analysis.) MACD estimates the derivative as if it were calculated and then filtered by the two low-pass filters in tandem, multiplied by a "gain" equal to the difference in their time constants. It also can be seen to approximate the derivative as if it were calculated and then filtered by a single low pass exponential filter (EMA) with time constant equal to the sum of time constants of the two filters, multiplied by the same gain. So, for the standard MACD filter time constants of 12 and 26 days, the MACD derivative estimate is filtered approximately by the equivalent of a low-pass EMA filter of 38 days. The time derivative estimate (per day) is the MACD value divided by 14. The average series is also a derivative estimate, with an additional low-pass filter in tandem for further smoothing (and additional lag). The difference between the MACD series and the average series (the divergence series) represents a measure of the second derivative of price with respect to time ("acceleration" in technical stock analysis). This estimate has the additional lag of the signal filter and an additional gain factor equal to the signal filter constant.Classification
The MACD can be classified as anTrading interpretation
Exponential moving averages highlight recent changes in a stock's price. By comparing EMAs of different lengths, the MACD series gauges changes in the trend of a stock. The difference between the MACD series and its average is claimed to reveal subtle shifts in the strength and direction of a stock's trend. It may be necessary to correlate the signals with the MACD to indicators like RSI power. Some traders attribute special significance to the MACD line crossing the signal line, or the MACD line crossing the zero axis. Significance is also attributed to disagreements between the MACD line or the difference line and the stock price (specifically, higher highs or lower lows on the price series that are not matched in the indicator series).Signal-line crossover
A "signal-line crossover" occurs when the MACD and average lines cross; that is, when the divergence (the bar graph) changes sign. The standard interpretation of such an event is a recommendation to buy if the MACD line crosses up through the average line (a "bullish" crossover), or to sell if it crosses down through the average line (a "bearish" crossover). These events are taken as indications that the trend in the stock is about to accelerate in the direction of the crossover.Zero crossover
A "zero crossover" event occurs when the MACD series changes sign, that is, the MACD line crosses the horizontal zero axis. This happens when there is no difference between the fast and slow EMAs of the price series. A change from positive to negative MACD is interpreted as "bearish", and from negative to positive as "bullish". Zero crossovers provide evidence of a change in the direction of a trend but less confirmation of its momentum than a signal line crossover.Divergence
A "positive divergence" or "bullish divergence" occurs when the price makes a new low but the MACD does not confirm with a new low of its own. A "negative divergence" or "bearish divergence" occurs when the price makes a new high but the MACD does not confirm with a new high of its own. A divergence with respect to price may occur on the MACD line and/or the MACD Histogram.Timing
The MACD is only as useful as the context in which it is applied. An analyst might apply the MACD to a weekly scale before looking at a daily scale, in order to avoid making short term trades against the direction of the intermediate trend. Analysts will also vary the parameters of the MACD to track trends of varying duration. One popular short-term set-up, for example, is the (5,35,5).False signals
Like any forecasting algorithm, the MACD can generate false signals. A false positive, for example, would be a bullish crossover followed by a sudden decline in a stock. A false negative would be a situation where there is bearish crossover, yet the stock accelerated suddenly upwards. A prudent strategy may be to apply a filter to signal line crossovers to ensure that they have held up. An example of a price filter would be to buy if the MACD line breaks above the signal line and then remains above it for three days. As with any filtering strategy, this reduces the probability of false signals but increases the frequency of missed profit. Analysts use a variety of approaches to filter out false signals and confirm true ones. A MACD crossover of the signal line indicates that the direction of the acceleration is changing. The MACD line crossing zero suggests that the average velocity is changing direction.See also
*References
{{technical analysis Technical analysis Technical indicators