Ultimate Oscillator Strategy: Formula, Divergence and Test Rules
The Ultimate Oscillator combines buying-pressure calculations over three lookback windows. Its usual 7, 14 and 28 settings refer to bars on the current chart, not separate chart timeframes or guaranteed calendar weeks.
Calculate the oscillator
For each bar, buying pressure is the close minus the lower of the current low and previous close. True range is the higher of the current high and previous close minus that same lower value.
For each lookback, divide the sum of buying pressure by the sum of true range. Call these ratios A7, A14 and A28. The result is 100 × (4 × A7 + 2 × A14 + A28) / 7. Taking an average of individual bar ratios is a different calculation. A zero range sum needs explicit handling in a custom implementation.
The shortest window receives the largest weight. All three windows still use the same chart’s bars: on an hourly chart they represent 7, 14 and 28 hourly bars. Requesting data from daily and weekly charts would be a separate multi-timeframe design.
Interpret levels and divergence
The conventional 30 and 70 levels identify relatively low or high oscillator readings. They do not measure a company’s fundamental value or require price to reverse. A reading above 50 also does not independently establish an uptrend.
The classic bullish setup combines a lower price low with a higher oscillator low, with the divergence low below 30, followed by an oscillator break above the intervening high. The bearish setup reverses that sequence: a higher price high, lower oscillator high, a divergence high above 70 and a break below the intervening low.
A divergence is a candidate setup until its confirmation condition occurs. If a script uses pivots requiring future bars, the pivot becomes known only after those bars arrive. Plotting it back at the earlier pivot must not be treated as a trade that could have occurred then.
Turn a chart pattern into a test
Specify how the two swings are selected and how long they may be apart. State whether confirmation requires a closed bar, when an order is submitted, what invalidates the setup and how it exits. Otherwise two readers can produce different trades from the same chart.
Compare the rule with and without any trend filter using the same market, dates and cost assumptions. Keep a later period out of parameter selection. Include missed moves, failed divergences, spread, commission and slippage rather than selecting only favorable screenshots.
No reproducible test accompanies the former AAPL, TSLA, NVDA or SPY performance anecdotes. This guide therefore does not assign the oscillator a win rate or recommend larger positions for supposedly stronger signals. Paper trading can reveal execution differences, but a fixed number of weeks does not prove readiness for live capital.
Source checked October 20, 2026: TradingView Ultimate Oscillator documentation.

