Performance: Avg equity drawdown duration
The average number of calendar days during which equity was in a drawdown phase (from peak to recovery to the previous maximum). Shows how long, on average, the equity decline lasts.
Calculation:
- For each drawdown, calculate the duration:

- Average the durations:

Notes:
- Uses close-to-close equity.