A stock rallies 8% in two weeks. Then gives it all back and drops another 4% over the next three. Standard deviation for that full period might read as moderate. Symmetric. Calm, even. But you watched the equity curve and felt the opposite of calm. Standard deviation treats a 4% rally and a 4% decline as the same amount of volatility. Your account disagrees.
The Ulcer Index was built specifically for this problem. It only measures downside movement. It penalizes drawdowns that are both deep and prolonged. And it ignores upside moves entirely. Peter Martin and Byron McCann introduced it in their 1987 book “The Investor’s Guide to Fidelity Funds” because they wanted a risk measure that matched the actual experience of holding a position through a decline. The name comes from the stomach condition drawdowns tend to cause.
What the Ulcer Index Measures
The Ulcer Index tracks how far price drops from its recent peak and how long it stays down. Two elements matter: depth and duration. A brief 5% pullback that recovers in two days produces a lower Ulcer Index than a grinding 5% decline that lingers for three weeks. This is the key distinction from maximum drawdown, which only captures depth and ignores time.
The calculation has three steps. First, compute the percentage drawdown from the highest close within the lookback period for each bar. Second, square those drawdowns. Third, take the square root of the average.
The formula:
\text{Percent Drawdown}_i = \frac{\text{Close}_i - \text{Highest Close over } N \text{ periods})}{\text{Highest Close over } N \text{ periods}} \times 100 UI = \sqrt{\frac{\sum_{i=1}^{N} \text{Percent Drawdown}_i^2}{N}}The default lookback is 14 periods. Because drawdowns are negative and then squared, the result is always positive. Higher values mean more pain. A reading near zero means price has been sitting at or near its highs with no meaningful pullback.
Worked Example with Real Data
I ran MSFT through a 14-period Ulcer Index window from March 2 to March 19, 2026. Here are the closing prices:
Mar 2: $398.55. Mar 3: $403.93. Mar 4: $405.20. Mar 5: $410.68. Mar 6: $408.96. Mar 9: $409.41. Mar 10: $405.76. Mar 11: $404.88. Mar 12: $401.86. Mar 13: $395.55. Mar 16: $399.95. Mar 17: $399.41. Mar 18: $391.79. Mar 19: $389.02.
The 14-period highest close is $410.68 (March 5). Every close after that peak produces a negative drawdown percentage. By March 19, MSFT sat 5.28% below that high. The squared drawdowns accumulate because the stock kept drifting lower without reclaiming the peak.
The Ulcer Index for this window: approximately 2.65. That tells you MSFT was experiencing a persistent, grinding decline. Not a crash. Not a spike down and recovery. A slow bleed, which is exactly the type of move that erodes confidence and triggers bad decisions.
Compare that with AAPL over the same window. AAPL’s 14-period high was $264.72, and it closed at $248.96 on March 19. A steeper percentage decline of 5.96%. Its Ulcer Index came in at 3.41, higher than MSFT. Why? Because AAPL started sliding earlier in the window and spent more bars below its peak. The drawdown was both slightly deeper and more persistent.
Standard deviation for both stocks during this stretch was similar. The Ulcer Index separated them because it captured the shape of the decline, not just the magnitude of daily changes.
Why Standard Deviation Gets Risk Wrong
I keep standard deviation on my charts for measuring dispersion, but I stopped using it as a standalone risk metric years ago. The problem is structural. Standard deviation treats every price change equally. A 3% gap up and a 3% gap down contribute the same amount to the calculation. For measuring statistical dispersion, that is correct. For measuring the risk of losing money, it is misleading.
Most traders and portfolio managers care about one direction: down. The Ulcer Index only looks at that direction. It filters out all upside movement and focuses on what actually causes damage. A stock that rallies 20% and then drops 5% has a very different risk profile than one that chops sideways with two 5% drawdowns. Standard deviation might rate them similarly. The Ulcer Index will not.
There is another layer. Standard deviation is memoryless within each bar. It measures the size of individual returns. The Ulcer Index measures the cumulative effect of drawdowns over time. A stock that drops 1% per day for 10 straight days accumulates a much higher Ulcer Index than one that drops 5% once and bounces. The grind matters.
The Ulcer Performance Index
Martin also introduced a risk-adjusted return metric called the Ulcer Performance Index (UPI), sometimes called the Martin Ratio. It works like the Sharpe Ratio but replaces standard deviation with the Ulcer Index in the denominator.
UPI = \frac{\text{Portfolio Return} - \text{Risk-Free Rate}}{UI}Higher values are better. A high UPI means the portfolio generated returns without subjecting the holder to deep or prolonged drawdowns. I find this more useful than the Sharpe Ratio for comparing trend-following strategies, because trend-following tends to produce asymmetric returns. Big gains on trends, small cuts on failures. Standard deviation penalizes the big gains. The Ulcer Index does not.
Connecting Ulcer Index to Volume Analysis
The Ulcer Index tells you how much pain a drawdown is producing. It does not tell you why. For that, you need to look at what is happening inside the bars. This is where Volume Spread Analysis and Weis Wave volume fill the gap.
When the Ulcer Index is rising, you are in an active drawdown. The question becomes: is smart money distributing, or is this just a healthy pullback in a trend? VSA gives you the context. If the drawdown shows wide-spread down bars on increasing volume with closes near the lows, distribution is likely in progress. The Ulcer Index will keep climbing. If instead you see narrow-spread bars on declining volume during the pullback, supply is drying up. The drawdown may be shallow and short-lived.
Weis Wave analysis adds another dimension. During a rising Ulcer Index phase, compare the cumulative volume on the down-wave to the preceding up-wave. If the down-wave carries significantly less volume than the prior up-wave, buyers are likely absorbing supply quietly. That divergence between a rising Ulcer Index and declining wave volume is one of the better re-entry signals I have found for trending stocks.
The combination works both ways. A falling Ulcer Index (recovery toward new highs) paired with weak up-wave volume on the Weis Wave should raise questions about the quality of the rally. Price is recovering but without volume conviction. That pattern often precedes the next drawdown leg.
Practical Rules for Using the Ulcer Index
There is no single threshold for “high” or “low” because the reading depends on the instrument and timeframe. A 14-period Ulcer Index of 5 on SPY would be notable. The same reading on a small-cap biotech stock might be normal Tuesday.
I use relative comparisons rather than absolute levels. Compare the current Ulcer Index to its own history over the past 6-12 months. If the reading is in the top 20% of its range, the stock is experiencing unusual drawdown stress. If it is near zero, price is sitting at or near highs with minimal pullback.
Three practical applications:
First, position screening. When comparing two stocks in the same sector, the one with the lower Ulcer Index over the past 3-6 months has been more stable on the downside. This matters for position sizing. I allocate larger positions to lower-UI names and smaller positions to higher-UI names, all else being equal.
Second, exit warnings. A rising Ulcer Index in a stock you hold means the drawdown is deepening or persisting. If the UI crosses above its 6-month average while historical volatility stays flat, the decline is one-directional. That combination often signals a trend change rather than a routine pullback.
Third, strategy evaluation. Track the Ulcer Index of your equity curve, not just the instruments you trade. If your system produces a UI above 8-10 on a rolling basis, you are experiencing drawdowns that most traders cannot sit through, regardless of the long-term edge.
Common Mistakes with the Ulcer Index
The first mistake is using it as an entry signal. The Ulcer Index is a risk measurement tool, not a timing tool. A high reading means the stock is in a drawdown. It does not tell you the drawdown is over. Buying simply because the UI is elevated is like buying a stock because its maximum drawdown is large. The pain might continue.
The second mistake is comparing Ulcer Index values across different asset classes without adjusting context. A bond fund with a UI of 3 is under severe stress. A technology growth stock with a UI of 3 is barely pulling back. Always compare within the same category.
The third mistake is ignoring the lookback period. The default 14-period window works well for daily charts and swing-length positions. For longer-term portfolio analysis, 50 or even 100 periods gives a better picture of structural drawdown behavior. A 14-period UI can drop to zero quickly once price makes a new high, even if the stock just recovered from a brutal 30% decline. Extending the lookback prevents that recency bias.
Some traders try to smooth the Ulcer Index with a moving average. This is usually unnecessary. The squaring and averaging in the formula already produce a smoother output than raw drawdown measurements. Adding another smoothing layer introduces lag without much benefit.
Where the Ulcer Index Falls Short
The Ulcer Index measures realized drawdown pain. It is backward-looking by design. It cannot warn you about an upcoming decline. It can only tell you that one is in progress or has recently occurred. For forward-looking volatility expectations, you need implied volatility or Bollinger Band Width compression signals.
It also struggles with gap risk. A stock that gaps down 15% on earnings will spike the Ulcer Index in a single bar. But the nature of that risk (overnight, event-driven, non-repeatable) is different from the slow grinding decline the Ulcer Index was designed to capture. The reading is technically correct but contextually misleading. Event-driven gaps inflate the UI for the full lookback period even if price stabilizes immediately after.
Finally, the Ulcer Index says nothing about recovery speed. Two stocks can have identical UI readings for very different reasons. One might be in a slow, steady decline. The other might have crashed and partially recovered. The squared-average math treats both patterns similarly if the net drawdown percentages align. Pairing the UI with a simple measure of how many bars price has spent below the lookback high helps distinguish between the two.
Choosing the Right Drawdown Lens
The Ulcer Index fits a specific gap in the risk measurement toolkit. Standard deviation measures total variability. Maximum drawdown measures the worst single peak-to-trough decline. The Ulcer Index measures the ongoing, cumulative experience of being underwater. It captures what the other two miss: time spent in pain.
For active traders managing individual positions, the primary value is in screening and position sizing. For system developers evaluating strategy equity curves, the UPI is arguably a better fitness metric than the Sharpe Ratio because it punishes exactly the behavior that causes traders to abandon systems. If your strategy produces great returns but a Ulcer Index of 12 on the equity curve, most people will not stick with it long enough to collect those returns.
That is the real insight behind the name. It is not about stomachs. It is about staying power.
Educational content only. Not investment advice. Trading involves risk. You are responsible for your decisions.
