Moving Average Convergence Divergence (MACD)
Usage
macd(price, s, l, k, percent = TRUE)
Arguments
- price
A numeric vector of prices
- s
The short-term period
- l
The long-term period
- k
The signal line period
- percent
Whether to return the MACD as a percentage
Value
A list containing the MACD and signal line values