Systemicbeta

Ultimate Oscillator

systemic:core-uoIndicators

Inputs

NameTypeDescription
Short WindowWhole numberThe number of bars in the short window, over which Buying Pressure and True Range are summed.
Medium WindowWhole numberThe number of bars in the medium window, over which Buying Pressure and True Range are summed.
Long WindowWhole numberThe number of bars in the long window, over which Buying Pressure and True Range are summed.
Short WeightWhole numberThe weight of the short-window average in the final UO value.
Medium WeightWhole numberThe weight of the medium-window average in the final UO value.
Long WeightWhole numberThe weight of the long-window average in the final UO value.
Price HighNumber seriesThe highest price of each bar.
Price LowNumber seriesThe lowest price of each bar.
Price CloseNumber seriesThe closing price of each bar.

Outputs

NameTypeDescription
UONumber seriesThe Ultimate Oscillator at each bar, a value between 0 and 100.

Cost

7
credits per run
1,000
bars

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.

UO=100×4×A7+2×A14+A284+2+1UO = 100 \times \frac{4 \times A_7 + 2 \times A_{14} + A_{28}}{4 + 2 + 1}

Where AnA_n = 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 ValueInterpretation
> 70Overbought territory
50Neutral
< 30Oversold territory

Trading Strategies

1. Classic Divergence Setup

Larry Williams, who created the indicator, recommended a specific divergence strategy:

Bullish Setup:

  1. UO below 30 (oversold)
  2. Price makes lower low, UO makes higher low
  3. UO then breaks above the divergence high

Bearish Setup:

  1. UO above 70 (overbought)
  2. Price makes higher high, UO makes lower high
  3. UO then breaks below the divergence low

2. Overbought/Oversold

ZoneConditionPotential Action
OverboughtUO > 70Watch for bearish divergence
OversoldUO < 30Watch 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
WindowWeightPurpose
7 bars4Quick reaction to price changes
14 bars2Balances sensitivity and smoothness
28 bars1Adds stability, reduces noise

UO vs RSI

AspectUORSI
Windows3 combinedSingle
False signalsFewerMore frequent
ResponsivenessBalancedHigher
ComplexityMore complexSimpler
Weighting4:2:1Equal 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 conditionUO output
Any of High/Low/Close empty on a barEmpty. The bar is skipped completely
The first Long Window bars that have all three pricesEmpty (warm-up)
A flat window where True Range sums to zeroEmpty (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

DimensionStocksCryptoNotes
Popularity5/104/10Respected but overshadowed by simpler oscillators like RSI; Larry Williams legacy gives credibility
Reliability6.5/105.5/10Three windows reduce false signals; crypto volatility still causes whipsaws
Complexity6/106/10Three separate calculations with weights; you need to understand buying pressure
Versatility6/105.5/10Designed for divergence trading; less useful for overbought/oversold alone
Recent Interest4/104/10Steady but not growing; newer traders prefer simpler alternatives
Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5