Ultimate Oscillator Optimization: Three Lookbacks, One Defined Signal
Define Ultimate Oscillator lookbacks, fixed or custom weights and confirmed signal timing before running a reproducible parameter search.
View Chrome ExtensionBuilding a Strategy with Ultimate Oscillator
The Ultimate Oscillator combines buying-pressure-to-true-range ratios over three lookback lengths, commonly 7, 14 and 28 bars with weights 4:2:1. These are three windows on the chart’s data, not automatically three separately requested chart timeframes. Each ratio divides the sum of buying pressure by the sum of true range over its window; it is not the simple average of individual bar ratios.
For each bar, buying pressure uses the close minus the smaller of the low and previous close. True range uses the larger of the high and previous close minus that same smaller value. The weighted combination is scaled to 0–100. Keep the weights fixed initially and handle any zero denominator in a custom implementation. TradingView’s documented built-in inputs expose three lengths; configurable weights require a strategy that explicitly implements them.
Choose a threshold rule or define a complete divergence rule. A reading below 30 is not the same as a confirmed bullish divergence. A divergence strategy needs precise pivot pairing, confirmation timing and a trigger; plotting a pivot on an earlier bar cannot make it known before confirmation. Do not mix those signal definitions while attributing changes solely to lookback lengths.
Optimizable Parameters
| Parameter | Description | Example Test Values |
|---|---|---|
| Short lookback | Shortest window; keep all lengths ordered | 5–10, step 1: 6 choices |
| Medium lookback | Middle window for the pressure/range ratio | 12–18, step 1: 7 choices |
| Long lookback | Longest window for the pressure/range ratio | 24–32, step 2: 5 choices |
| Lower threshold | Used by an explicitly defined entry event | 24–32, step 2: 5 choices |
| Weights and upper threshold | Hold fixed so the example isolates the four searched inputs | 4:2:1 weights; upper threshold 70 |
Optimization Example and Test Design
Hypothetical search: 6 short lengths × 7 medium lengths × 5 long lengths × 5 lower thresholds = 1,050 configurations. The full 7/14/28 and 30/70 baseline is included. No historical win rate, drawdown reduction or profit factor is reported. As a formula check, pressure/range ratios of 0.6, 0.5 and 0.4 produce 100 × (4 × 0.6 + 2 × 0.5 + 0.4) / 7, about 54.29. Multiplying every weight by the same positive number leaves the normalized output unchanged, so avoid treating proportional weight sets as distinct ideas. Inspect entry timestamps, retain the baseline and evaluate selected rules on data excluded from all parameter selection.
Frequently Asked Questions
Related Strategy Optimizations
Start Optimizing Your Ultimate Oscillator Strategy
Install the extension, sign in and check your plan access. Automated parameter optimization requires an Advanced plan or above.
View Chrome Extension