Essa Shakeel Finance 100 #48 · Investing View source on GitHub

Portfolio Risk Metrics

Paste returns or prices; get CAGR, volatility, Sharpe, Sortino, max drawdown and Calmar.

Your numbers

Results

Statistics

Growth of $10,000

Drawdown from peak

How it works

Each return is r = P(t) / P(t-1) - 1. CAGR is (P(end) / P(start))^(1 / years) - 1, where years is the number of returns divided by periods per year. Annualised volatility is the sample standard deviation of returns times sqrt(periods).

Sharpe is (mean return x periods - rf) / volatility. Sortino uses the same excess return over the downside deviation, sqrt(mean of min(r - rf / periods, 0)^2) x sqrt(periods), so only returns below the risk-free rate count as risk.

Max drawdown is the lowest value of P(t) / running peak - 1. Recovery is the first later close at or above that peak. Calmar is CAGR divided by the size of the max drawdown.

Limits: past returns do not predict future ones, and the ratios depend on the window you choose. For an ETF, use a total-return price series, which reinvests distributions, or the returns will leave out income. The default series is illustrative only and is not the price history of any fund. Paste real closes to get your own figures.