AverageLength function

Calculates the average length (in periods) of the observed drawdowns.