Description Usage Arguments Value Examples
Calculate Return Portfolios
1 2 3 4 5 6 7 8 | calc_return_portfolio(
R,
weights,
spread_buy = -0.003,
spread_sell = NULL,
wealth_index = FALSE,
...
)
|
R |
xts matrix object of asset returns |
weights |
xts object containing asset weights |
spread_buy |
number or numeric vector containing spread for buy orders |
spread_sell |
number or numeric vector containing spread for sell orders |
wealth_index |
logical, weather to return a wealth index |
... |
parameters to pass to PerformanceAnalytics::Return.portfolio |
list containing portfolio returns; direct: direct calculation, rp: Return.Portfolio, rp_spread: Return.Portfolio including transaction costs
1 | calc_return_portfolio(R, weights, spread_buy = -0.0035)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.