powered by
findDrawdowns will find the starting period, the ending period, and the amount and length of the drawdown.
findDrawdowns
Drawdowns(R, geometric = TRUE, ...)findDrawdowns(R, geometric = TRUE, ...)
findDrawdowns(R, geometric = TRUE, ...)
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns
utilize geometric chaining (TRUE) or simple/arithmetic chaining (FALSE) to aggregate returns, default TRUE
any other passthru parameters
Often used with sortDrawdowns to get the largest drawdowns.
sortDrawdowns
Drawdowns will calculate the drawdown levels as percentages, for use in chart.Drawdown.
Drawdowns
chart.Drawdown
Returns an unordered list:
return depth of drawdown
from starting period
to ending period
length length in periods
Bacon, C. Practical Portfolio Performance Measurement and Attribution. Wiley. 2004. p. 88
sortDrawdowns maxDrawdown sortDrawdowns table.Drawdowns table.DownsideRisk chart.Drawdown
maxDrawdown
table.Drawdowns
table.DownsideRisk
# NOT RUN { data(edhec) findDrawdowns(edhec[,"Funds of Funds", drop=FALSE]) sortDrawdowns(findDrawdowns(edhec[,"Funds of Funds", drop=FALSE])) # }
Run the code above in your browser using DataLab