Skip to main content

max_drawdown

Function max_drawdown 

Source
pub fn max_drawdown(values: &[f64]) -> (f64, usize, usize)
Expand description

Maximum drawdown of a value series, as a positive fraction of the running peak (0.25 = a 25% peak-to-trough fall), with the peak and trough indices.