The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

portfolioBacktest: Automated Backtesting of Portfolios over Multiple Datasets

Automated backtesting of multiple portfolios over multiple datasets of stock prices in a rolling-window fashion. Intended for researchers and practitioners to backtest a set of different portfolios, as well as by a course instructor to assess the students in their portfolio design in a fully automated and convenient manner, with results conveniently formatted in tables and plots. Each portfolio design is easily defined as a function that takes as input a window of the stock prices and outputs the portfolio weights. Multiple portfolios can be easily specified as a list of functions or as files in a folder. Multiple datasets can be conveniently extracted randomly from different markets, different time periods, and different subsets of the stock universe. The results can be later assessed and ranked with tables based on a number of performance criteria (e.g., expected return, volatility, Sharpe ratio, drawdown, turnover rate, return on investment, computational time, etc.), as well as plotted in a number of ways with nice barplots and boxplots.

Version: 0.4.1
Depends: R (≥ 2.10)
Imports: digest, evaluate, ggplot2, pbapply, PerformanceAnalytics, parallel, quadprog, quantmod, R.utils, rlang, stats, utils, xts, zoo
Suggests: CVXR, DT, ggfortify, gridExtra, knitr, prettydoc, readtext, rmarkdown, R.rsp, scales, stringi, testthat
Published: 2022-04-22
DOI: 10.32614/CRAN.package.portfolioBacktest
Author: Daniel P. Palomar [cre, aut], Rui Zhou [aut]
Maintainer: Daniel P. Palomar <daniel.p.palomar at gmail.com>
BugReports: https://github.com/dppalomar/portfolioBacktest/issues
License: GPL-3
URL: https://CRAN.R-project.org/package=portfolioBacktest, https://github.com/dppalomar/portfolioBacktest
NeedsCompilation: no
Materials: README NEWS
CRAN checks: portfolioBacktest results

Documentation:

Reference manual: portfolioBacktest.pdf
Vignettes: Portfolio Backtesting

Downloads:

Package source: portfolioBacktest_0.4.1.tar.gz
Windows binaries: r-devel: portfolioBacktest_0.4.1.zip, r-release: portfolioBacktest_0.4.1.zip, r-oldrel: portfolioBacktest_0.4.1.zip
macOS binaries: r-release (arm64): portfolioBacktest_0.4.1.tgz, r-oldrel (arm64): portfolioBacktest_0.4.1.tgz, r-release (x86_64): portfolioBacktest_0.4.1.tgz, r-oldrel (x86_64): portfolioBacktest_0.4.1.tgz
Old sources: portfolioBacktest archive

Reverse dependencies:

Reverse suggests: riskParityPortfolio

Linking:

Please use the canonical form https://CRAN.R-project.org/package=portfolioBacktest to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.