MACD

Formula for the MACD Indicator
CE
Written by CJ Edwards
Updated 4 years ago

This indicator consists of two curves: the first (the continuous line) represents the difference between two exponential moving averages (exponential smoothing) at 12 and 26 days, the second (the signal line) is an exponential smoothing average at 9 days of the first line.

The formulas are as follows:

MACD = ( EMA( C, 12 ) - EMA( C, 26 ) )

MACDS = MA( MACD, 9 )

where:

MACD = macd at the current day

MACDS = SIGNAL line of the macd at the current day

EMA = exponential moving average

MA = simple moving average

C = current bar Close

The indicator moves around a zero line. In fact, when the short average is above that of the long the difference will be positive and the indicator is above zero identifying an upward trend and vice versa in case the short average is below that of the long one; when the two averages intersect their value coincides and the indicator line is on the zero.

The interpretation can be twofold here, too.

Did this answer your question?