The Three Biggest Drawdowns in the portfolio

Share:

Description

Show the top 3 drawdowns including start and end dates, as well as decrease in returns during the drawdown period. All the information will be returned in a table, with all the numbers properly formatted.

Usage

1

Arguments

x

A data frame with date and return columns

Details

If the data set is not big enough that there are fewer drawdowns than required by the user, the function will throw NA's into the table so that the table will still contain as many rows as the user demands.

Value

A data frame that contains the starting date, end date and values of the three biggest drawdowns.