Indicators

Ulcer Index Indicator Explained

How the Ulcer Index measures drawdown depth and duration as the pain-adjusted risk metric, in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-031 min read200 words

Featured image placeholder

/og/setup-cash-og.svg

Peter Martin's Ulcer Index (UI) measures risk the way traders actually feel it: as drawdown. It root-mean-squares the percentage drops from recent highs over the window — deep or long underwater stretches score high; steady advances score near zero, however volatile the up-moves.

How It Works

  • Each bar's percentage drawdown from the window's running high is squared and averaged.
  • Only downside counts: upside volatility doesn't inflate the score.
  • Higher UI = deeper/longer recent pain.

How to Trade It

Use UI to choose what to trade: among a basket, symbols with low UI trend cleanly and suit trend systems. As a portfolio guard, a rising UI on your equity curve (computable in the Indicators Lab) is a principled trigger for cutting size.

Building It in Setup.Cash

Add Ulcer Index in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. See the backtest metrics guide for drawdown context. For the full category overview, see the volatility & statistics library guide.

Volatility indicators qualify trades rather than generate them — backtest your system with and without this filter and compare the drawdowns.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Indicators

Aberration Bands Indicator Explained

How the Aberration system wraps an ATR channel around a typical-price average for classic breakout trading, in Setup.Cash.

2 min read · 204 words

Indicators

ATR Trailing Stop Indicator Explained

How the ATR Trailing Stop ratchets behind price by a volatility multiple, and how to automate it as an exit in Setup.Cash.

1 min read · 198 words

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.