Ultimate Oscillator
Combines three time frames to reduce false signals. The Ultimate Oscillator (UO) combines three stochastic measurements (short-term, medium-term, long-term) with weights of 4, 2 and 1. Values above 70 mean overbought, below 30 — oversold. Williams recommended trading it only on a divergence with price.
Formula
Section titled “Formula”BP = Close - min(Low, Close_prev)TR = max(High, Close_prev) - min(Low, Close_prev)Avg7 = SUM(BP,7) / SUM(TR,7)Avg14 = SUM(BP,14) / SUM(TR,14)Avg28 = SUM(BP,28) / SUM(TR,28)UO = 100 * (4*Avg7 + 2*Avg14 + Avg28) / 7Triggers
Section titled “Triggers”| Trigger | Direction | Condition | Description |
|---|---|---|---|
| Level cross up | 🟢 Buy | The indicator value crossed the specified level from below to above. | The Ultimate Oscillator line crosses the configurable Level from below to above. Level is set in the trigger parameters. |
| Level cross down | 🔴 Sell | The indicator value crossed the specified level from above to below. | The Ultimate Oscillator line crosses the Level from above to below. Level is set in the trigger parameters. |
| Value above level by N | 🟢 Buy | The indicator value rose above the level by the specified distance. | The Ultimate Oscillator line crosses the Level + Distance mark moving up. The distance delays entry until a confirmed breakout of the level. |
| Value below level by N | 🔴 Sell | The indicator value dropped below the level by the specified distance. | The Ultimate Oscillator line crosses the Level − Distance mark moving down. |
| Value rising | 🟢 Buy | The indicator value is rising relative to the previous bar. | The Ultimate Oscillator line is higher on the current bar than on the previous one — upward momentum. |
| Value falling | 🔴 Sell | The indicator value is falling relative to the previous bar. | The Ultimate Oscillator line is lower on the current bar than on the previous one — downward momentum. Fires on every declining bar. |
| Slope turns positive | 🟢 Buy | The indicator’s slope turned positive — an upward reversal. | The Ultimate Oscillator line changes its slope from falling to rising — the indicator stopped falling and started rising. |
| Slope turns negative | 🔴 Sell | The indicator’s slope turned negative — a downward reversal. | The Ultimate Oscillator line changes its slope from rising to falling — the indicator stopped rising and started falling. |
| Enter overbought zone | 🔴 Sell | The oscillator entered the overbought zone. | The Ultimate Oscillator line crosses the overbought threshold Overbought from below to above — the upper extreme of the range is reached. In a countertrend strategy it is used as a sell signal. |
| Enter oversold zone | 🟢 Buy | The oscillator entered the oversold zone. | The Ultimate Oscillator line crosses the oversold threshold Oversold from above to below — the lower extreme of the range is reached. In a countertrend strategy it is used as a buy signal. |
| Exit overbought zone | 🔴 Sell | The oscillator exited the overbought zone. | The Ultimate Oscillator line returns below the overbought threshold Overbought — upward momentum is weakening. |
| Exit oversold zone | 🟢 Buy | The oscillator exited the oversold zone. | The Ultimate Oscillator line rises above the oversold threshold Oversold — downward momentum is weakening. |
Trigger parameters
Section titled “Trigger parameters”| Parameter | Type | Default | Range / Values |
|---|---|---|---|
Level (Value above level by N, Value below level by N, Level cross up, Level cross down) | float | 0 | |
Distance (Value above level by N, Value below level by N) | float | 0 | 0> |
Oversold (Enter oversold zone, Exit oversold zone) | float | 20 | 0-50 |
Overbought (Enter overbought zone, Exit overbought zone) | float | 80 | 50-100 |
