Description Usage Arguments Value Examples
View source: R/QuantAnalysis.R
Find the worst n drawdowns
1 | worst_n_drawdowns(fund, n = 5)
|
fund |
data.frame containing time-series of one asset |
n |
number of drawdowns to find |
with unique drawdowns start, end, and trough dates, and trough value
1 2 | data(ETF)
worst_n_drawdowns(ret[, 1:2], n = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.