Ulcer Index: Formula, the Martin Ratio, and Bitcoin vs the S&P 500 ETF
Peter Martin’s Ulcer Index measures the depth and duration of drawdowns from earlier highs. The rolling and whole-period formulas, the Ulcer Performance Index, and what the index says about Bitcoin and the S&P 500 ETF from March 2025 to October 2026.

On this page
The Ulcer Index measures how deep prices fall below their earlier highs and for how long. Peter Martin developed it in 1987 and first described it in a 1989 book written with Byron McCann. Unlike the standard deviation, it ignores upward moves: only drawdowns count, and a long drawdown counts more than a brief one of the same depth. Below: the two ways it is computed, as a rolling 14-day indicator and over a whole period, the Ulcer Performance Index built on it, and its values on Bitcoin and the S&P 500 ETF.
Rolling Ulcer Index (14) on Bitcoin

- Price, daily candles (hollow up, filled down)
- Ulcer Index(14), percent (solid line)
Ulcer Index formula
Martin describes it as “a measure of the depth and duration of drawdowns in prices from earlier highs.” Each close is turned into a percentage drawdown from the highest close so far; the drawdowns are squared, averaged, and the square root is taken. Squaring makes deep drawdowns weigh much more than shallow ones, and averaging over every bar makes a drawdown that lasts weigh more than one that is quickly recovered.
Depth below the highest close so far, hand example over five weeks

Rolling 14 days or the whole period
Two versions are in use, and they give very different numbers. StockCharts computes a rolling indicator: the drawdown from the highest close of the last 14 periods, averaged over 14 periods. Martin’s own calculation runs over the whole period studied, from the highest close since its start. The chart above is the rolling version; the comparison table below uses Martin’s.
| Rolling Ulcer Index (StockCharts) | Period Ulcer Index (Martin) | |
|---|---|---|
| Reference high | Highest close of the last 14 periods | Highest close since the start of the period |
| Average over | The last 14 periods | Every period of the study |
| Result | A line that rises in each sell-off and falls back | One number per investment and period |
| Bitcoin, daily, March 2025 to October 2026 | Median 4.21, highest 19.95 on February 13, 2026 (values from April 3, 2025, the first day with a full 14-day average) | 30.65 |
Martin adds a practical point: “Weekly price data is a robust choice, but daily data can be used as well,” and quarterly or longer intervals are “strongly discouraged.” Over the same period, the period Ulcer Index of Bitcoin is 30.14 on weekly closes (the last close of each Monday to Sunday week) and 30.65 on daily ones; for the ETF, 2.30 and 2.49.
Period Ulcer Index by data frequency and window

- Bitcoin
- S&P 500 ETF
Bitcoin against the S&P 500 ETF
The ETF’s dividend-adjusted daily closes from March 10, 2025 to October 28, 2026 set against Bitcoin’s from March 8, 2025, the start of our daily Bitcoin data:
| Bitcoin | S&P 500 ETF | |
|---|---|---|
| Total return over the period | −5.66% | +40.48% |
| Standard deviation of daily log returns | 2.20% | 1.06% |
| Largest drawdown from a closing high | −52.97% | −13.72% |
| Ulcer Index over the period (Martin) | 30.65 | 2.49 |
| Rolling Ulcer Index(14), median day | 4.21 | 1.14 |
| Rolling Ulcer Index(14), highest | 19.95, February 13, 2026 | 8.30, April 23, 2025 |
By standard deviation, Bitcoin was about twice as risky as the ETF over the period (Bitcoin trades every day, the ETF on market days). By the Ulcer Index, about twelve times: Bitcoin closed more than 20% below its highest close so far on 350 of its 600 days, while the ETF was never more than 20% below its high, made a new closing high in 85 of the 412 sessions after the first and was more than 10% below its high on only 4 of them, April 4, 7, 8 and 21, 2025. That is the case Martin built the index for. Martin also warns that “it is important to use data covering as long a time period as possible. In particular, the measurement period must include both bull and bear markets for the investments of interest,” and that any use outside these constraints “would be inappropriate and of little value.” This window, just under 20 months long, contains no bear market for the ETF, whose deepest fall was 13.72%, so the ratio of twelve describes this window only.
Bitcoin and the S&P 500 ETF on three risk measures, March 2025 to October 2026

- Bitcoin
- S&P 500 ETF
Ulcer Performance Index, or Martin ratio
Martin divides excess return by the Ulcer Index: “UPI = (Total return − Risk-free return) / UI.” The result is “known as the ‘Ulcer Performance Index’ (UPI) or ‘Martin Ratio’”, and it plays the role of the Sharpe ratio with the Ulcer Index in place of the standard deviation. We do not compute it here: it needs a risk-free return series that our data does not include.
What is a good Ulcer Index?
There is no fixed threshold. The value depends on the asset, the period and the data frequency, as the numbers above show: 2.49 for the ETF and 30.65 for Bitcoin over the same dates. Its use is to compare investments over the same dates and with the same data, a lower value meaning shallower or shorter drawdowns.
Does it work?
The Ulcer Index is a risk measure, not a signal, so there is no trade to test: it describes past drawdowns exactly and says nothing certain about future ones. Our bench measures chart patterns against random entries (see our methodology); its risk figures are not computed with the Ulcer Index.
Related pages: the average true range, another volatility measure, the risk/reward ratio, the risk of ruin, the Bollinger Bands and the list of technical indicators.
Frequently asked questions
What is the Ulcer Index?
A risk measure by Peter Martin: the square root of the average squared percentage drawdown from earlier highs. It measures the depth and duration of drawdowns and ignores upward moves.
What is a good Ulcer Index?
There is no fixed threshold. It depends on the asset, the period and the data frequency: from March 2025 to October 2026, 2.49 for the S&P 500 ETF and 30.65 for Bitcoin. Compare investments over the same dates, lower meaning shallower or shorter drawdowns.
What is the Martin ratio?
Another name for the Ulcer Performance Index: total return minus the risk-free return, divided by the Ulcer Index. It is the Sharpe ratio with the Ulcer Index in place of the standard deviation.
How is the Ulcer Index different from standard deviation?
The standard deviation counts moves up and down alike and ignores their order. The Ulcer Index counts only falls below the previous high and grows with the time spent there. Bitcoin was about twice as volatile as the ETF by standard deviation, and about twelve times as risky by the Ulcer Index, over the same period, March 2025 to October 2026, which holds no bear market for the ETF.
