Ultimate Oscillator
systemic:core-uoIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Short Window | Whole number | The number of bars in the short window, over which Buying Pressure and True Range are summed. |
| Medium Window | Whole number | The number of bars in the medium window, over which Buying Pressure and True Range are summed. |
| Long Window | Whole number | The number of bars in the long window, over which Buying Pressure and True Range are summed. |
| Short Weight | Whole number | The weight of the short-window average in the final UO value. |
| Medium Weight | Whole number | The weight of the medium-window average in the final UO value. |
| Long Weight | Whole number | The weight of the long-window average in the final UO value. |
| Price High | Number series | The highest price of each bar. |
| Price Low | Number series | The lowest price of each bar. |
| Price Close | Number series | The closing price of each bar. |
Outputs
| Name | Type | Description |
|---|---|---|
| UO | Number series | The Ultimate Oscillator at each bar, a value between 0 and 100. |
Cost
0.22 + 0.00601·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Ultimate Oscillator combines buying pressure over three windows (classically 7, 14 and 28 bars) into one oscillator. Using three windows reduces the false signals that are common in single-window oscillators.
Where = sum of Buying Pressure ÷ sum of True Range over the last n bars. The formula shows the classic windows (7, 14, 28) and weights (4, 2, 1). You set all six.
How It Works
flowchart TD
subgraph Input["Price Data"]
H["High"]
L["Low"]
C["Close"]
PC["Prior Close"]
end
subgraph BP["Buying Pressure"]
BPC["BP = Close - min(Low, Prior Close)"]
end
subgraph TR["True Range"]
TRC["TR = max(High, Prior Close) - min(Low, Prior Close)"]
end
subgraph Avg["Three-Window Average"]
A7["7-bar: BP/TR × 4"]
A14["14-bar: BP/TR × 2"]
A28["28-bar: BP/TR × 1"]
end
subgraph Output["Result"]
SUM["Sum weighted averages"]
DIV["÷ 7"]
UO["UO (0-100)"]
end
H & L & C & PC --> BPC & TRC
BPC & TRC --> A7 & A14 & A28 --> SUM --> DIV --> UO
Interpreting UO
| UO Value | Interpretation |
|---|---|
| > 70 | Overbought territory |
| 50 | Neutral |
| < 30 | Oversold territory |
Trading Strategies
1. Classic Divergence Setup
Larry Williams, who created the indicator, recommended a specific divergence strategy:
Bullish Setup:
- UO below 30 (oversold)
- Price makes lower low, UO makes higher low
- UO then breaks above the divergence high
Bearish Setup:
- UO above 70 (overbought)
- Price makes higher high, UO makes lower high
- UO then breaks below the divergence low
2. Overbought/Oversold
| Zone | Condition | Potential Action |
|---|---|---|
| Overbought | UO > 70 | Watch for bearish divergence |
| Oversold | UO < 30 | Watch for bullish divergence |
Why Three Windows?
flowchart LR
subgraph Timeframes["Weighted Contribution"]
T7["7-bar (weight 4)<br/>Short-term sensitivity"]
T14["14-bar (weight 2)<br/>Medium-term balance"]
T28["28-bar (weight 1)<br/>Long-term stability"]
end
| Window | Weight | Purpose |
|---|---|---|
| 7 bars | 4 | Quick reaction to price changes |
| 14 bars | 2 | Balances sensitivity and smoothness |
| 28 bars | 1 | Adds stability, reduces noise |
UO vs RSI
| Aspect | UO | RSI |
|---|---|---|
| Windows | 3 combined | Single |
| False signals | Fewer | More frequent |
| Responsiveness | Balanced | Higher |
| Complexity | More complex | Simpler |
| Weighting | 4:2:1 | Equal across the window |
Advantages
- Three windows — Reduces whipsaws
- Weighted approach — Emphasizes the short term while staying stable
- Buying pressure focus — Measures demand
- Divergence-friendly — Designed for divergence trading
Disadvantages
- Complex calculation — Three separate averages
- Lagging — The longer windows add lag
- Less intuitive — Harder to interpret than RSI
- Strict rules — Original strategy has specific conditions
Further Reading
Missing Data
UO needs High, Low and Close together on every bar it uses. If any one of the three is empty (a weekend, a holiday, a data gap), the whole bar is skipped and its output is empty. The windows count only bars that have all three prices: across a market-closed gap, the sums go straight from the last bar before the gap to the first bar after it. Gaps are never filled. The first UO value needs the longest window to be full, plus one earlier bar for the prior close.
| Bar condition | UO output |
|---|---|
| Any of High/Low/Close empty on a bar | Empty. The bar is skipped completely |
| The first Long Window bars that have all three prices | Empty (warm-up) |
| A flat window where True Range sums to zero | Empty (0 ÷ 0 has no answer) |
Indicator Assessment
The chart below places the Ultimate Oscillator by complexity (how easy it is to understand and use) and reliability (how consistent its signals are across market conditions). Higher points are more reliable. Points further left are less complex.
quadrantChart
title Ultimate Oscillator Assessment
x-axis Low Complexity --> High Complexity
y-axis Low Reliability --> High Reliability
quadrant-1 Complex & Reliable
quadrant-2 Simple & Reliable
quadrant-3 Simple & Unreliable
quadrant-4 Complex & Unreliable
Stocks: [0.60, 0.65]
Crypto: [0.60, 0.55]
Assessment Breakdown
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | 5/10 | 4/10 | Respected but overshadowed by simpler oscillators like RSI; Larry Williams legacy gives credibility |
| Reliability | 6.5/10 | 5.5/10 | Three windows reduce false signals; crypto volatility still causes whipsaws |
| Complexity | 6/10 | 6/10 | Three separate calculations with weights; you need to understand buying pressure |
| Versatility | 6/10 | 5.5/10 | Designed for divergence trading; less useful for overbought/oversold alone |
| Recent Interest | 4/10 | 4/10 | Steady but not growing; newer traders prefer simpler alternatives |