Description Usage Arguments Value Examples
Calculate Returns from a List of xts Prices
1 | calc_returns(price_list, type = c("clcl"), trim = NULL, alpha = NULL)
|
price_list |
list of xts asset prices |
type |
type of daily returns; "opop" open to opne, "clcl" close to close |
trim |
numeric value indicating limit for positive daily returns |
alpha |
numeric value indicating probability to filter at 1-alpha |
xts object of asset returns
1 | calc_returns(stock_prices, type = "opop", trim = 0.055)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.