apaSterlingRatio(PortfolioReturns, RiskfreeReturns, nDrawdowns)
=apaSterlingRatio(PortfolioReturns, RiskfreeReturns, nDrawdowns)Result
Returns the Sterling ratio, a risk-adjusted performance measure, i.e. the average excess return divided by the absolute average depth of the nDrawdowns largest drawdown episodes.
Syntax
PortfolioReturns: r x 1 vector of portfolio returns
RiskfreeReturns: r x 1 vector of riskfree returns
nDrawdowns: number of largest drawdown episodes to use (at least 1)
Algorithm
STR = (r̄P − r̄f) / |(D1 + … + DK) / K|
where D1, …, DK are the depths of the K deepest drawdown episodes, K = min(nDrawdowns, number of episodes).
Remarks
A drawdown episode is a run of observations below the running high-water mark of the cumulative return; its depth is the lowest value of the underwater curve within the run. If fewer than nDrawdowns episodes exist, all episodes are used. #N/A is returned if the series has no drawdown.
