qis.compute_max_current_drawdown¶
- qis.compute_max_current_drawdown(prices)[source]¶
Compute the realised maximum drawdown and the current drawdown.
- Parameters:
prices (DataFrame | Series) – Price level Series or DataFrame. Ordinary and nullable floating missing values follow the same drawdown semantics.
- Returns:
Tuple of (max_drawdowns, current_drawdowns). For a DataFrame input, both elements are 1-D floating ndarrays indexed by column. For a Series input, both elements are scalar floats.
- Return type: