Home   >   User Resources   >   Online Help   >   apaMACD
 

 

Function index Version 3.0.0

apaMACD(TimeSeries, Faster, Slower, Signal)

Excel=apaMACD(TimeSeries, Faster, Slower, Signal)

Result

Calculates the moving average convergence/divergence (MACD) technical indicator. The columns of the result are (EMA stands for exponentially weighted moving average):

Syntax

TimeSeries: r x 1 data vector containing a time series (e.g. prices).

Faster: number of periods of the faster exponential moving average, e.g. 12.

Slower: number of periods of the slower exponential moving average, e.g. 26.

Signal: number of periods of the signal line, e.g. 9.

Remarks

The most commonly used parameters are 12 periods for Faster, 26 periods for Slower and 9 periods for Signal.