Ultimate Oscillator Calculator
Technical indicators
- Three averages: buying pressure over true range gives 59.24 for 7 periods, 55.76 for 14 and 51.65 for 28.
- Weighting: Larry Williams weights the shortest average four times and the middle one twice: 4 x 0.5924 + 2 x 0.5576 + 0.5165 = 4.0010.
- Scaling: dividing by the total weight 7 and multiplying by 100 gives 57.16 on the 0 to 100 scale.
- Ultimate oscillator result: 57.16, read against the 30 oversold and 70 overbought reference lines.
Single-period oscillators share a flaw: pick a lookback and you inherit its blind spots. A 7-day oscillator whipsaws in ranges; a 28-day one notices turns weeks late. Larry Williams built the ultimate oscillator in 1976 to average the argument away, combining three timeframes of the same measurement so that no single period choice can dominate the signal.
The measurement is buying pressure — how far the close rises above the lower of today's low and yesterday's close — divided by the true range over the same span. Sum both quantities over 7, 14 and 28 periods, take the three ratios, and weight them 4, 2 and 1 before scaling to the familiar 0 to 100 oscillator range.
This calculator takes the six sums. They are more work to gather than a closing price, but any charting platform that exposes buying pressure and true range can produce them, and several publish the component sums directly in data windows.
Worked examples
Ultimate oscillator on a balanced window
(18.6 · 31.4 · 33.9 · 60.8 · 61.2 · 118.5)
| Ultimate oscillator | 57.16 |
| 7-period average | 59.24 |
| 14-period average | 55.76 |
| 28-period average | 51.65 |
Ultimate oscillator on a strong window
(9.4 · 28.9 · 21.6 · 55.3 · 47.8 · 109.6)
| Ultimate oscillator | 35.98 |
| 7-period average | 32.53 |
| 14-period average | 39.06 |
| 28-period average | 43.61 |
Ultimate oscillator on a weak window
(24.75 · 33.1 · 44.2 · 63.75 · 79.6 · 121.4)
| Ultimate oscillator | 71.90 |
| 7-period average | 74.77 |
| 14-period average | 69.33 |
| 28-period average | 65.57 |
Why three timeframes
Williams' insight was that false signals are timeframe-specific. A short oscillator dives below 30 on any three-day dip, crying oversold in the middle of healthy uptrends; a long one stays pinned high through genuine tops. Averaging the three horizons with the shortest weighted most heavily keeps responsiveness while forcing a signal to be at least somewhat confirmed by the slower measures.
The 4-2-1 weighting is the compromise he settled on: the 7-period average contributes four sevenths of the result, the 14-period two sevenths, and the 28-period one seventh. In the first worked example the averages descend from 59.24 through 55.76 to 51.65 — momentum cooling as the window lengthens — and the blend prints 57.16, pulled toward the freshest reading as designed.
| Component | Weight | Share of result |
|---|---|---|
| 7-period average | 4 | 57.1% |
| 14-period average | 2 | 28.6% |
| 28-period average | 1 | 14.3% |
| Total | 7 | 100% |
Buying pressure and true range
Buying pressure for one day is the close minus the minimum of the day's low and the previous close. Using the previous close in the minimum means a gap-up day starts its measurement from yesterday's close, crediting the full overnight push to buyers. True range is the maximum of the high-low span and the two gap spans against the previous close, the Wilder definition used by ATR.
Summing rather than averaging first is deliberate: the ratio of sums weights each day by its true range, so high-range days — the ones where real money moved — count for more in every timeframe. A day with a tiny range contributes almost nothing to either sum, which quietly filters out the dead sessions that distort simpler oscillators.
- Buying pressure can be zero on a limit-down style day but never negative in the standard definition.
- True range sums must cover the same sessions as the buying pressure sums for each period.
- The 28-period sums include the 14- and 7-period sessions; the windows are nested, not separate.
- Readings above 70 and below 30 mark the conventional overbought and oversold zones.
- Williams traded divergences against the oscillator, not bare zone crossings.
Worked examples
Example 1: Buying pressure sum, 7 periods 18.6; True range sum, 7 periods 31.4; Buying pressure sum, 14 periods 33.9; True range sum, 14 periods 60.8; Buying pressure sum, 28 periods 61.2; True range sum, 28 periods 118.5. Ultimate oscillator = 57.16. Supporting values: 7-period average 59.24; 14-period average 55.76; 28-period average 51.65. Three averages: buying pressure over true range gives 59.24 for 7 periods, 55.76 for 14 and 51.65 for 28. Weighting: Larry Williams weights the shortest average four times and the middle one twice: 4 x 0.5924 + 2 x 0.5576 + 0.5165 = 4.0010. Scaling: dividing by the total weight 7 and multiplying by 100 gives 57.16 on the 0 to 100 scale. Ultimate oscillator result: 57.16, read against the 30 oversold and 70 overbought reference lines.
Example 2: Buying pressure sum, 7 periods 9.4; True range sum, 7 periods 28.9; Buying pressure sum, 14 periods 21.6; True range sum, 14 periods 55.3; Buying pressure sum, 28 periods 47.8; True range sum, 28 periods 109.6. Ultimate oscillator = 35.98. Supporting values: 7-period average 32.53; 14-period average 39.06; 28-period average 43.61. Three averages: buying pressure over true range gives 32.53 for 7 periods, 39.06 for 14 and 43.61 for 28. Weighting: Larry Williams weights the shortest average four times and the middle one twice: 4 x 0.3253 + 2 x 0.3906 + 0.4361 = 2.5184. Scaling: dividing by the total weight 7 and multiplying by 100 gives 35.98 on the 0 to 100 scale. Ultimate oscillator result: 35.98, read against the 30 oversold and 70 overbought reference lines.
Example 3: Buying pressure sum, 7 periods 24.75; True range sum, 7 periods 33.1; Buying pressure sum, 14 periods 44.2; True range sum, 14 periods 63.75; Buying pressure sum, 28 periods 79.6; True range sum, 28 periods 121.4. Ultimate oscillator = 71.90. Supporting values: 7-period average 74.77; 14-period average 69.33; 28-period average 65.57. Three averages: buying pressure over true range gives 74.77 for 7 periods, 69.33 for 14 and 65.57 for 28. Weighting: Larry Williams weights the shortest average four times and the middle one twice: 4 x 0.7477 + 2 x 0.6933 + 0.6557 = 5.0333. Scaling: dividing by the total weight 7 and multiplying by 100 gives 71.90 on the 0 to 100 scale. Ultimate oscillator result: 71.90, read against the 30 oversold and 70 overbought reference lines.
Signals and their limits
Williams' own buy rule was specific: a bullish divergence forms with the oscillator below 50, then price triggers only when the oscillator rises above the highest point it reached during the divergence. Selling short mirrors the rule above 50. The choreography matters because bare crossings of 30 and 70 fail constantly in trends, where the oscillator can ride a rail for weeks.
The indicator also flattens in dead markets. When true ranges collapse, all three averages drift toward the middle and the oscillator hovers near 50 giving no information at all — which is honest, but traders should recognise the regime rather than force trades from a featureless line. In the weak worked example the blend reads 35.98: soft, approaching oversold, but not yet at the 30 line where Williams would even start watching for a divergence.
Ultimate oscillator in practice
The oscillator earns its keep as a confirmation layer. A breakout that carries the reading through 70 on expanding ranges has all three timeframes agreeing, a much stronger statement than a single-period spike. Conversely, a new price high with the blend stalling near 55 while the 28-period average rolls over is the early shape of the divergences Williams traded.
Keep the period triple fixed at 7-14-28 when comparing across instruments or against published values. The periods are parameters, and quietly changing them manufactures a different indicator while keeping the famous name.
Divergence, the signal Williams actually traded
It is worth being precise about the buy signal, because the popular version — buy when the oscillator crosses up through 30 — is not Williams' rule and loses money in his own testing. The actual rule has three acts. First, a bullish divergence: price makes a lower low while the oscillator makes a higher low, with the oscillator's divergence low below 50. Second, patience: nothing is bought yet. Third, the trigger: the oscillator rises above the highest level it reached between the two divergence lows, and only then does the buy fire.
The choreography filters the two great oscillator failure modes. Buying the first cross up from oversold catches falling knives in downtrends, where the oscillator can cross 30 repeatedly on its way down. Requiring the divergence caps the trade to moments when downside momentum is measurably tiring, and requiring the breakout above the intervening oscillator high confirms that buyers have actually taken a step, not merely stopped retreating.
The mirror image governs shorts, with the divergence above 50 and the trigger a fall below the intervening oscillator low. In both directions the middle act — waiting — is the discipline the indicator was designed to enforce, and the part most often skipped by traders who wanted a simpler tool than Williams built.
FAQs
What ultimate oscillator value does the first example give?
57.16, from averages of 59.24, 55.76 and 51.65 combined with 4-2-1 weights.
What is buying pressure?
The close minus the lower of the day's low and the previous close, summed over the window; it credits gap-up opens to buyers.
Why are the windows nested?
So each timeframe measures the same recent history at a different depth; the 7-period sums sit inside the 14, which sit inside the 28.
What does the weak example read?
35.98 — approaching the 30 oversold line but not through it, with the 7-period average down at 32.53.
What value does the strong example reach?
71.90, just over the 70 overbought reference line, led by a 74.77 short-period average.
What 14-period buying pressure sum does the first example use?
33.90 against a true range sum of 60.80, giving the 55.76 middle average.