Trading Glass
FeaturesPricingAcademyBlogChartJournal
Loading
All Courses
Capital at RiskMax Drawdown RulesDaily & Weekly Risk LimitsBehavioral Risk ManagementTrader Journaling OSFrom Data to EdgeBuilding a Tiered Risk ModelRecovery FactorUlcer Index
Academy/Trading Intelligence/Risk Management

Ulcer Index

Trading Intelligence

9 min read

ulcerIndex

Quantify downside risk with the root-mean-square of drawdowns — a volatility measure that only penalizes losses.

Loading

Related Topics

Building a Tiered Risk Model

9 min

Capital at Risk

9 min

Max Drawdown Rules

9 min

Daily & Weekly Risk Limits

8 min

Previous Topic

Recovery Factor

Next Topic

Distribution of Trade Returns

Trading Glass

Next-generation charting order flow platform with rotation view, cluster visualization, and real-time analytics for professional traders and quantitative analysts.

Product

  • Features
  • Pricing
  • Chart
  • Journal

Resources

  • Academy
  • Blog
  • Documentation
  • API Reference
  • Support

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 Trading Glass. All rights reserved.

PrivacyTerms

Standard deviation punishes you for making money. The Ulcer Index only cares about what actually hurts -- drawdowns.

What Is the Ulcer Index?

The Ulcer Index (UI) is a volatility metric introduced by Peter Martin and Byron McCann in The Investor's Guide to Fidelity Funds (1989) that measures downside risk exclusively. Unlike standard deviation, which treats upside and downside moves symmetrically, the Ulcer Index only considers the depth and duration of drawdowns from prior peaks.

The name is deliberately vivid: it measures the amount of "ulcer-inducing" stress a portfolio or trading system inflicts on its operator. A smooth, steadily rising equity curve has a low Ulcer Index. A choppy, drawdown-heavy curve has a high one.

This makes it one of the most psychologically honest risk metrics available.


How It Is Calculated

The Ulcer Index is the root mean square (RMS) of percentage drawdowns from the running peak. Here is the step-by-step process:

  1. Track the running peak: At each point in time, record the highest equity value achieved so far.

  2. Calculate percentage drawdown: At each point, compute how far below the running peak the current equity sits.

Drawdown_i = (Peak_i - Equity_i) / Peak_i * 100

Peak_i = highest equity value observed up to time iEquity_i = current equity value at time iResult is always >= 0

When equity is at a new peak, the drawdown is 0%. When equity is below the peak, the drawdown is a positive percentage equal to the gap from peak.

  1. Square all drawdowns: This amplifies larger drawdowns disproportionately, penalizing deep declines more than shallow ones.

  2. Take the mean of the squared drawdowns: Average them over the entire observation period.

  3. Take the square root: This returns the result to the same scale as the original drawdowns.

Ulcer Index derivation

Step 1: Drawdown_i^2 (square each drawdown)

Step 2: (1/N) * sum(Drawdown_i^2) (mean of squared drawdowns)

Step 3: UI = sqrt( (1/N) * sum(Drawdown_i^2) ) (square root returns to drawdown scale)

The result is always a non-negative number expressed as a percentage. A Ulcer Index of 0.05 (5%) means the average RMS drawdown from peak is 5%.

Worked example: Take an equity curve [100, 110, 105, 100, 95, 102, 108]. The running peaks are [100, 110, 110, 110, 110, 110, 110]. The percentage drawdowns are [0, 0, 4.55, 9.09, 13.64, 7.27, 1.82]. Squared: [0, 0, 20.66, 82.64, 186.05, 52.89, 3.31]. Mean = 49.36. sqrt(49.36) = 7.03. So the Ulcer Index is roughly 7.03 (or 0.0703 in decimal form) — squarely in the "rough" band.

Worked example: 7-period equity curve and running peak. Gap area = drawdown contribution to UI.

EquityRunning peak
9095100105110115t0t1t2t3t4t5t6

Squared drawdowns from the worked example. The squaring step amplifies deeper drawdowns disproportionately — the t4 bar dwarfs the rest.

0t00t120.66t282.64t3186.05t452.89t53.31t6

Interpretation Guide

