macd ( seq n1 n2 -- newseq )


Vocabulary
math.finance

Inputs
seqa sequence
n1short number of periods
n2long number of periods


Outputs
newseqa sequence


Word description
Returns the Moving Average Converge of the sequence, calculated by:
MACD[t] = EMA2[t] - EMA1[t]


Definition