Forum Sign in Register

What Is the Ulcer Index? Measuring the Drawdown Pain That Standard Deviation Ignores

Started by Support 5 days ago · 0 replies RSS

Standard deviation treats a 5% gain and a 5% loss as the same thing. Your account does not, and neither does your nervous system. The Ulcer Index is a volatility measure built around that asymmetry: it only counts the downside, and it punishes drawdowns that last.

It was created by Peter Martin in the 1980s, and the name is not a joke — it was designed to quantify how much stress a holding actually inflicts on the person holding it.

The problem it solves

Most risk statistics you will encounter — standard deviation, the Sharpe ratio, the volatility figure on a fund factsheet — are symmetric. They measure dispersion around a mean, and an upside surprise contributes exactly as much "risk" as a downside one.

That is mathematically tidy and practically wrong. Nobody has ever closed a trading account because their equity curve went up too fast. What ends accounts is the depth of the hole and the time spent in it.

The Ulcer Index measures precisely those two things, and nothing else.

How it is calculated

The calculation is short, and reading it explains the whole indicator.

  1. Find the running maximum. For each bar, take the highest close reached so far within the lookback window.
  2. Measure the percentage drawdown. For each bar, calculate how far the current close sits below that running peak, as a percentage. If price is at a new high, the drawdown is zero.
  3. Square each drawdown. This is the key step. Squaring means a 20% drawdown contributes sixteen times as much as a 5% one, not four times. Deep declines dominate the result.
  4. Average the squares over the window, then take the square root. The standard lookback is 14 periods.


    The output is a single number that reads like a percentage. Zero means the instrument spent the whole window making new highs. A high number means it spent the window deep underwater.

    Two consequences fall straight out of that formula. First, upside volatility is invisible — a market that goes vertical registers a Ulcer Index near zero, no matter how wild the ride. Second, duration counts. A sharp 15% drop that recovers in two bars produces a much lower reading than a 15% drop that grinds sideways for the rest of the window, because the squared drawdown gets averaged over every bar it persists.

    How to read it on a chart

    The Ulcer Index has no fixed overbought or oversold levels — the meaningful reading is always relative.

    • Near zero — the instrument is at or near its highs. In a trend-following context this is a healthy state, not an expensive one.
    • Rising — drawdowns are deepening or persisting. Risk is being taken on that has not yet been rewarded.
    • Elevated and flat — the market is stuck below a peak and staying there. This is the signature of a sustained bear phase rather than a shock.
    • Falling from a high level — recovery. Price is climbing back toward its previous peak.


    Compare readings across instruments, or against the same instrument's own history, rather than against an absolute threshold.

    The Ulcer Performance Index

    The Ulcer Index really earns its keep as the denominator of a risk-adjusted return ratio, sometimes called the Ulcer Performance Index or the Martin ratio:

    (annualised return − risk-free rate) ÷ Ulcer Index


    The shape is identical to a Sharpe ratio, but the risk term has been swapped. Sharpe divides excess return by total volatility; the Martin ratio divides it by downside pain. For a strategy that produces occasional large gains — most trend-following and breakout systems — this makes an enormous difference. Sharpe penalises those big winning months as "volatility". The Ulcer Index does not notice them at all.

    If you are evaluating a system whose return distribution is deliberately skewed to the upside, the Sharpe ratio will systematically undersell it and the Martin ratio will not.

    Practical uses

    • Comparing strategies or systems. Two backtests with the same CAGR are not equivalent if one has an Ulcer Index twice the other's. The one with the lower reading is the one you will actually still be trading in a year.
    • Position sizing across a portfolio. Allocating inversely to each instrument's Ulcer Index tilts capital toward things that recover quickly and away from things that stay broken.
    • An honesty check on your own equity curve. Run it on your account balance, not on a price series. The number tells you how much time you have spent underwater, which is the variable that actually predicts whether you abandon a system.
    • Screening instruments. Between two markets in comparable uptrends, the one with the lower Ulcer Index has been trending more cleanly and will be easier to hold through a pullback.


    Limitations worth knowing

    It is backward-looking. A 14-period Ulcer Index describes the last fourteen bars and forecasts nothing — a calm reading right before a crash is not a failure of the indicator, it is the indicator doing its job.

    It is also close-based in its standard form, so intrabar spikes that recover by the close do not register. For a swing trader that is a feature. For anyone whose stops sit inside the bar, it understates the real experience.

    And it is not a timing tool. There is no Ulcer Index crossover to trade. Treating it as an entry signal misses the point entirely — it is a measurement instrument, in the same family as a drawdown table, not a signal generator.

    The bottom line

    The Ulcer Index answers a question standard deviation cannot: how much did holding this actually hurt, and for how long. Squaring the drawdowns makes deep declines dominate, and averaging over the window makes slow recoveries count as heavily as sharp ones.

    Use it as a comparison tool between strategies, as the denominator in a risk-adjusted return ratio that does not punish you for winning big, and as an unflattering but useful mirror held up to your own equity curve.
clean by ai-agent

Sign in to reply.