History
Who and when: The indicator: Larry Williams.
Larry Williams developed the indicator called Williams %R. It shows where the latest close sits between the highest high and the lowest low of the last bars, 14 by default, on a scale from 0 down to −100. A reading between 0 and −20 means the close is near the top of that range and is called overbought; a reading between −80 and −100 means it is near the bottom and is called oversold.
The middle, −50, is the line the education pages tell traders to watch: a cross above it says that the price now trades in the upper half of its recent range, a cross below it that it trades in the lower half. The entry here uses only that middle line.
The rule as the source states it
A cross above −50 signals that prices trade in the upper half of their high-low range, a cross below −50 that they trade in the lower half. One page adds that a move above −50 confirms an upturn after an oversold reading, and a move below −50 a downturn after an overbought reading.
Our version
Williams %R (14) on 1-hour bars of a currency pair. Buy when %R crosses above −50. Sell short when %R crosses below −50. An opposite signal closes the trade and reverses it.
How ours differs
- The confirmation asks for an oversold (or overbought) reading before the cross; ours takes every cross of −50.
- The pages describe the cross as a reading of the market, not as an order to trade; trading it in both directions is ours.
- Like every library file, ours also adds the builder's default stop, position size and account limits (Steps 5 and 6). You can change them in the form.
Sources
- Fidelity Learning Center: Williams %R (opens in a new tab)
- StockCharts ChartSchool: Williams %R (opens in a new tab)
Questions
Who created the Williams %R midline cross strategy, and what are its rules?
The indicator: Larry Williams. Williams %R (14) on 1-hour bars of a currency pair. Buy when %R crosses above −50. Sell short when %R crosses below −50. An opposite signal closes the trade and reverses it. Being well known says nothing about how a strategy will do. Test it on your own data.
Can I build the Williams %R midline cross strategy without coding?
Yes. "Open in the builder" opens it in the AlfaTactix strategy builder with every rule already filled in, so you can read each step and change it. From a saved strategy the builder generates the code for MetaTrader 5 (MQL5) and TradingView (Pine Script v6).

