Description Usage Arguments Value References Examples
Specifies how the portfolio backtesting is performed.
1 2 3 4 5 6 7 8 9 10 11 12 13 | portfolioBacktest(
windows = list(
windows = "equidistWindows",
params = list(horizon = "12m")),
strategy = list(
strategy = "tangencyStrategy",
params = list()),
smoother = list(
smoother = "emaSmoother",
params = list(doubleSmoothing = TRUE,
lambda = "3m", skip = 0,
initialWeights = NULL)),
messages = list())
|
windows |
a list, containing different arguments: windows, params (horizon). |
strategy |
a list, containing different arguments: strategy, params. |
smoother |
a list, containing different arguments: smoother, params. (doubleSmoothing, lambda, skip, initialWeights). |
messages |
a list containing the backtesting messages. |
returns an S4 object of class "fPFOLIOBACKTEST"
.
W\"urtz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
1 2 3 4 5 6 7 8 9 10 11 12 | ## portfolioBacktest -
# Show Default Portfolio Backtest Specifications:
backtest = portfolioBacktest()
## getWindowsFun -
# Get rolling windows function
getWindowsFun(backtest)
## setWindowsHorizon -
# Modify Rolling windows horizon
setWindowsHorizon(backtest) <- "12m"
backtest
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.