Description Usage Arguments Details Value Examples
This function repeatedly calls function optimize.portfolio in PortfolioAnalytics to perform a backtest of a strategy requiring optimization. Since optimize.portfolio can be slow to run, it provides periodic updates at each optimization date via a log file. It is assumed to run on multiple CPU cores using foreach and the snow package.
1 2 | backtest_opt(R, portfolio, optimize_method = "random",
search_size = 100)
|
R |
the returns |
This function uses the version 2 of optimize.portfolio. More details by ?optimize.portfolio.
return value
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.