Ulcer Index: Peter Martin's Downside Risk Indicator (Named for a Reason)
Ulcer Index measures downside volatility by calculating the depth and duration of drawdowns from recent highs, focusing specifically on the risk of loss.

Daniel Harrington
Senior Trading Analyst · MT5 Specialist
☕ 21 min read
Settings — UI
| Category | volatility |
| Default Period | 14 |
| Best Timeframes | D1, W1 |
Most volatility indicators treat a 200-pip rally and a 200-pip crash the same way. Standard deviation does not care which direction the move goes — up or down, it is all just "volatility." But you care. Your account balance cares. And your stress level definitely cares. Peter Martin understood this when he created the Ulcer Index in 1987 alongside Byron McCann, publishing it in their book The Investor's Guide to Fidelity Funds. The name is not accidental — it measures the kind of price action that gives traders stomach ulcers: drawdowns. Not volatility in general, not upside moves that make you feel clever, but specifically the depth and duration of declines from recent highs. The deeper the drawdown and the longer it takes to recover, the higher the reading. Martin also developed the Ulcer Performance Index (UPI), a risk-adjusted return measure that many quantitative analysts now prefer over the Sharpe Ratio. This guide covers the math, the practical applications, and why an indicator designed for mutual fund investors in the 1980s turns out to be surprisingly useful for forex traders today.
Key Takeaways
- Peter Martin was not a Wall Street quant or a hedge fund manager. He was an astronomer — a physicist by training who spe...
- The Ulcer Index calculation is straightforward once you understand the intuition. Every step serves a specific purpose i...
- The Ulcer Index by itself tells you how painful an investment is to hold. But pain alone is not the whole story. An inst...
1Peter Martin and the Name That Makes Traders Wince
Peter Martin was not a Wall Street quant or a hedge fund manager. He was an astronomer — a physicist by training who spent his career at the University of Toronto studying interstellar dust. But like many scientists who discover markets, he brought a rigorous, measurement-obsessed mindset to investing. In the mid-1980s, Martin was evaluating mutual funds for his own portfolio and grew frustrated with the available risk metrics. Standard deviation was the dominant measure, and it told him almost nothing useful about what actually mattered: how much money he could lose and how long it would take to recover.
The problem with standard deviation as a risk measure is fundamental. It treats a 5% gain and a 5% loss as identical amounts of "risk." Mathematically elegant, practically absurd. No investor has ever lost sleep over a 5% gain. No one calls their broker in a panic because their portfolio went up too much. What causes stress — what causes actual ulcers — is watching your account decline from a peak and wondering when (or whether) it will recover.
Martin wanted a number that captured that specific experience. Not abstract volatility, but the visceral pain of drawdowns. He designed the Ulcer Index to measure exactly two things: how deep prices fall from their recent highs, and how long those declines persist before recovery. The squaring mechanism in the formula is deliberate — a 20% drawdown does not register as twice as bad as a 10% drawdown. It registers as four times as bad. This matches the psychological reality that deeper drawdowns are disproportionately more stressful and financially damaging.
Martin and his colleague Byron McCann published the indicator in their 1989 book The Investor's Guide to Fidelity Funds. The original audience was mutual fund investors comparing Fidelity's product lineup — people who bought and held, never shorted, and whose primary concern was "how much can I lose if the market drops?" This long-only origin is important because it explains a characteristic of the indicator that confuses some forex traders: the Ulcer Index only measures downside risk from a long perspective. It does not care about upside volatility at all. A market that rallies 500 pips in a straight line produces an Ulcer Index reading of zero.
The name itself deserves a moment. Martin chose "Ulcer Index" deliberately. In an era when financial metrics had dry, forgettable names — Treynor Ratio, Sharpe Ratio, Jensen's Alpha — he wanted something that immediately communicated what the number meant emotionally. When someone tells you an investment has an Ulcer Index of 15, you instinctively understand that holding it is unpleasant. When another investment has a UI of 3, you know it lets you sleep at night. No explanation needed, no textbook required. It is arguably the best-named indicator in all of technical analysis. (The only real competition is the "Death Cross," which at least tries.)
The indicator stayed relatively obscure for decades, used mainly by quantitative analysts and fund evaluators. It never achieved the mainstream popularity of RSI or MACD, partly because it does not generate buy and sell signals in the traditional sense. It is a risk measurement tool, not a timing tool. You do not look at the Ulcer Index and decide to go long or short today — you look at it and decide whether a particular instrument or strategy is worth holding at all given its drawdown characteristics.
That said, its influence has grown steadily. Morningstar includes it in their fund analysis toolkit. Several portfolio optimization platforms now offer Ulcer Performance Index (UPI) optimization alongside traditional mean-variance approaches. And in the forex world, where traders face leveraged drawdowns that can wipe accounts, the Ulcer Index provides information that standard volatility measures simply do not capture. A pair might have moderate ATR and reasonable standard deviation but still produce deep, prolonged drawdowns that destroy overleveraged accounts. The UI reveals that pattern; ATR does not.
Martin continued refining the indicator and its applications throughout his career. His original website at tangotools.com still hosts the definitive explanation of the mathematics and philosophy behind the UI — a relic of the early internet that remains one of the clearest technical analysis resources ever written. The fact that an astronomer wrote it probably explains the clarity.
2Ulcer Index Formula: Measuring Drawdown Depth and Duration
The Ulcer Index calculation is straightforward once you understand the intuition. Every step serves a specific purpose in quantifying "how bad are the drawdowns."
Step 1 — Percentage Drawdown for each bar
For each period in your lookback window, calculate how far the close is below the highest close over the last N periods (default N = 14):
Percentage Drawdown = ((Close - Highest Close over N periods) / Highest Close over N periods) x 100
If the current close IS the highest close, the percentage drawdown is zero. If the current close is below the recent peak, the value is negative. The point is simple: how much has price declined from its recent best level?
This is fundamentally different from how ATR or standard deviation work. Those indicators measure the size of individual bar movements. The Ulcer Index measures the cumulative decline from a peak — which means it captures not just the size of the drop but its persistence. A market that drops 3% and immediately recovers registers a brief, small drawdown. A market that drops 3% and stays there for eight bars registers a prolonged drawdown, even though the single-bar volatility was identical.
Step 2 — Square the drawdowns and average them
Squared Average = Sum of (Percentage Drawdown squared) over N periods / N
The squaring does three important things. First, it converts all values to positive numbers, since drawdowns expressed as percentages below the peak are negative. Second, and more importantly, it penalizes large drawdowns disproportionately. A 10% drawdown contributes 100 to the sum. A 20% drawdown contributes 400 — four times as much, not two times. This aligns with financial reality: a 20% drawdown requires a 25% gain to recover, while a 10% drawdown only needs an 11.1% gain. The mathematical asymmetry of losses is baked into the formula. Third, squaring then averaging creates a measure analogous to variance in statistics, but applied only to the downside.
Step 3 — Take the square root
Ulcer Index = Square Root of Squared Average
The square root brings the number back to the same scale as the original percentage drawdowns, similar to how standard deviation is the square root of variance. The result is a single number expressed in percentage terms. An Ulcer Index of 5 means the average drawdown experience over the lookback period was roughly equivalent to a 5% decline from highs, weighted toward the deeper drawdowns.
Interpreting the number
The Ulcer Index is always zero or positive. A reading of zero means price closed at a new high on every single bar in the lookback window — no drawdowns at all. In practice, this happens during powerful, uninterrupted rallies and is rare outside of strong trending conditions.
General interpretation thresholds:
| UI Reading | Interpretation |
|---|---|
| 0 - 3 | Low drawdown risk. Price is near highs with minimal pullbacks. Comfortable holding environment. |
| 3 - 7 | Moderate drawdown risk. Normal market conditions with typical retracements. |
| 7 - 12 | Elevated risk. Significant drawdowns occurring. Position sizing should be conservative. |
| 12+ | High stress zone. Deep and prolonged drawdowns from highs. The instrument is punishing holders. |
Martin himself suggested that a value above 5 warrants attention, and above 10 indicates serious drawdown stress. These thresholds were calibrated for mutual funds on weekly data. For leveraged forex trading, you may want to set your own thresholds lower — a UI of 8 on an unleveraged stock portfolio is uncomfortable, but a UI of 8 on a 50:1 leveraged forex position is a potential account killer.
Why the lookback period matters more than you think
The default 14-period lookback is a reasonable general-purpose setting, but it dramatically affects what the indicator shows you. On daily data with a 14-period setting, the UI captures drawdowns over roughly three trading weeks. It will register a week-long pullback but miss a drawdown that develops over two months. On weekly data with 14 periods, you are looking at roughly a quarter of a year — long enough to capture meaningful correction cycles.
Martin recommended weekly data as the primary application. His reasoning: daily data introduces noise from normal intraday volatility that is not really a "drawdown" in the meaningful sense. A pair that drops 50 pips intraday and recovers by the close did not produce a real drawdown for a swing trader. Weekly closes smooth this out and capture only the moves that genuinely affected portfolio value from one weekend to the next.
For forex traders using the UI as a risk filter rather than a timing tool, a 14-period setting on weekly charts provides the most actionable information. For shorter-term applications on daily charts, a 20 or 28-period setting captures more of the drawdown cycle and produces a more stable reading. On anything shorter than daily, the indicator loses much of its meaning because the drawdowns are too brief to represent genuine portfolio risk.

