Description Usage Arguments Value See Also
Given a list of ticker symbols, retrieve the symbol's price history from the given environment and compute the daily close price return for each symbol. Returns an XTS object containing columns for each symbol.
1 | daily_returns(symbols, n_roc = 1, env = .GlobalEnv)
|
symbols |
the list of ticker symbols |
n_roc |
the number of periods for return lookback, default 1 |
env |
the environment containing price histories,
default |
merged close monthly price returns for each symbol
TTR::ROC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.