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 Lessons

Building a Tiered Risk Model

9 min

Capital at Risk

9 min

Max Drawdown Rules

9 min

Daily & Weekly Risk Limits

8 min

Previous Lesson

Recovery Factor

Next Lesson

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 designed by Peter Martin in 1987 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 = (Equity_i - Peak_i) / Peak_i * 100

When equity is at a new peak, the drawdown is 0%. When equity is below the peak, the drawdown is negative.

  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 = sqrt( (1/N) * sum(Drawdown_i^2) )

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%.


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.


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.

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 Ratio

DimensionSharpe RatioUlcer Index / UPI
Risk measureStandard deviation (up + down)RMS drawdown (down only)
Penalizes large gainsYesNo
Sensitive to drawdown depthPartiallyStrongly (squared)
Sensitive to drawdown durationNoYes (more periods below peak = higher UI)
Distribution assumptionsAssumes normalityDistribution-free
Psychological relevanceModerateHigh

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 more reliable for evaluating real trading systems.


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.


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.