Description Usage Arguments Value Examples
View source: R/Return.portfolio.cut.R
If specific assets exceed the Loss Cut limit before rebalancing, sell all of its assets that exceed the cut point. Frequency of return should be shorter than frequency of weights.#'
1 2 3 |
R |
An xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
weights |
A time series or single-row matrix/vector containing asset weights, as decimal percentages, treated as beginning of period weights. See Details below. |
loss_cut |
Loss Cut point. Default point is -10 to avoid loss cut. |
rebalance_on |
Default "none"; alternatively "daily" "weekly" "monthly" "annual" to specify calendar-period rebalancing supported by |
value |
The beginning of period total portfolio value. This is used for calculating position value. |
verbose |
If verbose is TRUE, return a list of intermediary calculations. See Details below. |
... |
any other passthru parameters. Not currently used. |
returns a time series of returns weighted by the weights
, applied loss cut function.
1 2 3 4 5 | ## Not run:
data(edhec)
Return.portfolio.cut(edhec["1997",1:5], rebalance_on="quarters", loss_cut = -0.10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.