HomeAll resourcesTechnical analysisUlcer index indicator: what it measures and how traders use it

Ulcer index indicator: what it measures and how traders use it

Hands framing stacks of coins and US dollar banknotes on an office desk, illustrating savings, investment growth, and personal finance planning.

The ulcer index helps traders assess downside risk by focusing on drawdowns rather than total volatility. This guide explains how it works, how it’s calculated and how traders use it to assess risk alongside other technical indicators.

What is the ulcer index?

The ulcer index is a technical indicator that measures downside risk by quantifying the depth and duration of price drawdowns over a defined look-back period. Developed by Peter Martin and Byron McCann and published in their 1989 book The Investor's Guide to Fidelity Funds, the indicator was designed to capture a specific type of risk: not short-term price movement in both directions, but the experience of holding through sustained losses below a prior peak.

Unlike standard deviation, which treats upside and downside price movements equally, the ulcer index only focuses on drawdowns. It rises when price spends time below a recent high, and rises further when the decline is deeper or lasts longer. It then falls back toward zero when price recovers to new highs. A high ulcer index reading signals significant drawdown stress. A low reading signals that price has remained close to its recent peaks. The indicator’s name reflects its original purpose: measuring the discomfort of watching a position lose value.

The ulcer index measures historical drawdown behaviour, not future risk. A low reading based on past price data does not guarantee that future drawdowns will be limited. Past performance is not a reliable indicator of future results.

How is the ulcer index calculated?

The ulcer index uses a multi-step calculation that turns drawdown depth and duration into a single readable number. This can help traders compare downside risk across instruments and time periods.

The formula

The ulcer index uses a three-step calculation over a look-back period. The default setting is usually 14 periods.

Step Calculation What it shows
1 Drawdown(i) = ((Close(i) − Max Close over N periods) / Max Close over N periods) × 100 The percentage drawdown from the highest close in the look-back period
2 Squared Average = Sum of [Drawdown(i)²] / N The average of the squared drawdowns
3 Ulcer index = √(Squared Average) The final ulcer index reading

Because drawdowns are always zero or negative, squaring them produces positive values. The square root in the final step brings the result back to a scale comparable with the original percentage drawdown figures.

Worked example

Assume a five-period look-back. Over the most recent five sessions, the highest close was 500. The closing prices and resulting drawdowns are:

Day 1: Close 490 → Drawdown = ((490 − 500) / 500) × 100 = −2% Day 2: Close 480 → Drawdown = ((480 − 500) / 500) × 100 = −4% Day 3: Close 475 → Drawdown = ((475 − 500) / 500) × 100 = −5% Day 4: Close 485 → Drawdown = ((485 − 500) / 500) × 100 = −3% Day 5: Close 500 → Drawdown = ((500 − 500) / 500) × 100 = 0%
  • Squared drawdowns: 4 + 16 + 25 + 9 + 0 = 54.
  • Squared average = 54 / 5 = 10.80.
  • Ulcer index = √10.80 = 3.29.

If the subsequent close were 510, a new high, the drawdowns in the look-back window would begin to reset and the ulcer index would drop sharply.

Using the ulcer index on a price chart

The ulcer index is typically displayed as a separate sub-panel below the price chart. It oscillates between zero, where price is at or above all recent closes in the look-back window, and higher values that reflect the severity of the current or recent drawdown. There is no fixed scale. The absolute value of the ulcer index depends on the instrument’s price level and volatility, so readings are most meaningful when compared over time on the same instrument or when used to compare relative drawdown risk between similar instruments.

Past performance is not a reliable indicator of future results.

How the ulcer index works in trading

Understanding how to read and apply the ulcer index can help turn it from a theoretical measure into a practical trading tool.

Past performance is not a reliable indicator of future results.

Possible ulcer index settings for different trading styles

The ulcer index’s look-back period directly affects how quickly the indicator responds to new drawdowns and recoveries. Traders often match the setting to their timeframe and trading style.

Setting Typical use Main benefit Main limitation
7 periods Short-term and intraday trading Responds quickly to changing drawdown conditions Can produce noisier readings
14 periods Swing and position trading Balances responsiveness and stability May still react to short-term price shocks
28 periods Longer-term analysis Smooths short-term noise and highlights broader drawdown behaviour Responds more slowly to recoveries and new drawdowns

Core ulcer index trading strategies

The ulcer index is most useful when its drawdown readings are combined with price-based signals. This allows traders to place the indicator in context rather than treating it as a standalone entry tool.

  • Drawdown recovery entry: after a significant drawdown, some traders watch for the ulcer index to peak and start falling as price begins to recover. A declining ulcer index, higher lows and a move back towards resistance may suggest drawdown pressure is easing. Traders may then look for a separate entry trigger, such as a support bounce, moving average crossover or bullish candlestick reversal.
  • Low-ulcer trending environment: a low ulcer index, relative to recent history, suggests price is staying close to recent highs with limited drawdown. This may support trend-following approaches that use signals such as moving average crossovers, MACD or RSI. The ulcer index doesn’t confirm direction, but it can add context to the trend signal.
  • Position management: for open positions, the ulcer index can help show whether drawdown stress is rising or easing. A rapidly rising reading may prompt a review of stop-loss levels or position size. A falling reading may suggest drawdown pressure is easing, reducing the urgency to exit.
  • Instrument comparison: traders can compare ulcer index readings across similar instruments over the same period. All else being equal, a lower reading suggests the instrument has experienced less drawdown stress. This is most useful when comparing markets in the same asset class or sector.
The ulcer index measures drawdown risk, not trade direction. It should be used alongside tools that show trend context and potential entry or exit points. Used alone, it shows how much stress a position has experienced – not what action to take.