When you realize the Ulcer Index measures exactly how much your portfolio hurts.
“The Ulcer Index by itself tells you how painful an investment is to hold.”
3UPI (Ulcer Performance Index): A Better Sharpe Ratio?
The Ulcer Index by itself tells you how painful an investment is to hold. But pain alone is not the whole story. An instrument with a high Ulcer Index might still be worth trading if its returns are spectacular enough to compensate. This is where the Ulcer Performance Index (UPI) — also called the Martin Ratio — enters the picture, and it is genuinely one of the most underappreciated metrics in quantitative finance.
The formula is simple:
UPI = (Portfolio Return - Risk-Free Return) / Ulcer Index
This looks structurally identical to the Sharpe Ratio, which divides excess return by standard deviation. The only difference is the denominator — and that difference changes everything.
Why the denominator matters
The Sharpe Ratio uses standard deviation as its measure of risk. Standard deviation treats upside and downside volatility equally. If a strategy returns 2% one month and 8% the next, the Sharpe Ratio sees that 6-percentage-point swing as "risky" — even though both months were profitable and you were probably quite happy. The volatility of positive returns is penalized the same as the volatility of negative returns.
The UPI replaces standard deviation with the Ulcer Index, which only measures downside drawdowns. A strategy that produces wildly varying positive returns — 2% one month, 8% the next, 4% the month after — scores beautifully on UPI because it has no drawdowns. The same strategy with a Sharpe Ratio gets dinged for the variation. In a practical sense, the UPI answers the question traders actually ask: "How much return am I getting per unit of drawdown pain?" The Sharpe Ratio answers a different question: "How much return am I getting per unit of overall variation?" For most traders, the first question is far more relevant.
The behavioral finance angle
Research in behavioral finance has consistently shown that investors feel losses roughly twice as intensely as equivalent gains — a phenomenon called loss aversion, documented by Kahneman and Tversky. The Ulcer Index and UPI implicitly incorporate this asymmetry. By measuring only the downside, they align the risk metric with the psychological reality of how humans actually experience market movements. The Sharpe Ratio, by contrast, was designed in an era when modern portfolio theory assumed rational investors who weigh gains and losses equally. We now know that assumption is wrong.
Comparing strategies with UPI
Consider two forex trading strategies over a one-year period:
- Strategy A: 18% annual return, standard deviation of 12%, Ulcer Index of 4
- Strategy B: 22% annual return, standard deviation of 18%, Ulcer Index of 9
Assuming a 5% risk-free rate:
- Strategy A Sharpe Ratio: (18 - 5) / 12 = 1.08
- Strategy B Sharpe Ratio: (22 - 5) / 18 = 0.94
- Strategy A UPI: (18 - 5) / 4 = 3.25
- Strategy B UPI: (22 - 5) / 9 = 1.89
Both metrics prefer Strategy A, but the UPI makes the distinction far more dramatic. Strategy A is not just slightly better on a risk-adjusted basis — it delivers 1.7 times more return per unit of drawdown pain. The Sharpe Ratio underplays this difference because Strategy B's higher standard deviation includes its upside volatility, which is not actually a problem for the trader.
Now imagine a third scenario:
- Strategy C: 25% annual return, standard deviation of 15%, Ulcer Index of 3
Strategy C has higher standard deviation than Strategy A (more overall variation), so its Sharpe Ratio is (25 - 5) / 15 = 1.33. But its UPI is (25 - 5) / 3 = 6.67, which is twice Strategy A's UPI. The difference is that Strategy C's variation comes almost entirely from upside — big winning months interspersed with steady small gains. The drawdowns are minimal. The Sharpe Ratio partly penalizes those big winning months. The UPI correctly recognizes that they are a feature, not a bug.
Where the Sharpe Ratio still wins
The Sharpe Ratio has one advantage the UPI does not: it captures the risk of strategies that are short-biased or market-neutral. The Ulcer Index only measures declines from peaks, which makes it inherently long-biased. A short-selling strategy that profits from market declines would show a low Ulcer Index during its profitable periods (because the portfolio equity is rising) and a high Ulcer Index during losing periods (when the equity draws down). This is the correct behavior. But a market-neutral strategy that oscillates around zero with small losses in both directions might produce a misleadingly low Ulcer Index simply because its drawdowns are shallow — even if the overall performance is mediocre.
For forex traders running directional strategies (which is the vast majority), the UPI is the more meaningful metric. For hedge fund-style strategies with complex long-short exposures, the Sharpe Ratio provides complementary information.
Practical application: ranking your pairs
One immediately useful application of UPI is ranking the currency pairs you trade by risk-adjusted performance. Calculate the return and Ulcer Index for each pair over the past quarter, compute the UPI, and sort descending. The pair at the top is giving you the most return per unit of drawdown stress. If you have a fixed amount of capital to allocate, concentrating it on the highest-UPI pairs is a simple, data-driven approach to capital allocation. It is not a guarantee of future performance, but it systematically favors instruments where your returns are coming with less pain — and less pain means less temptation to abandon the strategy at the worst possible moment.
A word of caution about low-UI environments
A very low Ulcer Index does not mean an instrument is safe. It means the instrument has not experienced significant drawdowns during the measurement period. In a strong trending market, the UI stays near zero right up until the trend reverses — and then it spikes. The UI is descriptive, not predictive. It tells you what has happened, not what will happen next. Combining UI with forward-looking indicators like implied volatility or momentum divergences gives a more complete risk picture than either metric alone.
4Using Ulcer Index to Compare Strategies and Instruments
The Ulcer Index truly shines as a comparison tool. While many indicators help you decide when to enter or exit a trade, the UI helps you answer a different — arguably more important — question: which instrument or strategy should I be trading in the first place?
Comparing currency pairs
Every forex pair has a different drawdown personality. Some pairs trend smoothly with shallow retracements. Others chop violently, producing deep pullbacks that test your conviction and your margin. Standard volatility measures like ATR tell you how many pips a pair moves per day. The Ulcer Index tells you how much of that movement works against you as a long holder.
Here is a practical exercise. Pull up weekly charts for your five most-traded pairs. Apply a 14-period Ulcer Index to each. You will likely find that the pair you think of as "volatile" might not be the one with the highest UI. GBP/JPY, for instance, has famously high ATR — it moves hundreds of pips per week. But its trends, once established, tend to be persistent with relatively shallow retracements. Its Ulcer Index might be moderate during trending phases. Meanwhile, a pair like AUD/NZD with much lower ATR can produce prolonged, grinding drawdowns during range-bound conditions — leading to a higher Ulcer Index despite lower absolute volatility.
This distinction matters for position sizing. If you size positions based on ATR alone (a common practice), you might undersize your AUD/NZD position (because ATR is low) and oversize your GBP/JPY position (because ATR is high). But the actual drawdown experience — the thing that determines whether you hold or fold — is worse on AUD/NZD during range-bound periods. The Ulcer Index captures this reality; ATR does not.
Building a drawdown-aware portfolio
For traders running multiple pairs simultaneously, the Ulcer Index provides a framework for portfolio construction that traditional volatility metrics miss. The goal is not to minimize overall volatility but to minimize the depth and duration of combined drawdowns.
Step 1: Calculate the 14-period weekly Ulcer Index for each pair you trade. Step 2: Check the correlation of drawdown periods between pairs. If EUR/USD and GBP/USD tend to draw down at the same time (which they often do, given their correlation), holding both doubles your effective drawdown exposure. Step 3: Favor combinations where high-UI periods for one pair coincide with low-UI periods for another. This is drawdown diversification, and it is distinct from return correlation diversification.
Two pairs can have low return correlation but high drawdown correlation — both pairs might trend independently most of the time, but both collapse during a risk-off event. The Ulcer Index, tracked over time, reveals these synchronized drawdown patterns that correlation matrices sometimes miss.
Comparing strategies on the same pair
The Ulcer Index is equally valuable for comparing different trading approaches on the same instrument. Suppose you are testing three strategies on EUR/USD daily:
- Strategy 1: Moving average crossover (trend-following)
- Strategy 2: RSI mean-reversion at support/resistance
- Strategy 3: Breakout entries with trailing stops
Each strategy has different return characteristics, different win rates, and different maximum drawdowns. The maximum drawdown number is popular in backtesting, but it only captures the single worst drawdown. The Ulcer Index captures the average drawdown experience across the entire test period. A strategy might have a lower maximum drawdown but a higher Ulcer Index if it produces frequent, moderate drawdowns instead of one large one. For most traders, the frequent moderate drawdowns are actually harder to endure psychologically, because the pain is constant rather than concentrated in one bad period.
Computing UPI for each strategy gives you a single, comparable number for risk-adjusted performance that accounts for the full drawdown experience rather than just the worst case.
Regime-based comparison: trend vs. range
Markets alternate between trending and ranging regimes. A smart application of the Ulcer Index is measuring how it behaves for your strategy during each regime. Plot the UI on a rolling basis alongside a regime indicator like ADX.
During trending regimes (high ADX), a trend-following strategy should produce a low Ulcer Index — shallow drawdowns because you are riding the trend. During ranging regimes (low ADX), the same strategy typically produces a high UI because it gets whipsawed, entering trends that immediately reverse.
Conversely, a mean-reversion strategy tends to produce a low UI during ranging conditions (buying dips that recover) and a high UI during trending conditions (buying dips that keep dipping). By tracking the UI across regimes, you can make informed decisions about when to deploy each strategy — and more importantly, when to sit on the sidelines.
Comparing across asset classes
If you trade multiple asset classes — forex, indices, commodities — the Ulcer Index provides a common language for comparing drawdown risk. A UI of 6 on EUR/USD weekly means the same thing as a UI of 6 on the S&P 500 weekly: both instruments are producing a similar drawdown experience relative to their recent highs. This allows you to allocate capital across asset classes based on which ones are currently offering the most favorable risk profiles.
One nuance: because the UI is calculated in percentage terms, it is already normalized for price level. You do not need to adjust for the fact that EUR/USD trades at 1.08 while the S&P 500 trades at 5,200. The drawdown percentages are directly comparable, which is one of the quiet advantages of the UI over absolute-value metrics like ATR.
The UI as an exit filter
While the Ulcer Index is not traditionally used for entry/exit timing, some traders use a rising UI as an exit filter. The logic: if you are long a pair and the UI starts climbing sharply, it means drawdowns from recent highs are deepening or persisting. This is the market telling you that holding this position is becoming increasingly painful. You can set a threshold — for example, close any long position where the weekly UI exceeds 10 — as a systematic way to exit positions before the drawdown becomes catastrophic. This is not the same as a stop-loss (which triggers at a specific price), but rather a measure of the quality of the price action. You might still be in profit overall but the recent price behavior suggests the trend is deteriorating.
“The Ulcer Index was designed for buy-and-hold mutual fund investors, but it turns out to be remarkably well-suited for forex swing traders and position traders.”
5Ulcer Index for Forex: Measuring the Pain of Holding Positions
The Ulcer Index was designed for buy-and-hold mutual fund investors, but it turns out to be remarkably well-suited for forex swing traders and position traders. The connection is direct: if you are holding a long position for days or weeks, your psychological and financial experience is dominated by drawdowns from the peak equity of that trade. The UI quantifies exactly that experience.
Why forex traders should care about drawdown shape
In forex, leverage amplifies everything. A 2% drawdown on a stock portfolio with no leverage is a rounding error. A 2% drawdown on a forex account running 20:1 leverage is a 40% hit to equity. The Ulcer Index does not know about your leverage, but you can mentally scale the reading. If the UI on weekly EUR/USD is 3, that means the average drawdown from peaks is roughly 3%. At 20:1 leverage, your account experiences that as roughly 60% equity drawdown. Suddenly, a "low" Ulcer Index reading becomes terrifying when you factor in leverage.
This mental exercise is genuinely useful for position sizing. Take the current 14-period weekly UI for your pair, multiply it by your leverage ratio, and ask yourself: "Would I be comfortable with that level of account drawdown?" If the answer is no, reduce your position size until the leveraged drawdown matches your actual risk tolerance. This is a more psychologically accurate approach to position sizing than volatility-based methods that treat upside and downside moves equally.
Daily vs. weekly application in forex
Martin recommended weekly data, and for good reason. Daily data in forex includes noise from session transitions, liquidity gaps during Asian hours, and Friday afternoon position squaring — none of which represent genuine directional drawdowns for a swing trader. Weekly closes filter all of this out and capture only the moves that persisted through a full five-day cycle.
However, daily data has legitimate uses. If you are a shorter-term swing trader holding positions for three to ten days, the daily UI over a 14 or 20-period window captures the drawdown cycle relevant to your holding period. The key is matching the UI timeframe to your actual trading horizon. Using weekly UI to evaluate a strategy that holds trades for two days is meaningless — the UI is measuring drawdowns over a period longer than your holding time.
Recommended pairings:
| Trading Style | Chart | UI Period | Measures |
|---|---|---|---|
| Position trader (weeks to months) | W1 | 14 | Quarter-long drawdown patterns |
| Swing trader (days to weeks) | D1 | 14-20 | Multi-week drawdown experience |
| Short-term swing (2-5 days) | D1 | 10 | Two-week drawdown cycles |
| Day trader | Not recommended | — | UI loses meaning on intraday data |
Practical use case: filtering pairs for swing trading
Before entering a new swing trade, check the 14-period daily Ulcer Index for the pair. If the UI is already elevated (above 7-8), you are looking at an instrument that is currently in a drawdown-heavy environment. Entering a new long position during a period of active drawdowns is swimming against the current. Either wait for the UI to decline (indicating drawdowns are contracting and a new uptrend may be forming), or look for a different pair with a lower UI where conditions favor holding longs.
This is not a timing signal — the UI will not tell you the exact bar to enter. It is a condition filter. Just as you might avoid trading during low-liquidity sessions or during major news releases, you can avoid initiating new longs when the UI signals a hostile drawdown environment. Think of it as checking the weather before going sailing. A high UI is a storm warning — technically you can still go out, but the experience will be unpleasant.
Combining UI with trend indicators
The Ulcer Index works best alongside a trend indicator because it has a blind spot: it stays at zero during uninterrupted uptrends regardless of how overextended the move becomes. Price can be 500 pips above its 200-day moving average, overbought on every oscillator, primed for a correction — and the UI reads zero because there have been no drawdowns yet.
Pair the UI with a simple 50-period moving average on daily charts. When price is above the MA and UI is low (below 3), conditions are favorable for holding or adding to longs. When price is above the MA but UI is rising (above 5), the uptrend is experiencing meaningful retracements — tighten stops or reduce position size. When price is below the MA and UI is high, you are in a downtrend with active drawdowns — no place for new longs.
The crossover moment — when the UI transitions from low to high — often corresponds to the early stages of a trend change. An uptrend that has been producing UI readings near zero for weeks suddenly starts generating readings of 3, then 5, then 8. Each increase means the drawdowns from recent highs are getting deeper or lasting longer. The trend may not be officially "broken" yet by moving average standards, but the quality of the trend is deteriorating. This early warning is one of the UI's most practical contributions to forex trading.
The UI and carry trades
For carry traders (holding positive-swap pairs like USD/TRY or NZD/JPY), the Ulcer Index is particularly relevant. Carry trades are essentially a bet that the interest rate differential will exceed the drawdown from adverse price movement. The UI directly measures one side of that equation. If you are earning 8% annualized swap on a pair but the UI suggests average drawdowns of 12%, the math does not work — you are not being compensated enough for the drawdown risk. Compute the UPI for your carry trade: if UPI is negative (drawdown exceeds carry), the trade is destroying value regardless of the positive swap.
Limitations specific to forex
Two forex-specific limitations deserve mention. First, the UI only measures downside from a long perspective. If you are short EUR/USD, a rally from 1.0800 to 1.0900 is your drawdown, but the UI (calculated on price) would show zero because price is making new highs. To apply the UI to short positions, you need to invert the calculation or apply it to the inverse pair (USD/EUR). Some platforms do this automatically; others do not.
Second, weekend gaps can distort the daily UI. If EUR/USD closes Friday at 1.0850 and opens Monday at 1.0780, that 70-pip gap is a real drawdown, but it happened instantaneously — not through a gradual decline. The UI treats it the same as a 70-pip decline that developed over five days. On weekly data, this is not an issue because the gap is absorbed into the weekly close. On daily data, frequent gap-downs (common around major news events) can inflate the UI beyond what the gradual price action justifies. Keep this in mind when comparing daily UI readings across different periods — a week with a surprise NFP gap will show a higher UI than a week with the same total decline spread evenly across five sessions.
Frequently Asked Questions
Q1What is the Ulcer Index and who created it?
The Ulcer Index is a volatility indicator created by Peter Martin in 1987 and published with Byron McCann in their 1989 book The Investor's Guide to Fidelity Funds. It measures downside risk by calculating the depth and duration of percentage drawdowns from recent price highs over a lookback period (default 14). Unlike standard deviation which treats gains and losses equally, the UI focuses exclusively on declines — the price action that actually causes traders stress. The name is intentional: it measures the kind of drawdowns that give you ulcers.
Q2How is the Ulcer Index different from ATR or standard deviation?
ATR measures the average size of individual bar movements regardless of direction. Standard deviation measures the spread of returns around their mean, treating upside and downside equally. The Ulcer Index measures only the downside — specifically how far and how long price stays below its recent high. An instrument with high ATR but consistent uptrends would have a low Ulcer Index because there are no meaningful drawdowns. The UI also uses a squaring mechanism that penalizes deep drawdowns disproportionately, reflecting the mathematical reality that a 20% loss requires a 25% gain to recover.
Q3What Ulcer Index values are considered high or low?
Peter Martin suggested that UI values below 5 indicate relatively low drawdown stress, while values above 5 warrant attention and above 10 indicate serious downside risk. However, these thresholds were designed for unleveraged mutual fund portfolios. For leveraged forex trading, multiply the UI by your effective leverage to understand the real drawdown impact on your account. A UI of 4 at 25:1 leverage means your account experiences roughly 100% equivalent drawdown stress — far from the comfortable reading the raw number suggests.
Q4What is the Ulcer Performance Index (UPI) and how does it compare to the Sharpe Ratio?
The UPI (also called the Martin Ratio) equals excess return divided by the Ulcer Index, structured identically to the Sharpe Ratio but using UI instead of standard deviation in the denominator. The key difference: the Sharpe Ratio penalizes all volatility including profitable upside swings, while the UPI only penalizes drawdown-related risk. A strategy with wild positive returns but minimal drawdowns scores well on UPI but poorly on Sharpe. For directional forex traders, the UPI typically provides a more meaningful risk-adjusted performance measure because it aligns with what traders actually experience as risk.
Q5Can the Ulcer Index be used for short positions in forex?
Not directly. The Ulcer Index measures drawdowns from price highs, which captures risk for long positions only. A rising market (bad for shorts) produces a UI near zero because price keeps making new highs. To apply the UI to short positions, you have two options: calculate the UI on the inverted pair (use USD/EUR instead of EUR/USD) or apply the formula to your portfolio equity curve rather than the price chart. The equity-based approach is more versatile because it captures drawdown risk regardless of position direction.
Top Brokers

About the Author
Daniel Harrington
Senior Trading Analyst
Daniel Harrington is a Senior Trading Analyst with a MScF (Master of Science in Finance) specializing in quantitative asset and risk management. With over 12 years of experience in forex and derivatives markets, he covers MT5 platform optimization, algorithmic trading strategies, and practical insights for retail traders.
Use This Indicator
Risk Disclaimer
Trading financial instruments carries significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This content is for educational purposes only and should not be considered investment advice. Always conduct your own research before trading.