MACD Oscillator Exponential
Indicator Type: Stand-alone (New Pane)
The MACD Oscillator Exponential is similar to the MACD Oscillator. In fact, the buy/sell indicators are identical. The difference is the MACD uses exponential moving averages versus the simple moving averages used in the line oscillator study.
Gerald Appel is credited with developing this study. His trading rules are simple. You buy when the oscillator crosses above the slower exponential moving average of the oscillator. Conversely, you sell when the oscillator crosses from above to below the exponential moving average of the oscillator. Lastly, divergence is possible with the MACD. The ideal signal would show divergence, clearly break a dominant trendline, and display the crossing of the MACD lines.
Another approach is to use this study in conjunction with long term charts. For example, you select the underlying weekly or monthly chart that corresponds to the intraday or daily chart for the same futures instrument. Now, you display the study on the long term chart. If the longer term chart is bullish, i.e., a buy signal is indicated, you want to be very cautious in short positions. You are trading against the longer term trend.
Barchart's "eMACD New Buy Signals" page shows you stocks where
new bullish crossover Buy signals are detected, based on this study.
Sample Chart:

Parameters:
- Period 1 (12) - the number of bars, or interval, used to calculate the first Exponential Moving Average.
- Period 2 (26) - the number of bars, or interval, used to calculate the second Exponential Moving Average.
- Period 3 (9) - the number of bars, or interval, used to calculate an additional Exponential Moving Average.
- Zero Line (0) - draws a horizontal line at the specified value, where the histogram appears above and below.
The Histogram has 4 color options you can set to reflect positive increasing/decreasing values and negative increasing/decreasing values.
Computation
In this study, the oscillator is the simple difference between the first two exponential moving averages. The formula is as follows:
OSCt = (EMA1 - EMA2)
- OSCt is the oscillator for the current period.
- EMA1 is the first exponential moving average.
- EMA2 is the second exponential moving average.
The second part of the study computes an exponential moving average of the oscillator. You have:
EMAosct = EMAosct-1+ (k * (OSCt - EMAosct-1))
- EMAosct is the exponential moving average of the oscillator.
- OSCt is the oscillator for the current interval.
- EMAosct-1 is the exponential moving average of the oscillator for the previous interval.
- k is the exponential smoothing constant.
Since the second value, EMAosct, is an exponential moving average, it rises and falls more slowly than the oscillator. Hence, the two lines generate crossover points. These crossover points are the buy/sell signals.
If the study is displayed as a histogram, each value for the lines is calculated as:
DIFFt = OSCt - EMAosct
- DIFFt is the difference between the oscillator for the current interval and the exponential moving average of the oscillator.
- OSCt is the oscillator for the current interval.
- EMAosct is the exponential moving average of the oscillator.