Entered OHLC · rolling range position

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.

Runs in your browserZero-range carry disclosedNo threshold signal

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.

Entered

One completed bar per line. Separate values with commas, semicolons or tabs. Maximum 500 rows.

Williams %R boundary: This page reports rolling-range arithmetic only. It does not label overbought, oversold, divergence, direction, timing, entry or exit.

Latest Williams %R arithmetic

Entered WPR, Standard Deviation and Heiken-Ashi 1.0.0.

Derived
No Williams %R calculated yetEnter at least one complete period of ordered OHLC bars, or load the audited example.

How Williams %R is calculated

%R[i] = −100 × (Highest High(N) − Close[i]) ÷ (Highest High(N) − Lowest Low(N))

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

Reproduce it with “Load audited example”The 60-bar fixture uses period 14. In the latest window, highest high is 123.8672, lowest low is 116.4582 and the range is 7.4090. Positioning the latest close inside that span gives Williams %R −27.000945.

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

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.

XM

Review available instruments, chart history and account terms.

Check XM terms

FBS

Compare symbol specifications and chart-feed conventions for your region.

Check FBS terms

FXOpen

Confirm chart history and trading conditions for the entered symbol.

Check FXOpen terms

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.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.