ออสซิลเลเตอร์ MomentumScalpingMean Reversion มีใน Builder

Williams %R

Williams %R shows where the close sits inside the recent high–low range on an inverted −100 to 0 scale. It is the fastest of the common bounded oscillators, with no signal line and no smoothing, which makes it a scalping tool rather than a swing one.

Default period
14
Common levels
−20 / −80
Indicator range
−100 to 0
OverboughtOversoldCentreline 50Divergence

ภาพประกอบ — ข้อมูลสังเคราะห์ ไม่ใช่ราคาจริง

What Williams %R tells you

Williams %R is the raw version of the same question Stochastic asks: where in the recent range did this bar close? It applies no smoothing at all, so it reaches its extremes sooner and stays there for shorter — useful when you want speed, punishing when you want reliability.

  • Above −20: closes are clustering at the top of the range
  • Below −80: closes are clustering at the bottom
  • The scale is inverted — 0 is the strong end, −100 the weak one
  1. 1 Find the high–low range of the last N bars
  2. 2 Measure the close down from the high
  3. 3 Express it as −100 to 0
แสดงสูตรและรายละเอียดการคำนวณ

Williams %R measures the close against the top of the recent range:

  1. Over the last N bars, find the highest high and the lowest low.
  2. Measure how far the current close sits below that highest high.
  3. Express that distance as a percentage of the whole range, negated: %R = −100 × (Highest High − Close) / (Highest High − Lowest Low).

A close exactly at the highest high gives 0; a close at the lowest low gives −100. No smoothing is applied at any stage — the value published on buffer 0 is the raw ratio for the current bar, which is why %R can travel from one extreme to the other in a single bar and why it produces far more extreme readings than Stochastic on the same data.

The relationship to Stochastic is exact rather than approximate: %R = %K − 100 for the unsmoothed case. They are the same measurement on two scales, and the difference in behaviour comes entirely from the smoothing Stochastic applies and %R does not.

In MQL5 the call is iWPR(symbol, period, calc_period) and it returns a handle to a single buffer. There is no applied-price argument and no signal line. Larry Williams introduced %R in the 1970s.

สัญญาณ

สัญญาณที่ backtest ได้ของ Williams %R — และสภาวะตลาดที่เหมาะสมกับแต่ละสัญญาณ

Overbought / Oversold

พร้อมใช้ใน Builder
เงื่อนไข
%R moves above −20 or below −80
สภาวะที่ดีที่สุด
Ranging markets
การใช้งานทั่วไป
Fade the extreme on a short horizon

Leaving the Extreme

พร้อมใช้ใน Builder
เงื่อนไข
%R crosses back out of the −80 or −20 zone
สภาวะที่ดีที่สุด
Ranging markets
การใช้งานทั่วไป
Wait for the extreme to start unwinding instead of catching it

Centreline Cross

พร้อมใช้ใน Builder
เงื่อนไข
%R crosses −50
สภาวะที่ดีที่สุด
Trending markets
การใช้งานทั่วไป
Flip momentum bias without waiting for an extreme

Divergence

ตรรกะขั้นสูง
เงื่อนไข
Price makes a new extreme, %R does not
สภาวะที่ดีที่สุด
Trend exhaustion
การใช้งานทั่วไป
Anticipate a stall before price confirms

การทำงานจริงใน MT5

สิ่งที่ MetaTrader 5 คำนวณและวาดจริง — เกณฑ์อ้างอิงของทุกกฎในหน้านี้

บัฟเฟอร์

ดัชนี บัฟเฟอร์ MT5 วาดเป็น เก็บค่าอะไร
0 MAIN_LINE Line The %R value, from −100 (close at the bottom of the range) to 0 (close at the top). One buffer only — there is no signal line.

ข้อสังเกตของแพลตฟอร์ม

ทำงานได้ดีที่สุด / ใช้อย่างระมัดระวัง

ไม่มีอินดิเคเตอร์ใดที่ได้เปรียบในทุกสภาวะ นี่คือจุดที่ Williams %R ช่วยได้ — และจุดที่มันทำให้เข้าใจผิด

ทำงานได้ดีที่สุด

  • Ranging markets
  • Short-horizon entries
  • Tight-spread instruments and sessions
  • With a session or volatility filter

ใช้อย่างระมัดระวัง

  • Strong one-way trends
  • Wide-spread pairs
  • Extremes as standalone entries
  • Optimised levels without validation

สร้างกลยุทธ์ Williams %R

เชื่อมสัญญาณเข้ากับกฎการเปิดและปิดออเดอร์ จากนั้นส่งออก EA MT5 ที่คอมไพล์ได้ — ไม่ต้องเขียนโค้ด

  1. Williams %R (14)
  2. %R below −80 → Open Buy · SL 15 / TP 20
  3. %R above −20 → Open Sell
  4. Break-even at +10 pips, locking 2

