drawdown() calculates a vector of drawdowns.
the single largest negative drawdown over the period of returns specified.
1 2 3
A vector of returns.
Drawdown is a measure of how long it takes to recoup losses after a fall from a previous high. The more negative the drawdown, the larger the loss. The longer it takes to get back to 0 drawdown, the longer you are "underwater."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.