Ulcer Index
A good Ulcer Index is below 5, indicating shallow, short-lived drawdowns. Values above 10 suggest deep or prolonged equity declines requiring strategy review.
7-day money-back guarantee
The Formula
UI = √(Σ(Percentage Drawdown²) / N) Percentage Drawdown is the decline from the highest peak to the current value, expressed as a percentage. N is the number of periods measured. The squaring emphasizes larger drawdowns disproportionately.
Benchmark Ranges
| Level | Range | What It Means |
|---|---|---|
| Excellent | < 3 | Very smooth equity curve with shallow, brief drawdowns |
| Good | 3 - 7 | Manageable drawdowns with solid risk control |
| Average | 7 - 14 | Moderate drawdowns typical of active traders |
| Poor | > 14 | Severe or prolonged drawdowns requiring immediate review |
How to Track
Record your account equity at the end of each trading day or week
Calculate the running peak equity at each measurement point
Compute the percentage drawdown from peak at each point
Square each drawdown percentage, average all values, and take the square root
How to Improve
Use tighter stop-losses to limit the depth of individual drawdowns
Reduce position size during losing streaks to slow equity decline
Diversify across uncorrelated setups so drawdowns in one strategy are offset by others
Set a daily or weekly maximum loss limit to prevent extended drawdown periods
The Ulcer Index is a risk metric that measures the depth and duration of drawdowns from peak equity. Created by Peter Martin in 1987, it captures what traders intuitively feel but rarely quantify: the pain of watching an account decline and stay down. Unlike standard deviation, which treats gains and losses equally, the Ulcer Index focuses exclusively on downside movements, making it one of the most psychologically relevant risk measures available to active traders.
Formula & Calculation
Ulcer Index = √(Σ(Percentage Drawdown²) / N)
Where:
- Percentage Drawdown = ((Current Value - Peak Value) / Peak Value) × 100
- N = Total number of measurement periods
- Peak Value = Highest equity value reached up to that point
The calculation works in three steps. First, at each measurement point, compute the percentage the account has fallen from its highest peak. If equity is at a new high, the drawdown is zero. Second, square each drawdown percentage — this ensures larger drawdowns are weighted more heavily than small ones. Third, average all the squared drawdowns and take the square root.
Because the formula squares drawdowns before averaging, a single deep drawdown raises the Ulcer Index far more than several small ones. This matches trading reality: one 20% drawdown is far more damaging than four 5% drawdowns.
Benchmarks
| Level | Range | What It Means |
|---|---|---|
| Excellent | under 3 | Very smooth equity curve with shallow, brief drawdowns |
| Good | 3 - 7 | Manageable drawdowns with solid risk control |
| Average | 7 - 14 | Moderate drawdowns typical of active traders |
| Poor | above 14 | Severe or prolonged drawdowns requiring immediate review |
These benchmarks apply to individual trading accounts measured over daily equity snapshots. Context matters — a systematic trend-following strategy will naturally have a higher Ulcer Index than a high-frequency scalping approach due to longer holding periods and wider stops.
Practical Example
A trader with a $25,000 account records daily equity over 10 trading days:
| Day | Equity | Peak | Drawdown % |
|---|---|---|---|
| 1 | $25,000 | $25,000 | 0.00% |
| 2 | $25,500 | $25,500 | 0.00% |
| 3 | $24,800 | $25,500 | -2.75% |
| 4 | $24,200 | $25,500 | -5.10% |
| 5 | $24,900 | $25,500 | -2.35% |
| 6 | $25,600 | $25,600 | 0.00% |
| 7 | $25,100 | $25,600 | -1.95% |
| 8 | $24,400 | $25,600 | -4.69% |
| 9 | $25,000 | $25,600 | -2.34% |
| 10 | $25,800 | $25,800 | 0.00% |
Sum of squared drawdowns: 0 + 0 + 7.56 + 26.01 + 5.52 + 0 + 3.80 + 21.99 + 5.48 + 0 = 70.36
Average: 70.36 / 10 = 7.036
Ulcer Index: √7.036 = 2.65
This value falls in the “Excellent” range, indicating the trader experienced only shallow drawdowns that recovered within a few days. The two separate drawdown clusters (days 3-5 and days 7-9) were both moderate and brief.
How to Track Ulcer Index
- Record equity daily — Log your account balance at the same time each day, after all positions are marked to market. Consistency in timing prevents noise from intraday fluctuations.
- Maintain a running peak — At each measurement point, compare current equity to the highest equity recorded so far. Update the peak whenever equity reaches a new high.
- Calculate percentage drawdowns — For each day, compute how far equity sits below the running peak. Days at new highs have a drawdown of zero.
- Compute the index over a rolling window — Use at least 30 data points for statistical reliability. A 60-90 day rolling window balances responsiveness with stability.
How to Improve Ulcer Index
- Cut losses faster with predefined stops — Move stops to breakeven after a trade reaches 1R profit. This directly reduces the depth component of the Ulcer Index by preventing winners from turning into losers.
- Scale down during drawdowns — Reduce position size by 25-50% when your account drops 5% from peak. Smaller positions mean the drawdown deepens more slowly, lowering the squared drawdown values.
- Add uncorrelated setups — If you trade momentum breakouts, add a mean-reversion setup. When one strategy draws down, the other may offset it, keeping the equity curve smoother.
- Enforce a daily loss limit — Cap daily losses at 1-2% of account equity. This prevents the multi-day cascading losses that drive the Ulcer Index highest.
- Review holding periods — Trades held too long often deepen drawdowns. Tighten time-based exits to reduce duration of underwater periods.
Common Mistakes
- Too few data points — Computing the Ulcer Index over 5-10 days produces meaningless results. Use at least 30 measurement periods to capture a representative sample of drawdown behavior.
- Comparing across timeframes — An Ulcer Index of 5 measured daily is not comparable to 5 measured weekly. Always specify the measurement interval when reporting or comparing values.
- Ignoring it during winning streaks — The Ulcer Index drops toward zero during sustained runs. Traders stop monitoring it, then get blindsided when a drawdown hits. Track it continuously.
- Confusing it with maximum drawdown — Maximum drawdown captures only the single worst peak-to-trough decline. The Ulcer Index captures the cumulative weight of all drawdowns over a period, including how long they lasted. Both metrics are useful, but they measure different things.
How JournalPlus Calculates Ulcer Index
JournalPlus computes your Ulcer Index automatically from your logged trades, reconstructing your daily equity curve and tracking peak-to-trough drawdowns across any date range you select. The analytics dashboard displays the Ulcer Index alongside related risk metrics like maximum drawdown and Calmar Ratio, so you can assess drawdown severity in context. You can filter by strategy, instrument, or time period to isolate which setups contribute most to drawdown stress, and export the underlying data for further analysis.
Common Mistakes
Using too few data points, which makes the Ulcer Index unreliable
Comparing Ulcer Index values across different timeframes without normalizing
Ignoring the Ulcer Index during winning streaks when risk habits may be slipping
Confusing the Ulcer Index with maximum drawdown — the Ulcer Index captures both depth and duration
Frequently Asked Questions
What is the Ulcer Index?
The Ulcer Index is a volatility measure created by Peter Martin in 1987 that quantifies downside risk by calculating the depth and duration of drawdowns from equity peaks. Unlike standard deviation, it only penalizes downward moves.
What is a good Ulcer Index value?
A good Ulcer Index is below 5, meaning drawdowns are shallow and recover quickly. Values under 3 are excellent. Values above 10 indicate significant drawdown stress that warrants strategy adjustment.
How is the Ulcer Index different from standard deviation?
Standard deviation treats upside and downside volatility equally. The Ulcer Index only measures downside movements from peak equity, making it a more accurate reflection of the pain traders actually experience during losing periods.
What is the Ulcer Performance Index?
The Ulcer Performance Index (UPI), also called Martin Ratio, divides excess return by the Ulcer Index. It functions like the Sharpe Ratio but uses the Ulcer Index instead of standard deviation, rewarding strategies with high returns and smooth equity curves.
Can the Ulcer Index be used for any trading style?
Yes. The Ulcer Index works for day trading, swing trading, and position trading. Shorter-term traders should measure it over daily equity snapshots, while longer-term traders can use weekly data. The key is consistency in measurement intervals.
Why is it called the Ulcer Index?
Peter Martin named it the Ulcer Index because deep, prolonged drawdowns cause the most psychological stress for investors — the kind that gives you ulcers. The metric quantifies exactly that discomfort.
Track Your Metrics With JournalPlus
Automatically calculate and track all your trading metrics in one place. See what's working and what's not.
Buy Now - ₹6,599 for Lifetime Buy Now - $159 for Lifetime7-day money-back guarantee