generate plots of the cumulative returns and drawdown for back-testing
backtest.plot(
R,
log_return = FALSE,
plotType = "both",
colorSet = NULL,
ltySet = NULL,
lwdSet = NULL
)
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns
arithmetic return or log return, the default is arithmetic return
"cumRet", "drawdown", or the default is both
users can design the color by providing a vector of color
users can design lty by providing a vector of lty
users can design lwd by providing a vector of lwd
Peter Carl, Xinran Zhao, Yifu Kang