Ulcer Index: How to Measure Drawdown Depth and Duration
Need More Help? Book Your FREE Strategy Session With Our Team Today!
We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.
How difficult would it be to stick with a trading strategy that goes almost two years without reaching a new equity high?
In that situation, maximum drawdown alone cannot fully describe the trader’s experience. A loss that is quickly recovered and a difficult stretch lasting several months can demand very different levels of patience, even when the largest decline is identical.
The Ulcer Index is a risk indicator that accounts for the depth and persistence of drawdowns, or declines from previous highs. It helps us examine an aspect of performance that profit or maximum drawdown alone cannot fully capture.
In systematic trading, this information can help us assess how manageable a strategy might be to follow and develop a trading plan that accounts for the challenges we could face.
Let’s look at how the Ulcer Index works, how to calculate it, and the limitations to consider.
What Is the Ulcer Index, and What Does It Measure?
The Ulcer Index, often abbreviated as UI, is a downside risk measure developed by Peter Martin in 1987 and introduced in The Investor’s Guide to Fidelity Funds, coauthored with Byron McCann and published in 1989.
Its name refers to the stress losses can cause investors, particularly when recovery takes longer than expected.
Unlike standard deviation, which measures the dispersion of returns and also captures positive fluctuations, the Ulcer Index focuses on declines from previous highs.
At each observation, it measures how far the investment or account value is below its highest value up to that point. These percentage drawdowns are squared and averaged, and the square root of that average produces the index.
Squaring the drawdowns gives greater weight to deeper declines. Persistence matters because, during an extended period below a previous high, more observations contribute a nonzero drawdown to the calculation.
In general:
- A low value indicates relatively limited drawdowns overall during the period analyzed.
- A high value indicates a greater presence of deep drawdowns, persistent drawdowns, or both.
However, the index does not tell us exactly how many months the longest drawdown lasted. To determine that, we also need to examine how long equity remained below its previous high.
Ulcer Index vs. Maximum Drawdown: What’s the Difference?
Maximum drawdown is the largest decline from a previous equity peak to a subsequent trough during the period analyzed.
It is essential information, but it describes only the worst peak-to-trough loss.
Imagine two strategies:
- The first falls 10% from its peak and then recovers quickly.
- The second experiences the same 10% maximum drawdown but remains below its previous high for many months.
Their maximum drawdown is identical. Their equity paths are different.
The Ulcer Index considers all drawdown observations within the period, helping distinguish between paths that the largest decline alone cannot describe.
It complements maximum drawdown by providing another perspective.
When evaluating a trading system, we can consider three measures together:
| Measure | What It Describes |
|---|---|
| Maximum drawdown | The largest decline from a previous equity peak to a subsequent trough |
| Drawdown duration | The time from the equity peak preceding a decline until that level is recovered |
| Ulcer Index | The overall magnitude of observed percentage drawdowns, with greater weight given to deeper declines |
How to Calculate the Ulcer Index
To calculate the Ulcer Index, we need a series of values recorded at regular intervals, such as daily portfolio values.
In this article, we calculate the Ulcer Index over the entire sample, using the running high from the beginning of that sample for each observation. Some platforms instead display the indicator over a rolling window, often 14 periods. Before comparing results, check the calculation settings.
For a trading system, we use an equity series that includes initial capital, realized trading results, and unrealized profits or losses on open positions, measured at regular intervals. Results should account for trading costs. Looking only at closed trades can miss significant drawdowns that occurred while positions were open.
The calculation has four steps.
1. Identify the Running High
For each observation, find the highest equity value reached up to that point.
If the equity sequence is 100, 95, 90, 105, the running highs are 100, 100, 100, 105.
2. Calculate the Percentage Drawdown
Calculate the drawdown at each observation as follows:
Percentage drawdown = 100 x (current equity – running high) / running high
When equity equals its running high, the drawdown is zero. When equity is below that high, the value is negative.
3. Square the Drawdowns and Calculate Their Average
Square each percentage drawdown and calculate the average, including observations with zero drawdown.
4. Take the Square Root
The square root of that average is the Ulcer Index:
Ulcer Index = square root of the average squared percentage drawdowns
If percentages are entered as 5 to represent 5%, the result uses the same percentage scale.
An Example Comparing Two Strategies
Consider two hypothetical strategies with 12 monthly observations:
| Observation | Strategy A Equity | Strategy B Equity |
|---|---|---|
| 1 | 100 | 100 |
| 2 | 95 | 98 |
| 3 | 90 | 95 |
| 4 | 95 | 92 |
| 5 | 100 | 90 |
| 6 | 103 | 91 |
| 7 | 106 | 93 |
| 8 | 109 | 95 |
| 9 | 112 | 97 |
| 10 | 115 | 99 |
| 11 | 118 | 110 |
| 12 | 120 | 120 |
Both increase from 100 to 120, producing a total return of 20%. Both record a maximum drawdown of 10%, based on the available observations.
However, Strategy A recovers sooner. Strategy B remains below its initial high for more observations.
Applying the formula gives us:
| Measure | Strategy A | Strategy B |
|---|---|---|
| Total return | 20% | 20% |
| Observed maximum drawdown | 10% | 10% |
| Observations below the running high | 3 | 9 |
| Ulcer Index | 3.54 | 5.46 |
Despite having the same total return and maximum drawdown, Strategy B has a higher Ulcer Index.
This does not mean the index predicts future performance. It means that, within this sample, Strategy B experienced more persistent drawdowns.
Almost Two Years Without a New Equity High: A Gasoline Futures Case Study
One example appears in a video we published a few years ago about losing trading strategies and the decisions to make during difficult periods.
In the video, one of our coaches analyzes a bias strategy on RBOB Gasoline futures, based on recurring patterns at specific times of the week.
After an initially favorable period, the system goes through a long stretch without new equity highs, from May 2020 to March 2022.
The historical comparison examines three scenarios:
| Scenario | Total Out-of-Sample Profit | Maximum Drawdown |
|---|---|---|
| Strategy remains active throughout | Approximately $100,000 | Approximately $32,000 |
| Strategy is permanently removed after six months without new highs | Approximately $55,000 | Approximately $20,000 |
| Strategy is paused and reactivated after a new equity high | Approximately $80,000 | Approximately $20,000 |
In the third scenario, the new equity high in March 2022 allows the strategy to be reactivated in April. The video makes clear that the favorable performance afterward was a fortunate outcome, not something that could be counted on to happen again.
This comparison does not prove that a struggling strategy should always remain active. It shows how management rules can affect results and why those rules should be established before losses begin to influence our decisions.
The original video does not calculate the Ulcer Index. The connection is conceptual: an extended period without recovery is one feature of an equity curve that this indicator helps us examine, alongside the depth of its declines.
What Is a Good Ulcer Index Value?
There is no universal threshold that makes an Ulcer Index value good or bad.
The value needs to be interpreted in the context of:
- The historical period analyzed.
- The observation frequency.
- The capital and leverage used.
- The position-sizing rules.
- The return achieved.
A low index value can accompany modest returns. Increasing a strategy’s exposure can also amplify both gains and drawdowns.
For this reason, a lower Ulcer Index does not automatically make a strategy preferable.
Comparisons are most useful when strategies are evaluated with consistent settings, over the same period, and with comparable exposure assumptions.
Observation frequency also matters. Widely spaced data points can miss declines and recoveries occurring between observations. The index can remain relatively stable across reasonably frequent sampling intervals, but that does not eliminate the risk of losing information when observations are too far apart.
How to Use the Ulcer Index in Systematic Trading
At Unger Academy, we emphasize evaluating multiple aspects of a strategy’s performance. An attractive profit figure alone does not describe the challenges we might face in achieving it.
The Ulcer Index can add useful information to that assessment when used alongside other metrics.
Consider It Alongside Return and Maximum Drawdown
The first application is to compare the financial outcome with the path taken to reach it.
A strategy may look attractive because of its final profit while experiencing long periods of difficulty. Another may produce less profit with a smoother equity curve.
The index helps describe that difference, while leaving us to decide which trade-off fits our objectives and risk tolerance.
Examine Drawdown Duration Separately
The Ulcer Index does not replace a review of the equity curve.
It is also useful to identify:
- The longest period spent below a previous equity high.
- How frequently drawdowns occurred.
- The depth reached during each drawdown.
- Any drawdown still ongoing at the end of the sample.
Difficult periods observed in a backtest provide a reference for preparing for live trading. Future drawdowns, however, can be deeper and last longer.
Establish Strategy Management Rules
A high Ulcer Index is not, by itself, sufficient reason to turn off a strategy.
Likewise, a low historical value does not guarantee that a system will continue to perform.
Any rules for pausing and reactivating a strategy should be defined and tested with its characteristics, costs, risk, and role in the overall portfolio in mind.
If a system is paused, its hypothetical performance must still be monitored so that any reactivation conditions can be evaluated.
Evaluate the Overall Portfolio
Strategies that experience difficulties at different times can help produce a smoother portfolio equity curve.
However, the benefit depends on exposure, correlations, and capital allocation. Adding more systems does not automatically produce a lower Ulcer Index.
The analysis should therefore also be performed on the overall portfolio equity curve, because portfolio performance determines the trader’s actual experience.
The Martin Ratio: Connecting Return and the Ulcer Index
To relate return to risk, we can use the Martin ratio, also called the Ulcer Performance Index, or UPI.
Using annualized returns:
Martin ratio = (annualized return – annualized risk-free rate) / Ulcer Index
The ratio expresses the return above the risk-free benchmark per unit of risk measured by the Ulcer Index.
Return and the index must use consistent scales. For example, if return is entered as 10 to represent 10%, the Ulcer Index must also use the corresponding percentage scale.
Compared with other indicators, the main difference is how risk is measured:
| Indicator | Risk Measure Used |
|---|---|
| Sharpe ratio | Standard deviation of returns |
| Sortino ratio | Downside deviation relative to a target return |
| Calmar ratio | Maximum drawdown |
| Martin ratio | Ulcer Index |
None of these ratios captures every characteristic of a strategy on its own.
Limitations of the Ulcer Index
Before using the indicator, we need to consider several limitations.
It describes the past. It does not predict the next drawdown or determine whether a strategy has lost its statistical edge.
It depends on the sample. A favorable period can produce a low value without representing the difficulties that might appear over a longer history.
It requires a properly constructed equity series. For a trading system, cumulative profit starting at zero is not enough: a positive initial capital value is needed. Deposits and withdrawals must be handled so they are not mistaken for strategy gains or losses.
It is affected by capitalization and exposure. Especially in futures trading, the same dollar profit or loss can represent very different percentages depending on initial capital and the number of contracts traded.
It does not directly measure the longest drawdown duration. Different equity paths can produce the same Ulcer Index. We still need to examine the equity curve and individual drawdown episodes.
Ulcer Index FAQ
What Is the Ulcer Index?
The Ulcer Index is a risk indicator calculated as the square root of the average squared percentage drawdowns. It accounts for the depth of declines and their persistence across the observations analyzed.
What Is the Difference Between the Ulcer Index and Maximum Drawdown?
Maximum drawdown measures the largest decline from a previous equity peak to a subsequent trough. The Ulcer Index considers all drawdown observations within the period, giving greater weight to deeper declines.
Does a Low Ulcer Index Mean a Strategy Is Profitable?
No. A strategy can have limited drawdowns and still produce only a modest return. The index needs to be considered alongside return, exposure, and the system’s other characteristics.
Does the Ulcer Index Tell You When to Stop Trading a Strategy?
No. It can contribute to performance analysis, but it is not a standalone rule for pausing a strategy. Trading decisions require criteria established and tested in advance.
Can You Calculate the Ulcer Index for a Trading System?
Yes. Use an equity series with a defined initial capital value, observations at regular intervals, and consistent treatment of costs, open positions, and deposits or withdrawals.
What Is the Martin Ratio?
The Martin ratio, or Ulcer Performance Index, relates the return above the risk-free rate to the Ulcer Index. It helps evaluate return relative to drawdown risk.
Transcription
Need More Help? Book Your FREE Strategy Session With Our Team Today!
We’ll help you map out a plan to fix the problems in your trading and get you to the next level. Answer a few questions on our application and then choose a time that works for you.





