Moving Average Convergence/Divergence (MACD)
macd
has been partially removed and will no longer accept a
fints
object
(tsobj
) argument. Use a matrix, timetable
, or table
instead for financial time
series.
Use fts2timetable
to convert a
fints
object to a timetable
object.
[
calculates the Moving Average Convergence/Divergence (MACD) line from the series of
data and the nine-period exponential moving average from the
MACDLine
,SignalLine
] = macd(Data
)MACDLine
.
[1] Achelis, S. B. Technical Analysis from A to Z. Second Edition. McGraw-Hill, 1995, pp. 166–168.