addMACD | R Documentation |
Add Moving Average Convergence Divergence indicator to chart.
addMACD(fast = 12, slow = 26, signal = 9, type = "EMA", histogram = TRUE, col)
fast |
fast period |
slow |
slow period |
signal |
signal period |
type |
type of MA to use. Single values will be replicated |
histogram |
include histogram |
col |
colors to use for lines (optional) |
See and 'MACD' in TTR for specific details and implementation references.
A MACD indicator will be draw in a new window on the current chart. A chobTA object will be returned silently.
Jeffrey A. Ryan
see MACD in TTR written by Josh Ulrich
addTA
## Not run:
addMACD()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.