For an equity curve E on a finite time grid and c > 0, the relative drawdown 1 − E_t / max_{s≤t} E_s (running peak = Mathlib's partialSups) of c·E equals that of E at every time t, and so does the maximum relative drawdown up to every t; by contrast the absolute maximumDrawdown of c·E is c times that of E. The identity holds for every E; the value is a drawdown fraction only where the running peak is positive.
{ι : Type u_1} → [Preorder ι] → [LocallyFiniteOrderBot ι] → (ι → ℝ) → ι → ℝRelative drawdown 1 − E t / max_{s ≤ t} E s of an equity curve E at time t: the fraction of the running peak lost by time t. It is a drawdown fraction only where partialSups E t > 0; elsewhere the value is junk.