Skip to content

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.

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) / 7
TriggerDirectionConditionDescription
Level cross up🟢 BuyThe 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🔴 SellThe 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🟢 BuyThe 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🔴 SellThe indicator value dropped below the level by the specified distance.The Ultimate Oscillator line crosses the LevelDistance mark moving down.
Value rising🟢 BuyThe 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🔴 SellThe 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🟢 BuyThe 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🔴 SellThe 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🔴 SellThe 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🟢 BuyThe 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🔴 SellThe oscillator exited the overbought zone.The Ultimate Oscillator line returns below the overbought threshold Overbought — upward momentum is weakening.
Exit oversold zone🟢 BuyThe oscillator exited the oversold zone.The Ultimate Oscillator line rises above the oversold threshold Oversold — downward momentum is weakening.
ParameterTypeDefaultRange / Values
Level (Value above level by N, Value below level by N, Level cross up, Level cross down)float0
Distance (Value above level by N, Value below level by N)float00>
Oversold (Enter oversold zone, Exit oversold zone)float200-50
Overbought (Enter overbought zone, Exit overbought zone)float8050-100