Indicators
Ulcer Index Indicator Explained
How the Ulcer Index measures drawdown depth and duration as the pain-adjusted risk metric, in Setup.Cash.
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.
Related Posts
View allIndicators
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
Acceleration Bands Indicator Explained
How Price Headley's Acceleration Bands widen proportionally to range for momentum breakout entries, in Setup.Cash.
1 min read · 194 words
Indicators
ATR Indicator Explained: Measuring Market Volatility
What Average True Range measures, why it is the backbone of volatility-aware stops and position sizing, and how to use ATR in a Setup.Cash strategy.
2 min read · 355 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.