OPEN-SOURCE SCRIPT

Williams %R

448
williams %r god mode

williams %r god mode is a modern momentum oscillator designed for clean reversal detection, trend continuation timing, multi-timeframe reading, higher-timeframe confirmation, and filtered buy/sell signals.

the tool is built around williams %r, but it does not behave like a basic overbought/oversold oscillator. it adds smoothing, signal logic, mtf mode, score filtering, trend confirmation, htf confirmation, anti-spam protection, visual zones, glow effects, labels, and a compact dashboard.

main idea

williams %r is often used to detect when price is overbought or oversold.

the problem with a basic williams %r is that it can give too many early signals, especially during strong trends.

this indicator is designed to reduce that noise by combining:

williams %r flow
signal line confirmation
overbought and oversold exits
midline reclaim
trend filter
mtf mode
htf confirmation
impulse candle filter
precision score
signal cooldown
clean visual dashboard

how the oscillator works

the oscillator is displayed from 0 to 100.

low values show bearish pressure or oversold conditions.
high values show bullish pressure or overbought conditions.

important zones:

0 to 20 = oversold area
20 to 50 = lower momentum zone
50 = midline
50 to 80 = upper momentum zone
80 to 100 = overbought area

a bullish setup usually becomes stronger when the flow exits oversold, crosses above the signal line, and starts reclaiming higher zones.

a bearish setup usually becomes stronger when the flow exits overbought, crosses below the signal line, and starts losing higher zones.

mtf mode

the indicator includes a real multi-timeframe mode.

you can choose the timeframe used by the oscillator.

available display modes:

chart tf
true mtf
smooth mtf

chart tf

uses the current chart timeframe.

this is the fastest and most responsive mode.

true mtf

uses the selected higher timeframe directly.

this is the most exact mtf reading, but it can look stepped because higher-timeframe values update only when the higher-timeframe candle updates.

smooth mtf

uses the selected mtf source and applies fixed smoothing to make the line cleaner.

this mode is useful when you want a higher-timeframe oscillator view without a harsh stair-step appearance.

buy/sell signal source

the signal source can be selected separately.

you can choose:

display mode
chart tf
true mtf
smooth mtf

when set to display mode, the signals follow the same source used by the visible oscillator.

beginner recommendation:

use mtf mode on
use smooth mtf display
use display mode as signal source
use confirmed mtf candle on

htf confirmator

the htf confirmator is an additional higher-timeframe filter.

it helps block lower-quality buy and sell signals when the larger trend does not agree.

available htf modes:

ema
williams
ema + williams

ema mode

uses price and ema direction.

williams mode

uses higher-timeframe oscillator direction.

ema + williams mode

requires both the higher-timeframe ema direction and higher-timeframe williams direction to agree.

this is the strictest and cleanest option.

signal modes

aggressive

more signals, faster reaction, more noise.

best for experienced scalpers who want early entries.

balanced

medium filtering.

good for traders who want a mix between frequency and quality.

sniper

strictest mode.

fewer signals, cleaner confirmation, better for beginners and trend-following setups.

entry logic

reversal

focuses on exits from overbought and oversold zones.

example: flow leaves oversold and begins to turn up.

continuation

focuses on midline continuation and momentum reclaim.

example: flow crosses back above the midline during a bullish continuation.

hybrid

uses both reversal and continuation logic.

this is the most flexible mode.

precision score

every signal receives a score from 0 to 100.

the score is based on multiple conditions:

extreme reclaim
trend alignment
flow slope
adx regime
candle impulse
flow/signal cross

higher scores mean stronger confirmation.

beginner recommendation:

minimum precision score: 75 to 85

lower score = more signals
higher score = fewer but cleaner signals

how to use the indicator

step 1: choose the timeframe mode

for normal trading, start with smooth mtf.

example:

chart: 5m
mtf timeframe: 15m or 1h
htf confirmator: 4h

this gives a cleaner view than using the 5m alone.

step 2: read the oscillator zone

if the flow is below 20, the market is oversold.
if the flow is above 80, the market is overbought.
if the flow is above 50, momentum is stronger on the bullish side.
if the flow is below 50, momentum is stronger on the bearish side.

step 3: wait for confirmation

for a buy setup, look for:

flow leaving oversold
flow crossing above the signal line
bullish score above the minimum threshold
htf confirmator bullish
bullish impulse candle if enabled

for a sell setup, look for:

flow leaving overbought
flow crossing below the signal line
bearish score above the minimum threshold
htf confirmator bearish
bearish impulse candle if enabled

step 4: use the dashboard

the dashboard shows:

current flow value
oscillator state
display mode
mtf timeframe
signal source
htf direction
buy score
sell score
last signal

this helps you understand why a signal is accepted or blocked.

step 5: manage risk

do not enter only because a label appears.

before taking a trade, define:

entry
stop loss
target
risk per trade
invalidation level

a clean oscillator signal is not a complete trading plan by itself.

beginner buy example

1. chart is on 5m
2. mtf mode is enabled
3. mtf timeframe is 15m
4. display mode is smooth mtf
5. htf confirmator is set to 4h
6. flow exits oversold
7. flow crosses above the signal line
8. buy score is above 75
9. htf direction is bullish
10. a buy label appears

this is a cleaner long condition than buying only because the oscillator touched oversold.

beginner sell example

1. chart is on 5m
2. mtf mode is enabled
3. mtf timeframe is 15m or 1h
4. display mode is smooth mtf
5. htf confirmator is enabled
6. flow exits overbought
7. flow crosses below the signal line
8. sell score is above 75
9. htf direction is bearish
10. a sell label appears

this helps avoid shorting too early while momentum is still strong.

best settings for scalping

mtf mode: on
mtf timeframe: 15m
display mode: smooth mtf
signal source: display mode
use confirmed mtf candle: on
htf confirmator: on
htf timeframe: 1h or 4h
htf mode: ema + williams
signal mode: balanced or sniper
minimum precision score: 70 to 80
cooldown: 8 to 15 bars

best settings for cleaner trend trades

mtf mode: on
mtf timeframe: 1h
display mode: smooth mtf
signal source: display mode
use confirmed mtf candle: on
htf confirmator: on
htf timeframe: 4h or daily
htf mode: ema + williams
signal mode: sniper
minimum precision score: 80 to 90
require flow / signal cross: on
signals on confirmed candle only: on

tips

use smooth mtf when you want a clean higher-timeframe oscillator view.

use true mtf only when you want the exact higher-timeframe value, even if the line looks stepped.

use sniper mode when the market is choppy.

use balanced mode when the market is moving cleanly.

raise the precision score when there are too many signals.

lower the precision score when signals are too rare.

keep htf confirmation enabled for safer entries.

avoid buying directly into strong resistance.

avoid selling directly into strong support.

the best signals usually happen when oscillator direction, trend direction, and htf confirmation all agree.

alerts

available alerts:

williams %r buy
williams %r sell

for cleaner alert behavior, use once per bar close.

risk warning

this indicator is designed to improve momentum reading and signal filtering, but no indicator can predict every market move.

always use risk management, position sizing, and confirmation from price structure.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.