Description Usage Arguments Value Examples
Add Spread Costs to a Return Portfolio
1 | add_spread(R, weights, spread_buy = -0.003, spread_sell = NULL)
|
R |
xts object containing 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 |
xts object containing spread corrected returns
1 | add_spread(returns, weights, spread_buy = -0.005, spread_sell = -0.003)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.