Combining the ulcer index with other indicators

Pairing the ulcer index with directional and momentum indicators helps address its main limitation: it measures risk levels, but does not generate directional trade signals on its own.

The ulcer index’s value comes from what it adds to other indicators, not what it provides on its own. Combining its drawdown-focused perspective with directional tools, such as moving averages for trend and RSI or MACD for momentum, allows traders to assess both the quality of an opportunity and the risk environment around it.

Advanced ulcer index techniques

Beyond its standard applications, the ulcer index can be used in more nuanced ways to assess drawdown dynamics and relative risk.

  • Ulcer index divergence: Divergence between price and the ulcer index can suggest a shift in drawdown dynamics.
  • Bullish divergence: If price makes a new low but the ulcer index makes a lower high, the latest decline may involve less drawdown pressure than the previous one.
  • Fragile recoveries: If price starts to recover but the ulcer index stays elevated, the drawdown may not be fully resolved.
  • Multi-timeframe analysis: Using the ulcer index across different timeframes can help show whether drawdown stress is short term or more sustained.
  • Daily versus weekly readings: A high daily reading with a low weekly reading may suggest short-term weakness within a healthier longer-term trend.
  • Broader drawdowns: If both daily and weekly readings are elevated, the drawdown may be wider and more persistent.
  • Percentile ranking: Because the ulcer index has no fixed scale, ranking it against historical readings can make it easier to interpret.
  • High and low percentiles: A 90th-percentile reading suggests unusually high drawdown stress, while a 10th-percentile reading suggests unusually low drawdown stress.

Risk management with the ulcer index

The ulcer index has a natural role in risk management because it measures downside risk rather than total volatility.

  • Position sizing: The ulcer index can help traders adjust exposure based on current drawdown conditions.
  • Higher readings: An elevated ulcer index may signal sustained downside, which some traders use as a cue to reduce position size.
  • Lower readings: A lower reading may suggest the instrument is holding closer to recent highs, which some traders may use to reassess exposure.
  • Stop-loss calibration: The ulcer index can provide a reference for typical drawdown size when setting stop-loss distances.
  • Avoiding premature exits: Stops set tighter than typical drawdown levels may be triggered by normal price moves.
  • Wider drawdown behaviour: Instruments with persistently high ulcer index readings may need more room than those with consistently low readings.
  • Stop-loss risk: Stop-loss orders aren’t guaranteed. Guaranteed stop-loss orders incur a fee if activated.
  • Portfolio monitoring: Applying the ulcer index to portfolio returns can show how much time the portfolio is spending below its recent peak.
  • Rising portfolio readings: A rising portfolio-level ulcer index may prompt a review of allocation, hedging or overall exposure.
  • Falling portfolio readings: A falling reading may suggest diversification or position changes are reducing overall drawdown stress.

FAQ

What is the ulcer index?

The ulcer index is a technical indicator that measures the depth and duration of price drawdowns over a defined period. Developed by Peter Martin, it calculates the square root of the average of squared percentage drawdowns from the period’s highest close. Unlike volatility measures based on standard deviation, the ulcer index only considers downside price movement. It rises when price falls below a recent peak and falls back toward zero when price recovers. Traders use it to assess drawdown risk, compare instruments and filter trade entries.

What is a good ulcer index reading?

There is no universally good or bad ulcer index reading because the indicator’s scale depends on the instrument’s price level and volatility. Readings should be interpreted in relative terms and compared with the instrument’s own historical range. For a given instrument, a reading near multi-month lows indicates limited drawdown stress and a price close to recent highs. A reading near multi-month highs indicates significant ongoing drawdown. Percentile ranking, which compares the current reading with its historical distribution, is a useful way to standardise interpretation across different instruments.

What is the difference between the ulcer index and standard deviation?

Standard deviation measures total price volatility, treating upside and downside price movements equally. The ulcer index measures only downside volatility, focusing specifically on drawdown depth and duration. An instrument can have high standard deviation because of strong upside moves with limited drawdowns. In that case, the ulcer index may stay low even though standard deviation is elevated. The ulcer index is often used when the specific concern is loss risk rather than total price variability.

What is the Martin ratio?

The Martin ratio, also called the Ulcer Performance Index, is a risk-adjusted return measure calculated as: Martin ratio = (Return − Risk-Free Rate) / Ulcer Index. It assesses how much return is generated per unit of downside risk experienced, as measured by the ulcer index. A higher Martin ratio indicates more efficient return generation relative to drawdown stress. It is used alongside the Sharpe ratio in strategy evaluation. Its main distinction is that it specifically penalises strategies that achieve returns through deep or prolonged drawdowns.

What is the default period for the ulcer index?

The most commonly used look-back period is 14 periods. On a daily chart, this covers approximately two to three weeks of trading data. Some traders use shorter periods, such as seven days, for more responsive readings. Others use longer periods, such as 28 days, for a smoother view of drawdown behaviour. The appropriate period depends on the trading timeframe and the specific application. Shorter periods respond faster to new drawdowns but produce noisier readings.

Can the ulcer index be used for intraday trading?

Yes. The ulcer index can be applied to any timeframe, including intraday charts. On shorter timeframes, it measures drawdowns within the session or over recent intraday candles rather than multi-day or multi-week periods. On intraday charts, the ulcer index is most useful as a position management tool. Rising intraday readings indicate that a held position is experiencing increasing drawdown relative to the session high. Falling readings indicate recovery. The interpretation principles are the same as on daily charts, scaled to the shorter timeframe.

Ready to join a leading broker?

Join our community of traders worldwide
1. Create your account2. Make your first deposit3. Start trading CFDs