ULCER TREND SHIFT Trading Guide
Last updated: July 22, 2026
The Ulcer Trend Shift is a quantitative technical analysis tool. ULCER_TREND_SHIFT Optimized to Golden Standard. Improvements:
What does the indicator show?
- Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
- BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
- Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.
Key Settings
- Lookback Length (
length): Controls the calculation period and sensitivity for market detection. - Ulcer Threshold (%) (
threshold): Controls the calculation period and sensitivity for market detection. - Show Shift Signals (
showSignals): Controls the calculation period and sensitivity for market detection. - Show Baselines (
showBaselines): Controls the calculation period and sensitivity for market detection. - Show Info Panel (
showDash): Controls the calculation period and sensitivity for market detection. - Bull Trend Shift (UI Bull > Threshold) (
bullShift): Controls the calculation period and sensitivity for market detection. - Bear Trend Shift (UI Bear > Threshold) (
bearShift): Controls the calculation period and sensitivity for market detection. - Bullish Ulcer Index (
uiBull): Controls the calculation period and sensitivity for market detection. - Bearish Ulcer Index (
uiBear): Controls the calculation period and sensitivity for market detection. - Trend State (
currentTrend): Controls the calculation period and sensitivity for market detection. - Bullish Trend Shift (
bullShift): Controls the calculation period and sensitivity for market detection. - Bearish Trend Shift (
bearShift): Controls the calculation period and sensitivity for market detection. - Market Trend (
currentTrend): Controls the calculation period and sensitivity for market detection.
How to use Strategy Parameters (Condition Source)
Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.
1. Signal Events
bullShift- Bull Trend Shift (UI Bull > Threshold) event signal.bearShift- Bear Trend Shift (UI Bear > Threshold) event signal.bullShift- Bullish Trend Shift event signal.bearShift- Bearish Trend Shift event signal.
2. Filters and Trade Levels
length- Lookback Length value used for structural qualification or thresholds.threshold- Ulcer Threshold (%) value used for structural qualification or thresholds.showSignals- Show Shift Signals value used for structural qualification or thresholds.showBaselines- Show Baselines value used for structural qualification or thresholds.showDash- Show Info Panel value used for structural qualification or thresholds.uiBull- Bullish Ulcer Index value used for structural qualification or thresholds.uiBear- Bearish Ulcer Index value used for structural qualification or thresholds.currentTrend- Trend State value used for structural qualification or thresholds.currentTrend- Market Trend value used for structural qualification or thresholds.
Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.