Calculation of MACD
The MACD is calculated by subtracting the value of a 26-period exponential moving average from a 12-period exponential moving average. A 9-period dotted simple moving average of the MACD (the signal line) is then plotted on top of the MACD.
MACD = EMA(CLOSE, 12)-EMA(CLOSE, 26)
SIGNAL = SMA(MACD, 9)
Where:
EMA - the Exponential Moving Average;
SMA - the Simple Moving Average;
SIGNAL - the signal line of the indicator.
The MACD is calculated by subtracting the value of a 26-period exponential moving average from a 12-period exponential moving average. A 9-period dotted simple moving average of the MACD (the signal line) is then plotted on top of the MACD.
MACD = EMA(CLOSE, 12)-EMA(CLOSE, 26)
SIGNAL = SMA(MACD, 9)
Where:
EMA - the Exponential Moving Average;
SMA - the Simple Moving Average;
SIGNAL - the signal line of the indicator.