Edge

Ulcer Index: Measure Drawdown Depth and Duration

The Ulcer Index scores how deep and how long you stay underwater, capturing the real stress of a system better than max drawdown alone.

WM
William M. · Founder of Shibiki

Max drawdown tells you how deep the hole got. It says nothing about whether you sat in that hole for two days or two months. The Ulcer Index measures both — and it’s named after what a long, deep drawdown actually does to a trader.

Why Max Drawdown Misses Duration

Maximum drawdown is a single point: the worst peak-to-trough decline over a period. It’s the most-quoted risk number in trading, and it throws away almost everything about the experience of the loss.

Consider two accounts that both hit a 20% max drawdown:

  • Account A dropped 20% in a week, then recovered to new highs the following week.
  • Account B drifted down to 20% over four months and stayed there.

Same max drawdown. Completely different ordeal. Account B spent a third of a year underwater — bleeding time, morale, and (on a funded account) the calendar you’re measured against. Max drawdown can’t distinguish them because it only records the deepest single point. The Ulcer Index exists to capture the duration that max drawdown discards.

The Ulcer Index Formula Step by Step

The Ulcer Index is a root-mean-square of the drawdown series — it’s the same math as standard deviation, but applied only to how far below the running peak you are. Step by step:

  1. Track the running peak. At each point in time, note the highest equity reached so far.
  2. Compute the drawdown at each point, as a percentage below that peak: Drawdownᵢ = (Equityᵢ − Peakᵢ) ÷ Peakᵢ × 100 — always zero or negative.
  3. Square each drawdown. Squaring does two things: it makes everything positive, and it penalizes deep drawdowns disproportionately more than shallow ones.
  4. Average the squared values across every point in the period.
  5. Take the square root.

The result is a single number in percent. Zero means you were never below a prior peak (you made new highs the whole way). Higher means deeper drawdowns, longer time underwater, or both.

Depth × Time: Quantifying the Pain

The genius of the Ulcer Index is that it charges you for every period spent underwater, not just the worst one. Because it averages over the full series, a strategy that spends months below its peak accumulates a high Ulcer Index even if its single deepest point was moderate. And because each drawdown is squared, one very deep drawdown hurts far more than several shallow ones — matching how risk actually feels.

That combination — depth × time, with depth weighted heavily — is why the Ulcer Index tracks psychological stress better than max drawdown. It’s not measuring the worst moment; it’s measuring the total burden of being behind. The number of periods below a peak and how far below directly drives the score. A drawdown-recovery calculator is a useful companion here, since it makes concrete how a deep drawdown demands a disproportionately larger gain to recover — the recovery asymmetry is a big part of why time underwater is so costly.

The Martin Ratio: Return Per Unit of Ulcer

The Ulcer Index measures pain. Pair it with return and you get a risk-adjusted ratio — the Martin ratio (also called the Ulcer Performance Index):

Martin Ratio = (Annualized Return − Risk-Free Rate) ÷ Ulcer Index

It reads like a Sharpe ratio, but the denominator is time-weighted drawdown instead of total volatility. That’s a meaningful upgrade for two reasons:

  • It only penalizes downside, so a strategy isn’t punished for large winning days the way Sharpe punishes them.
  • It penalizes sustained downside specifically, rewarding systems that recover quickly and make new highs.

A higher Martin ratio means you earned more return per unit of time-underwater stress. For a trader who has to keep their nerve through drawdowns to stay in the game, that’s often a more honest scorecard than volatility-based ratios.

Reading It Against Max Drawdown

The Ulcer Index doesn’t replace max drawdown — read them together, because the relationship between them is the signal.

PatternInterpretation
Low max drawdown, low UlcerShallow dips, quick recoveries — smooth equity
High max drawdown, low UlcerOne sharp drop that recovered fast — a spike, not a swamp
Moderate max drawdown, high UlcerLong grinding time underwater — the quiet account-killer

That bottom row is the one to fear on a prop account. A strategy with only a moderate worst drawdown but a high Ulcer Index is telling you it spends a lot of time bleeding sideways — which chews through the evaluation calendar and your resolve without ever printing a single scary number. Max drawdown would have called it “fine.”

Where the Ulcer Index Helps Prop Traders

Funded trading is a game played against both a drawdown limit and a clock. The Ulcer Index speaks to both.

  • Survival — a high Ulcer Index means you flirt with your drawdown boundary repeatedly, not just once. Every extra period near the limit is another chance to breach it. Confirm your firm’s exact limits with them, and size against your realistic underwater profile using a prop-firm drawdown calculator.
  • The trailing threshold — on a moving limit, sustained time near your lows is exactly when a trailing drawdown is most dangerous, because the threshold has ratcheted up toward you. Depth-times-duration is the precise thing that gets people blown out.
  • Psychology — long underwater stretches are when discipline breaks and traders override their own rules. This is where enforcement matters more than intention: Shibiki pushes hard risk limits down to the broker-side EA, so a grinding drawdown can’t tempt you into a size-up that breaks the account — the cap holds even when your patience doesn’t.

Because the Ulcer Index needs the full equity path — every point below every peak — it rewards continuous, accurate tracking. Reconstructing time-underwater from memory or a half-kept spreadsheet is hopeless. Shibiki auto-journals every trade and keeps a live edge-health reading per strategy — expectancy wrapped in a Wilson confidence interval — so your drawdown series, and the depth-and-duration story it tells, stays honest without you rebuilding it by hand. Measure the whole ordeal, not just its deepest second.

Related: Prop-firm drawdown calculator · Drawdown-recovery calculator · Trailing drawdown

Related guides

Free · 90-second setup

Stop tracking your trading. Start running it.

Shibiki journals every trade, measures your real edge, and pushes hard risk limits to your broker — across every prop-firm account at once.

Connect your first account

No credit card · works with your prop firm

  • Auto-journals every fill straight from your broker
  • Live edge health with a Wilson confidence interval
  • Hard risk limits enforced at the broker — not just alerts
  • One master strategy copied across your prop accounts