รวม Williams %R กับอินดิเคเตอร์อื่น

อินดิเคเตอร์เดี่ยวแทบไม่เพียงพอ การจับคู่เหล่านี้ครอบคลุมจุดบอดของ Williams %R

Williams %R + Bollinger Bands

  1. %R below −80
  2. Price at lower band
  3. Buy
เหตุผล
Require price to be statistically stretched at the same moment the oscillator is extreme, which filters out the fastest false readings
สภาวะที่ดีที่สุด
Ranging

No single-flow template pairs Williams %R with Bollinger Bands — the portfolio template that holds both runs them as separate legs. Start from Williams Scalper and add band nodes with a Price node into a Compare.

เปิด Builder →

Williams %R + ADX

  1. ADX < 20
  2. %R below −80
  3. Buy
เหตุผล
Suppress the fade while a trend is running, which is when %R pins at an extreme and stays there for a whole session
สภาวะที่ดีที่สุด
Range filtering

No single-flow template pairs Williams %R with ADX. Start from Williams Scalper and add an ADX node with a Compare below 20.

เปิด Builder →

Williams %R + ATR

  1. %R below −80
  2. ATR sets the stop distance
  3. Buy
เหตุผล
Replace the fixed 15-pip stop with a volatility-sized one, since a scalping stop is the first thing a change of regime invalidates
สภาวะที่ดีที่สุด
Any

No single-flow template pairs Williams %R with ATR. Add an ATR node feeding a risk-based lot or stop node.

เปิด Builder →

พารามิเตอร์

ค่าเริ่มต้นสำหรับตรวจสอบบนคู่และกรอบเวลาของคุณเอง — ไม่ใช่การตั้งค่าที่รับประกัน

พารามิเตอร์ ค่าเริ่มต้น ช่วงที่แนะนำให้ทดสอบ หน้าที่
Period 14 5–30 How many bars the high–low range is measured over. Shorter makes %R touch its extremes almost every bar; longer makes an extreme mean something.
Overbought / Oversold −20 / −80 −10 to −30 / −70 to −90 Your levels, not indicator inputs — iWPR has no threshold argument. Remember the scale is inverted: −20 is the strong end.
Shift 0 0–3 Which bar back the value is read from. Shift 1 compares against a fully closed bar, which matters more here than on slower oscillators.

ค่าตั้งต้นเริ่มต้น

Scalping 9 Very fast, needs tight spreads
Standard 14 Williams' default baseline
Swing 28 Fewer, more meaningful extremes

ตัวอย่างในตลาด

ที่ Williams %R ทำงานได้ ที่มันล้มเหลว และตัวกรองเปลี่ยนผลลัพธ์อย่างไร

ทำงานได้

Fade inside a session range

In a quiet London range %R drops under −80, price stalls and the short move back plays out — the horizon the scalping template is built for.

ล้มเหลว

Pinned in a trend

In a directional session %R sits above −20 for most of the day. Selling every reading fights the move and pays the spread each time.

ถูกกรอง

Session filter earns its keep

The same extremes appear outside the London session on a wider spread and are all skipped — on a 20-pip target the spread decides whether the trade was ever viable.

FAQ

Is Williams %R the same as Stochastic?
Almost. Both measure where the close sits in the recent high–low range. %R reports it on an inverted −100 to 0 scale and applies no smoothing at all; Stochastic reports 0–100 and smooths twice, and publishes a signal line. In practice %R is the faster, noisier member of the pair, which is why it shows up in scalping strategies.
Why is the scale negative?
Larry Williams defined it as the distance from the highest high down to the close, expressed as a negative percentage of the range. A close at the very top gives 0 and a close at the very bottom gives −100. It carries no meaning beyond the convention, but it does mean a comparison copied from a Stochastic rule will be backwards.
What levels should I use?
−20 and −80 are conventional and map onto Stochastic's 80/20. They are your levels, not indicator inputs — iWPR takes only a period. On a short period %R touches both extremes constantly, so widening to −10/−90 or lengthening the period usually matters more than moving the levels a little.
Does Williams %R have an applied-price setting?
No. The calculation needs the highest high, the lowest low and the close together, so there is no single series to pick. MQL5's iWPR takes only a period.
Can I build a Williams %R EA without coding?
Yes for level rules and centreline crosses — one %R node plus a Compare, with the period as an EA input. The Williams Scalper template also shows the execution filters a short-horizon strategy needs. Divergence is the exception and requires custom MQL5.
How should I validate settings before going live?
Backtest on quality tick data first, then run the EA on a demo account before risking money. When optimising, hold back data the search never saw and prefer settings that stay profitable across periods over the single in-sample peak — chasing that peak is overfitting the noise. On short-horizon strategies also check that the spread and execution assumptions in the test resemble your broker's, because a 20-pip target has no room for optimism.