Description Usage Arguments Value
Compute lagged returns Compute lagged return each day up to a specified lag
1 | compute.lagged.ret(prices, max.lag = 120, loading = T, volume = T)
|
prices |
OLHCV prices series; xts |
max.lag |
indicates how far back lagged returns should be computed |
loading |
logical telling if loading bar should be displayed |
volume |
logical indicating if volume should be added |
xts with one column per lag. Index is same as index of prices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.