Home   >   User Resources   >   Online Help   >   apaPainIndex
 

 

Function index Version 3.0.0

apaPainIndex(Returns)

Excel=apaPainIndex(Returns)

Result

Returns the pain index, the mean depth of the drawdowns over all periods.

Syntax

Returns: r x c matrix of returns. Each column represents a different time series.

Algorithm

Pain index = mean over all periods of |D(t)|, where D(t) = W(t) / max(1, max_{s≤t} W(s)) − 1 is the underwater curve of the wealth W(t) compounded from the discrete returns, starting from 1 (Zephyr).

Remarks

The result is a 1 x c row vector with one value per column of Returns.

Unlike the ulcer index, drawdowns are not squared.