Williams %R Calculator
Calculate Larry Williams’ inverted close position inside each complete rolling high-low range, with the extrema, indices and zero-range convention visible.
Enter one period and ordered OHLC bars
Use completed bars from one symbol, timeframe and broker feed, ordered oldest to newest. The default period is 14.
One completed bar per line. Separate values with commas, semicolons or tabs. Maximum 500 rows.
Latest Williams %R arithmetic
Entered WPR, Standard Deviation and Heiken-Ashi 1.0.0.
| Label | Index | Open | High | Low | Close | Highest high | High index | Lowest low | Low index | Range | WPR | State |
|---|
How Williams %R is calculated
Each reportable row uses the current completed bar and previous N minus one bars. A close at the rolling high returns zero; a close at the rolling low returns minus 100.
Version 1.0.0 follows the MetaQuotes zero-range buffer convention: the first flat reportable window returns zero, and a later flat window carries the preceding Williams %R value.
Assumptions and limits
- Period must be a whole number from 3 to 200.
- At least one complete period of ordered OHLC rows is required.
- Rows must use one symbol, timeframe, price convention and broker feed.
- The latest duplicate high or low owns the displayed extrema index.
- Threshold, overbought, oversold, divergence, direction and recommendation labels are withheld.
Worked example from the audited fixture
How to interpret the result
The value locates the latest entered close between the rolling high and low on a 0 to −100 scale. It does not measure distance in pips and is not assigned an overbought, oversold or reversal label.
Frequently asked questions
- Enter one period and at least that many ordered open-high-low-close bars from one symbol, timeframe and feed.
- It is minus 100 times rolling highest high minus current close, divided by rolling highest high minus rolling lowest low.
- The current completed row and previous period minus one rows define each complete rolling highest-high to lowest-low range.
- A valid non-flat window returns a value from minus 100 at the rolling low to zero at the rolling high.
- The first flat reportable window returns zero; a later flat window carries the preceding Williams %R value.
- It appears at zero-based index period minus one, after one complete rolling window exists.
- A chart can include older hidden history, another symbol suffix, broker feed, bar boundary or price precision.
- No. Overbought, oversold, divergence, direction, confirmation, entry and exit interpretations are withheld.
Sources and methodology
- MetaQuotes Code Base — Williams Percent Range — Published rolling extrema formula, warm-up boundary and zero-range carry implementation.
Compare entered range oscillators
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