Ulcer IndexAssessmentWhat It Means
0.00 - 0.03ExcellentEquity curve is smooth with minimal drawdowns. Very tradable.
0.03 - 0.05GoodModest drawdowns that resolve quickly. Healthy system.
0.05 - 0.10ModerateNoticeable drawdowns. Requires discipline to trade through.
0.10 - 0.15RoughSignificant and/or prolonged drawdowns. Psychologically demanding.
> 0.15SevereDeep, extended drawdowns dominate the equity curve. High stress.

Context matters. A Ulcer Index of 0.08 might be acceptable for an aggressive momentum strategy but unacceptable for a conservative mean-reversion system. Always compare within the same strategy class.


Why It Only Penalizes Downside

This is the key insight that separates the Ulcer Index from standard deviation.

Standard deviation measures the dispersion of returns around the mean -- both above and below. A strategy that occasionally produces outsized winners will have high standard deviation, even though those large upside moves are exactly what traders want. Standard deviation treats a +5R winner the same as a -5R loser from a volatility perspective.

The Ulcer Index eliminates this problem entirely:

  • Upside moves: Equity at or above the running peak contributes a drawdown of 0%. Zero squared is zero. Winning periods add nothing to the Ulcer Index.
  • Downside moves: Equity below the running peak contributes a positive drawdown value. Squared and averaged, these are the sole drivers of the metric.

This means two strategies with identical standard deviations can have wildly different Ulcer Indexes:

  • Strategy A: Volatile but mostly upside. Frequent new highs with occasional shallow pullbacks. Low Ulcer Index.
  • Strategy B: Volatile with deep, prolonged drawdowns interspersed with sharp recoveries. High Ulcer Index.

Standard deviation says they are equally risky. The Ulcer Index correctly identifies that Strategy B is far more painful to trade — and far more likely to violate the Max Drawdown Rules you set for the account.

UI vs max drawdown: Max drawdown is a single worst-point statistic — it tells you nothing about how the strategy spent its time below peak. Two strategies with -25% max drawdown can have UI of 4% (one quick dip, fast recovery) or 14% (fifteen months underwater). UI integrates the whole experience; max drawdown is a snapshot.


The Ulcer Performance Index (UPI)

Just as the Sharpe Ratio divides excess return by standard deviation, you can divide excess return by the Ulcer Index to get the Ulcer Performance Index (also called Martin Ratio):

UPI = (Return - Risk-Free Rate) / Ulcer Index

This produces a risk-adjusted return metric that only penalizes downside risk. A higher UPI means more return per unit of drawdown stress. Rough heuristics for crypto strategies on daily equity: UPI < 1 = poor, 1–3 = decent, 3–7 = strong, > 7 = exceptional (and verify on out-of-sample data — UPI inflates aggressively on cherry-picked windows).

The UPI is often a better tool for comparing trading strategies than the Sharpe Ratio because:

  • It does not penalize upside volatility
  • It weighs deeper drawdowns more heavily (due to the squaring step)
  • It incorporates drawdown duration implicitly (longer drawdowns contribute more squared terms to the average)

Ulcer Index vs Sharpe, Sortino, and MAR

MetricRisk denominatorPenalizes upside vol?Captures DD duration?Distribution-free?Best use case
SharpeStandard deviation of returns (up + down)YesNoNo (assumes normality)Apples-to-apples comparison of normal-return assets
SortinoDownside standard deviation of returnsNoNoNo (assumes downside normality)Comparing strategies with asymmetric return distributions
MAR / CalmarMax drawdown (single worst point)NoIndirectly (worst point only)YesQuick screen of long-horizon trend systems
UPI (return / UI)RMS of drawdown depths from peakNoYes (squared by duration)YesEvaluating real, fat-tailed trading systems

The Sharpe Ratio assumes returns are normally distributed. Trading returns almost never are -- they exhibit fat tails and skewness. The Ulcer Index makes no distributional assumptions, making it the only honest choice when return distributions exhibit fat tails — which, for crypto and momentum systems, is always.

UI vs Sortino: Sortino divides excess return by the downside standard deviation of returns (the volatility of negative returns only). UI uses the RMS of drawdown depths from running peak — fundamentally different. Sortino sees a -3% day and another -3% day six months apart as identical noise; UI sees the second as worse if equity is still below the prior peak. Sortino punishes volatility of losing days; UI punishes time spent underwater.


How Drawdown Duration Affects the Ulcer Index

One subtle but powerful property of the Ulcer Index is that it naturally incorporates drawdown duration.

