# Ultimate Oscillator

A Momentum & Oscillators concept (Classic single-name oscillators) in the LuxAlgo Library, with 1 indicator implementation.

## What is the Ultimate Oscillator?

The Ultimate Oscillator is Larry Williams's multi-window momentum oscillator, first published in 1985. Each bar it computes buying pressure, the close minus the true low (the lower of the bar's low and the prior close), then sums buying pressure and true range separately over three lookbacks of 7, 14, and 28 bars, dividing one sum by the other for each window. The three ratios are combined with weights of 4, 2, and 1 and scaled to a 0-100 range.

The blend is the design point. Williams built it because single-window oscillators throw divergences and extremes at different times depending on their length; weighting a short window most heavily but anchoring it with two longer ones was his answer to false [divergence](https://www.luxalgo.com/library/concept/regular-bullish-bearish-divergence/) signals. Readings above 70 and below 30 are the conventional [overbought and oversold](https://www.luxalgo.com/library/concept/overbought-oversold/) zones.

Williams shipped the oscillator with an unusually complete rulebook: a defined setup, a trigger, and exit conditions rather than a bare formula. Coming from the trader who had earlier created Williams %R, it was framed as a repair job on oscillators whose flaws he knew firsthand, and mainstream platform documentation still walks through his original conditions.

The blend changes the oscillator's personality compared with single-window tools such as the [RSI](https://www.luxalgo.com/library/concept/rsi/) or the [stochastic oscillator](https://www.luxalgo.com/library/concept/stochastic-oscillator/). The dominant 7-bar term keeps it responsive, but the 14- and 28-bar sums pull each reading toward the medium-term balance of buying pressure, so extremes arrive less often and divergence arcs run smoother. The level itself is a composite; a middling 55 can hide a hot short window cooled by a soft long one, which is one reason practitioners lean on the divergence-and-breakout recipe rather than the raw number.

## How to Identify Ultimate Oscillator Signals on a Chart

The buy-side sequence is described below; the sell side mirrors it above 70.

1. Plot the oscillator with its standard 7/14/28 lengths and mark the 30 and 70 reference lines.
2. During a decline, wait for a reading below 30; Williams required the setup's first oscillator low to print in that zone.
3. Watch for price to set a lower low while the oscillator sets a higher low, the bullish divergence at the heart of the method.
4. Mark the oscillator's interim peak between those two lows; the actual signal is a break above that peak, not the divergence by itself.
5. Skip setups without the confirmation break, since acting on the divergence alone re-creates the false signals the three-window design was built to filter.

## How it's calculated

The Ultimate Oscillator averages buying pressure against true range over three nested windows and blends them into one 0 to 100 momentum reading.

```
BP_t = C_t - min(L_t, C_(t-1))
TR_t = max(H_t, C_(t-1)) - min(L_t, C_(t-1))
Avg1_t = (Σ BP over the last n1 bars) / (Σ TR over the last n1 bars)
Avg2_t = (Σ BP over the last n2 bars) / (Σ TR over the last n2 bars)
Avg3_t = (Σ BP over the last n3 bars) / (Σ TR over the last n3 bars)
UO_t = 100 × (w1 × Avg1_t + w2 × Avg2_t + w3 × Avg3_t) / (w1 + w2 + w3)

  H_t: high of bar t
  L_t: low of bar t
  C_t: close of bar t
  C_(t-1): close of the prior bar
  t: bar index
  BP_t: buying pressure, close minus true low
  TR_t: true range of bar t
  n1, n2, n3: the three averaging windows (defaults 7, 14, 28)
  w1, w2, w3: window weights (defaults 4, 2, 1)
  Avg1_t, Avg2_t, Avg3_t: buying-pressure ratios over the three windows
  UO_t: Ultimate Oscillator value, 0 to 100
```

Larry Williams' defaults double each window (7, 14, 28) and weight the shortest most (4, 2, 1), so the fast horizon dominates.

Typical overbought/oversold bands are 70 and 30.

Williams' published buy setup also requires a bullish divergence and a break of its intervening high, not the level alone.

## How traders use it

- Through Williams's original rule: a bullish divergence whose first low prints below 30, confirmed by a break above the interim high of the divergence (mirrored above 70 for sells). The confirmation step is integral to the method, not optional.
- As a standard overbought/oversold oscillator with 70/30 thresholds, where the blended windows make extreme readings somewhat less frequent than on a single-length oscillator.
- As a confirmation layer alongside faster [momentum](https://www.luxalgo.com/library/concept/momentum/) tools, since the 28-bar component damps one-bar spikes that fool shorter oscillators.
- As a divergence engine for automated tools: the library's Ultimate Oscillator scripts wrap real-time divergence detection around it because its blended lows are smoother than a single-length oscillator's, and some extend the scan to [hidden divergence](https://www.luxalgo.com/library/concept/hidden-divergence/) for continuation setups.
- As the slow half of an oscillator pair: a fast tool such as the [stochastic RSI](https://www.luxalgo.com/library/concept/stochastic-rsi/) or a short [ROC](https://www.luxalgo.com/library/concept/roc/) times entries, while the Ultimate Oscillator vetoes trades that fight the blended multi-window backdrop.

## Ultimate Oscillator vs Other Momentum Oscillators

- **RSI** (https://www.luxalgo.com/library/concept/rsi/): RSI runs one lookback over smoothed gains and losses, so it reaches overbought and oversold more often. The Ultimate Oscillator blends three windows of buying pressure against true range, trading signal frequency for divergences Williams considered more reliable.
- **Stochastic Oscillator** (https://www.luxalgo.com/library/concept/stochastic-oscillator/): The stochastic locates the close within the recent high-low range, making it the fastest of the common oscillators and the busiest signal generator. The Ultimate Oscillator's weighted 7/14/28 composite reacts more slowly and centers on confirmed divergences rather than %K and %D crosses.
- **MACD** (https://www.luxalgo.com/library/concept/macd/): MACD is unbounded, built from the gap between two EMAs, so it has no fixed overbought line and excels at tracking trend phases. The Ultimate Oscillator is bounded 0-100 with explicit thresholds, suiting extreme-and-divergence logic better than trend following.

## FAQ

### What are the standard settings for the Ultimate Oscillator?

Williams's published construction sums buying pressure and true range over 7-, 14-, and 28-bar windows, divides one sum by the other for each window, weights the three ratios 4, 2, and 1, and normalizes to 0-100. Most charting platforms ship those defaults. The proportions matter more than the absolute numbers: the shortest window dominates the reading while the longer two temper it, so changing one length without rebalancing the others changes the oscillator's character.

### Why does the Ultimate Oscillator use three timeframes?

Because single-lookback oscillators produce divergences and extremes whose timing depends heavily on the chosen length. Williams blended three horizons so the 7-bar window supplies sensitivity while the 14- and 28-bar windows veto extremes that exist only on the short view. That reduces whipsaw rather than eliminating it; blended or not, momentum extremes still fail in strong trends.

### What is buying pressure in the Ultimate Oscillator?

Buying pressure is the close minus the true low, where the true low is the lesser of the bar's low and the prior close. Dividing its sum by the sum of true range asks how much of the available range buyers actually captured, with gaps handled by the true-range adjustment.

### Can the Ultimate Oscillator stay overbought in a strong trend?

Yes. In persistent trends the blended reading can hold near an extreme while price keeps running, and the extreme is partly a strength signal there. That is why Williams's method waits for a divergence plus a confirmation break instead of fading the first stretched reading.

### What do readings around 50 mean on the Ultimate Oscillator?

The 50 area marks balanced buying pressure across the three windows: buyers captured roughly half of the true range on a weighted basis. Some traders use crosses of the midline as a soft bias filter, though Williams's published method centers on the 30 and 70 extremes.

### Is the Ultimate Oscillator good for day trading?

It is bar-based, so the 7/14/28 structure applies unchanged to intraday charts; the proportions, not clock time, are what matter. Overnight gaps feed outsized true-range and buying-pressure values into the sums at the open, so intraday users often confirm extremes against session context before trusting them.

## Implementations in the Library

- Ultimate Oscillator (LuxAlgo, the standard build of the classic formula): https://www.luxalgo.com/library/indicator/ultimate-oscillator/

## Related concepts

- Balance of Power: https://www.luxalgo.com/library/concept/balance-of-power/
- CCI: https://www.luxalgo.com/library/concept/cci/
- Williams %R: https://www.luxalgo.com/library/concept/williams-percent-r/
- True Strength Index: https://www.luxalgo.com/library/concept/true-strength-index/
- Relative Vigor Index: https://www.luxalgo.com/library/concept/relative-vigor-index/
- Awesome Oscillator: https://www.luxalgo.com/library/concept/awesome-oscillator/
- Accelerator Oscillator: https://www.luxalgo.com/library/concept/accelerator-oscillator/
- Gator Oscillator: https://www.luxalgo.com/library/concept/gator-oscillator/
- Elder Ray: https://www.luxalgo.com/library/concept/elder-ray/
- Elder Impulse System: https://www.luxalgo.com/library/concept/elder-impulse-system/

---

Source: https://www.luxalgo.com/library/concept/ultimate-oscillator/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/