Williams %R EA: no-code builder for MT4 / MT5
OscillatorsWilliams %R is similar to the Stochastic Oscillator, but its scale runs from −100 to 0: below −80 is oversold and above −20 is overbought. It reacts quickly and is often paired with a trend filter.
Rules you can build with it
Works as an entry rule or an exit rule. Short rules are mirrored automatically.
- LongWilliams %R risesShortWilliams %R falls
- LongWilliams %R fallsShortWilliams %R rises
- LongWilliams %R is above -80(adjustable level)ShortWilliams %R is below -20
- LongWilliams %R is below -80(adjustable level)ShortWilliams %R is above -20
- LongWilliams %R crosses above -80(adjustable level)ShortWilliams %R crosses below -20
- LongWilliams %R crosses below -80(adjustable level)ShortWilliams %R crosses above -20
- LongWilliams %R turns upShortWilliams %R turns down
- LongWilliams %R turns downShortWilliams %R turns up
Settings
| Settings | Default | Range |
|---|---|---|
| Period | 14 | 2 – 50 |
| Level | -80 | -100 – 0 |
How the backtest and the EA calculate it
Same as MT5's Williams' Percent Range; when the high equals the low, the previous candle's value is carried over. For short rules the level is mirrored around −50.
Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.
Example strategies
- Entry · Williams %R (14): Williams %R rises
- Stop-loss 300 points, take-profit 600 points
- Entry · Williams %R (14): Williams %R rises
- Entry · Moving Average (50, EMA, Close): MA rises
- Stop-loss 300 points, take-profit 600 points
Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.