apaGainToPainRatio(Returns)
Excel
=apaGainToPainRatio(Returns)Result
Returns the gain-to-pain ratio, the sum of all returns divided by the sum of losses.
Syntax
Returns: r x c matrix of returns. Each column represents a different time series.
Algorithm
Gain-to-pain ratio = Σ r / Σ max(−r, 0) = profit factor − 1 (Schwager).
Remarks
The result is a 1 x c row vector with one value per column of Returns.
#N/A is returned if there are no negative returns.
