Define the window, equity series and units
Let E₀ be starting equity and Eₜ be each regularly spaced closing valuation. Set Hₜ = max(E₀, E₁, ..., Eₜ), drawdown Dₜ = 100 × (Eₜ/Hₜ - 1), and UI = sqrt(sum(Dₜ²)/n). Include zero drawdowns in n. This page uses the initial value to seed the peak but averages only the n subsequent period-end observations.
- With no external cash flows, annualized return in percentage points is 100 × ((Eₙ/E₀)^(m/n) - 1), where m is the stated number of periods per year. For weekly samples this example uses m = 52.
- UPI = (Rannual - Rf,annual)/UI. Enter 12, 2 and 2.941742 together, or 0.12, 0.02 and 0.02941742 together. Mixing percentages and decimal fractions creates a 100-fold error.
- Use the same dates for return and drawdown. A whole-history CAGR divided by a recent 14-bar UI answers a different question. Keep the peak initialization rule identical when comparing strategies.
- For an account comparison, use valuations that include open positions, cash and costs. Adjust deposits and withdrawals before calculating returns; a cash deposit is not trading profit.