Calculate perodic returns from xts object of prices
1 | ma.calculateReturns(x, nPer = 1)
|
x |
xts object of prices |
nPer |
choose Nper period returns |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.