Ulcer Index Indicator: Complete Trading Guide
Ulcer Index measures downside volatility by calculating the depth and duration of drawdowns from recent highs, focusing specifically on the risk of loss.

Settings — UI
| Category | volatility |
| Default Period | 14 |
| Best Timeframes | D1, W1 |
Most volatility indicators treat upside and downside moves equally. The Ulcer Index doesn't — it only cares about drawdowns, making it one of the most honest risk measurement tools available to retail traders. Developed by Peter Martin in 1987, it quantifies exactly what keeps traders up at night: how far price has fallen from its recent peak and how long it stays down.
Key Takeaways
- The math is straightforward once you strip away the notation. Over a default 14-period lookback, the indicator tracks ho...
- A rising Ulcer Index is not automatically a sell signal — this is where most traders misread it. Rising UI simply means ...
- The default 14-period setting was designed for daily charts, and that's where it performs best. On D1 and W1 timeframes,...
1How the Ulcer Index Calculates Downside Risk
The math is straightforward once you strip away the notation. Over a default 14-period lookback, the indicator tracks how far the current close sits below the highest close in that window. Each day's percentage drawdown from that peak gets squared — squaring penalizes larger drops disproportionately, which reflects real trading psychology. Those squared values are averaged, then the square root is taken to return the result to percentage terms.
For example: if EUR/USD closes at 1.0800 and the 14-period high was 1.1000, the drawdown is roughly 1.82%. Square that: 3.31. Do this across all 14 bars, average the results, take the square root — that's your Ulcer Index reading for that candle. A reading of 5 means price has been averaging about 5% below its recent peak across the lookback window. A reading of 0.5 means barely any sustained drawdown at all.
The unbounded range matters here. Unlike RSI capped at 100, UI can theoretically climb without limit during extended bear trends. In practice, readings above 10 on daily charts signal serious, sustained selling pressure.
2Reading Ulcer Index Signals: What High and Low Values Actually Mean
A rising Ulcer Index is not automatically a sell signal — this is where most traders misread it. Rising UI simply means drawdowns from recent highs are deepening or lasting longer. The signal comes from context and extremes.
Low UI readings (near 0–2 on D1) indicate price is holding close to recent highs with minimal pullback depth. This is the environment where trend-following entries have the best risk profile. When UI stays compressed below 2 for multiple weeks while price grinds higher, that's a clean uptrend worth trading.
Spike readings are more actionable. A UI that surges from 2 to 8 within a week signals a sharp, sustained breakdown — not a buying opportunity in most cases, but a warning to tighten stops or reduce position size. The more useful signal comes when UI peaks and begins rolling over while price is still declining. That divergence — UI falling while price makes new lows — suggests the drawdown intensity is diminishing, often preceding a reversal.
In my experience, the most reliable setups appear when UI drops back below its 14-period moving average after a spike. That rollover, combined with price reclaiming a key level, gives a higher-probability long entry than price action alone.
“The default 14-period setting was designed for daily charts, and that's where it performs best.”
3Optimal Ulcer Index Settings for Different Timeframes
The default 14-period setting was designed for daily charts, and that's where it performs best. On D1 and W1 timeframes, 14 periods captures roughly two to three weeks of trading behavior — enough to identify meaningful drawdown cycles without over-smoothing.
For weekly charts (W1), extending the period to 20–26 captures quarterly drawdown patterns, which is useful for position traders holding trades for months. A 26-period UI on W1 effectively measures half a year of downside behavior.
On intraday charts below H4, the Ulcer Index loses much of its edge. Sub-daily noise inflates drawdown readings artificially, producing frequent spikes that don't correspond to genuine trend deterioration. If you must use it on H1, reduce the period to 7–9 and treat readings as context only, not entry triggers.
The sweet spot for most active swing traders: 14-period on D1, checked weekly. Set a threshold line at 5.0 — above it, you're in elevated-risk territory and position sizing should reflect that. Below 2.0, conditions favor trend entries with wider initial stops.
4Applying the Ulcer Index in a Real Trade Setup
Surprising fact: the Ulcer Index was originally designed to evaluate mutual fund performance, not to time entries. Its migration into technical analysis happened because the underlying logic — penalizing sustained drawdowns over brief dips — translates directly to trade management.
Here's a concrete setup from Q3 2023 on Gold (XAUUSD) daily chart. After the August peak near $1,950, price pulled back steadily through September. The 14-period UI climbed from 1.8 to 7.4 over five weeks — a clear signal that drawdown depth was expanding. Traders who shorted the first UI spike got caught in a whipsaw. The actual opportunity came in early October when UI peaked at 7.4 and began declining while price made one final marginal low around $1,820. That UI divergence, with price near a major support zone, preceded a $150 rally over six weeks.
The entry rule: wait for UI to print a lower reading than the previous bar after a spike above 5. Place the stop below the recent swing low. Target the prior high that created the drawdown. Risk-reward on that Gold setup was approximately 1:3.2.
Using Pulsar Terminal's multi-level SL/TP tools directly on the MT5 chart, you can set your initial stop at the swing low and a trailing stop that activates once UI drops back below 3, locking in gains as the drawdown stress fades. The real-time analytics panel makes it easy to monitor UI thresholds without switching between windows.
Top Brokers

About the Author
Daniel Harrington
Senior Trading Analyst
Daniel Harrington is part of the Pulsar Terminal team, where he leads the blog and editorial content. 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.

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.
Use This Indicator
Use This Indicator — UI
Advanced charting and real-time UI analysis on MetaTrader 5.
Get Pulsar Terminal