cv.drawdown {YRmisc} | R Documentation |
Calculate largest draw down of a series of returns. This function calculates the maximum decrease in percentage over time, which can be used to test portfolio returns.
cv.drawdown(x)
x |
: a numeric vector of returns |
# rnorm() is used to simulate portfolio returns
returns <- rnorm(100)
cv.drawdown(returns)