Description Usage Arguments Value Author(s) References See Also Examples
Computes the Moving Average Convergence Divergence (MACD), a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price.
1 2 |
price |
A vector of past prices or an xts object. |
period |
|
signal_line |
Boolean, if true the signal line using a period of
|
slp |
Signal line period, the length of the period of the EMA used as signal line. |
k |
Weighting multiplier for the underlying Exponential
|
A vector
or an
xts
object, accordingly to the input,
of the same length of the input. If also the
signal line is computed, a list with two elements: MACD
and
signal
, or a multiple timeseries if it is an xts.
Giovanni Kraushaar <giovanni.kraushaar@usi.ch>
Murphy John J. (1999), Technical Analysis of the Financial Markets, New York Institute of Finance.
Moving average: MA
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.