Consider two drawdown events, both reaching a maximum depth of 10%:

  • Drawdown A: Drops 10%, recovers in 5 periods. Contributes 5 squared terms.
  • Drawdown B: Drops 10%, stays near the bottom for 20 periods before recovering. Contributes 20+ squared terms.

Drawdown B produces a much higher Ulcer Index, even though the maximum depth was identical. This is correct behavior -- extended drawdowns are psychologically harder and represent greater systemic risk than brief sharp drops that recover quickly.


Practical Application for Traders

Monitoring Your Equity Curve

Calculate the rolling Ulcer Index over your last 50 or 100 trades. Plot it alongside your equity curve. A rising Ulcer Index even while equity is flat or rising slightly is an early warning -- it means drawdowns are deepening or extending.

Comparing Systems or Setups

If you trade multiple setups, calculate the Ulcer Index for each one independently. Some setups may contribute disproportionately to overall portfolio drawdown. Identifying and addressing these can dramatically improve the aggregate Ulcer Index.

Position Sizing Adjustment

Use the Ulcer Index to scale position size inversely. When the rolling Ulcer Index rises above a threshold (e.g., 0.10), reduce risk per trade. When it falls below a comfort level (e.g., 0.04), you have room to increase sizing.

Strategy Selection

When choosing between two strategies with similar returns, prefer the one with the lower Ulcer Index. You are far more likely to stick with a low-UI strategy through its inevitable rough patches — which is also why low UI is the structural cure for the revenge-trading patterns covered in Behavioral Risk Management.


Limitations and Pitfalls

  • Period sensitivity: UI computed on daily data differs from UI on weekly data for the identical equity curve — more samples below peak inflate the squared sum. Always state your sampling resolution when reporting UI, and never compare UI numbers from different resolutions.
  • Sample size: With fewer than ~100 periods, a single drawdown dominates the metric. UI is a long-horizon statistic; treat short-window readings skeptically and never optimize on a 30-trade backtest.
  • Rolling-UI whipsaw: Using rolling UI for position sizing can amplify volatility — the metric itself is noisy on small windows. Smooth with a longer EMA or step function before scaling risk, otherwise you risk size-down/size-up cycles that hurt more than they help.
  • Leverage and path dependency: UI on an unleveraged backtest does not translate cleanly to a leveraged live account. Margin calls, liquidation cascades, and funding costs interact with drawdown shape in ways the metric does not capture. Always re-derive UI from realized leveraged equity, not theoretical returns.

Frequently Asked Questions

What is a good Ulcer Index value?

For most retail strategies, a Ulcer Index below 0.05 is good and below 0.03 is excellent. Readings between 0.05 and 0.10 are moderate, and anything above 0.15 indicates psychologically demanding drawdowns. Always compare within the same strategy class — an aggressive momentum system tolerates higher UI than a conservative mean-reversion one.

How is the Ulcer Index different from the Sortino Ratio?

Sortino divides excess return by the downside standard deviation of returns — it punishes the volatility of negative days. The Ulcer Index uses the RMS of drawdown depths from the running peak — it punishes time spent below prior highs. Two -3% days six months apart look identical to Sortino but differ to UI if equity is still underwater on the second one.

Who invented the Ulcer Index?

Peter Martin and Byron McCann introduced the Ulcer Index in The Investor's Guide to Fidelity Funds (1989). The associated risk-adjusted return metric, the Ulcer Performance Index, is also called the Martin Ratio in honor of the same author.


Key Takeaways

  • The Ulcer Index measures the root mean square of percentage drawdowns from peak equity.
  • Unlike standard deviation, it only penalizes downside moves. Upside volatility contributes nothing.
  • Values below 0.05 indicate a smooth, tradable equity curve. Values above 0.15 indicate severe drawdown stress.
  • It naturally incorporates both drawdown depth and duration -- longer drawdowns produce higher values.
  • The Ulcer Performance Index (UPI) is a superior alternative to the Sharpe Ratio for comparing trading strategies because it only penalizes the risk that actually hurts.
  • Use it as a rolling metric to monitor strategy health and adjust position sizing dynamically.

How this fits the module: UI is the capstone of the Risk Management module — it complements Max Drawdown Rules (UI captures the experience, max drawdown captures the worst point), extends Recovery Factor (RF rewards reaching new highs; UPI rewards smooth paths to them), and gives a numerical handle on the psychological cost that Behavioral Risk Management treats qualitatively.