Ulcer Performance Index (UPI)
Measures return per unit of drawdown pain, using the Ulcer Index to quantify how long and how deep drawdowns persist.
Formula
More Details
What is the Ulcer Performance Index?
The Ulcer Performance Index (UPI), developed by Peter Martin and Byron McCann in 1987, measures how well your returns compensate you for the drawdown pain you endured.
Unlike max drawdown (a single worst point) or standard deviation (which treats up and down moves equally), the Ulcer Index captures both the depth and duration of drawdowns. The UPI then divides your return by this "pain score."
The name comes from the very real physical stress that deep, prolonged drawdowns cause traders. If a metric can give you ulcers, it should be measured.
Formula
The UPI is calculated in two steps:
Step 1: Ulcer Index
For each day, calculate the percentage drawdown from the peak cumulative P&L:
Drawdown_i = (Equity_i − Peak_i) / Peak_i × 100
Then:
Ulcer Index = √( (1/n) × Σ Drawdown_i² )
This is essentially the RMS (root-mean-square) of drawdowns — it's always positive, and larger values mean more painful drawdown periods.
Step 2: UPI
UPI = Total Net P&L / Ulcer Index
Interpretation
| UPI | Meaning |
|---|---|
| < 0 | Losing money overall |
| 0 – 0.5 | Returns don't justify the drawdown pain |
| 0.5 – 1.5 | Moderate — acceptable for higher-risk strategies |
| 1.5 – 3.0 | Good — solid returns with manageable drawdowns |
| > 3.0 | Excellent — high returns for the pain endured |
Why UPI is Better Than Max Drawdown Alone
Consider two traders who both had a 15% max drawdown:
| Trader A | Trader B | |
|---|---|---|
| Max Drawdown | -15% | -15% |
| Duration at > 10% DD | 2 days | 45 days |
| Ulcer Index | 4.2 | 11.8 |
| Total Return | 30% | 30% |
| UPI | 7.14 | 2.54 |
Both had the same max drawdown, but Trader A recovered quickly while Trader B spent 45 days underwater. The UPI correctly identifies Trader A's path as far less painful.
How It Complements Other Metrics
| Metric | What It Measures | Weakness |
|---|---|---|
| Sharpe | Return / total volatility | Penalizes upside |
| Sortino | Return / downside volatility | Ignores drawdown duration |
| Calmar | Return / max drawdown | Single-point; ignores duration |
| UPI | Return / drawdown depth × duration | Most complete drawdown view |
How TradesViz Calculates It
TradesViz builds the cumulative daily P&L curve, tracks the running peak, computes each day's drawdown percentage from peak, calculates the Ulcer Index as the RMS of those drawdowns, and divides total net P&L by the result.
How TradesViz Does It Better
- Shows both UPI and the underlying Ulcer Index so you can see the raw drawdown pain score
- Paired with Calmar for two perspectives on drawdown risk (worst-case vs sustained)
- Filter by setup or time period to identify which strategies cause the most drawdown pain
- Custom dashboard widget for ongoing monitoring
Where to find it in TradesViz
Example
A trader with $30,000 total profit and an Ulcer Index of 5.2 has a UPI of 5,769 — meaning they earned well relative to the drawdown pain experienced.