> ## Content Index
> Fetch the complete content index at: https://blog.algorover.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ulcer Index Explained: Why Equal Drawdowns Can Feel Different
- URL: https://blog.algorover.ai/ulcer-index-explained/
- Published: 2026-11-18T11:17:24.000Z
- Updated: 2026-11-18T11:17:24.000Z
- Description: A brief 20% drop and a long stay below the high share the same maximum drawdown. Ulcer Index helps show the difference between their paths.
- Author: AlgoRover Team
- Tags: Risk Management, #en

Two strategies both have a maximum drawdown of 20%. One recovers quickly; the other stays near the bottom for a long time. The report shows the same worst loss, but holding the second strategy feels very different.

**Ulcer Index, often shortened to UI, counts the drawdowns that keep showing up over a period. A deeper fall or a longer stay below the high generally makes the number larger.** To calculate it, square each percentage drawdown, take the average and then the square root. It helps you see how long the account stayed down as well as how far it fell.

## What is Ulcer Index?

Maximum drawdown tells you how deep the worst hole was. UI keeps checking as you travel: how far below the high are you now, and are you still down there at the next reading? A brief 20% fall appears once. Stay 20% below the high for many readings and that drawdown gets counted again and again.

You don't enter a separate number of recovery days. The repeated readings bring time into the calculation: one per day with daily data, one per week with weekly data. Use the same intervals and window length for both strategies.

[StockCharts' Ulcer Index documentation](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/ulcer-index?ref=blog.algorover.ai) describes a calculation using closes, lookback-window high closes and squared drawdowns. A common setting of 14 means 14 observation periods, not necessarily 14 days.

## How to calculate Ulcer Index

Suppose both strategies start with the same capital. To make them easy to compare, call the starting equity 100 and record it ten times at equal intervals. A is 100, 80, 100, 100, 100, 100, 100, 100, 100, 100\. B is 100, 80, 80, 80, 80, 80, 80, 80, 80, 100\. Both fall at most 20%, both end at 100, and the high used for comparison stays at 100 throughout.

![Two equity paths on the same scale fall from100 to80 and recover to100; A recovers quickly while B stays at80 for eight observations, with drawdowns below](https://storage.ghost.io/c/6d/bb/6dbbb7cc-1f93-4cd3-8d75-e3c2cfce055f/content/images/2026/11/ulcer-en.webp)

Ten hypothetical, equally spaced observations. Matching endpoints and maximum drawdowns hide different amounts of time underwater.

A has one −20% reading and nine zeros. Square 20, divide by ten readings and take the square root: UI is √\[(20²) ÷ 10\], about 6.32\. B is still down 20% at eight readings, so its UI is √\[(8 × 20²) ÷ 10\], about 17.89\. We used 20 directly. If software enters 20% as 0.20, multiply its final result by 100 to compare it with these numbers.

__Two measures describe different parts of the same paths__
| Path                  | Maximum drawdown | Observations below the high | Ulcer Index |
| --------------------- | ---------------- | --------------------------- | ----------- |
| A: quick recovery     | 20%              | 1                           | About 6.32  |
| B: prolonged drawdown | 20%              | 8                           | About 17.89 |

## Ulcer Index vs maximum drawdown and volatility

Maximum drawdown picks out the deepest fall. UI counts every drawdown reading in the window, with deeper falls standing out more because the numbers are squared. Return volatility looks at changes in gains and losses, so an unusually good gain adds to volatility too.

An account can reach a new high every day while earning more on some days than others. Those returns vary, but the closing equity may show no drawdown. An account that fell and then barely moves can have low recent return volatility while UI keeps recording that it is still below the high.

## Why do two platforms show different Ulcer Index values?

First ask whether the calculation uses the asset's price or your account. A chart indicator usually uses closing prices; a strategy comparison needs account equity, including open gains and losses. The asset can rise while your account doesn't. Then check whether both use daily or weekly data, how many periods they cover, how far back they look for a high and whether enough earlier data was loaded.

Some calculations only look for highs in the recent window. As that window moves forward, an old high can drop out. UI may then fall even though the account never got back to that high. To ask whether the loss has really been recovered, check the account's previous highest equity and how long it took to return there.

## Is a lower Ulcer Index always better?

With the same data and settings, a lower UI means the repeated drawdown readings were smaller. But a strategy that barely trades and earns very little can have low UI too. Look at what it earned before choosing it for its small drawdowns.

Put return, maximum drawdown, UI and longest recovery time side by side. How much did it earn? How deep was the worst fall? Was it often stuck below a high? How long was the longest wait? Change the test period or leverage and you need to ask those questions again.

## Common questions

### Does zero Ulcer Index mean zero risk?

It means those readings did not record a corresponding closing drawdown. The account could still have fallen during a bar, and it can fall later. UI only sees the records used in the calculation.

### Can Ulcer Index be a trading signal?

A UI reading doesn't tell you which way price goes next. To use it for filtering trades, first decide what value allows a buy, when you calculate it and when you sell. Then check the complete set of rules against historical data.

### Is Ulcer Performance Index the same as Ulcer Index?

No. UI measures drawdown, while Ulcer Performance Index relates return to UI. Check the full name, return baseline and period before comparing numbers from different reports.

## Trace a long recovery back to the trades

If an account is taking a long time to recover, look through the trades from that period. Is the position still open? Did it sell when it should have? How far was the fill price from what you expected? Once you've checked support for the strategy and exchange, you can try it in an exchange Demo environment with AlgoRover Live and inspect orders, fills and positions. Match those trades with the full account equity history to understand why the recovery took so long.

[Inspect drawdown-period execution with AlgoRover Live](https://www.algorover.ai/en/live/?utm%5Fsource=algorover%5Fblog&utm%5Fmedium=article%5Fcta&utm%5Fcampaign=ulcer-index-explained&utm%5Fcontent=inspect-drawdown-trades)

## Continue reading

[Compare annual return with the deepest loss using the Calmar ratio](https://blog.algorover.ai/calmar-ratio-explained/)

[Separate overall variation from shortfalls with Sharpe vs Sortino](https://blog.algorover.ai/sortino-vs-sharpe-ratio/)