Systemicbeta

Williams %R

systemic:core-wrIndicators

Inputs

NameTypeDescription
WindowWhole numberThe number of bars used to find the highest high and the lowest low.
Price HighNumber seriesThe highest price of each bar.
Price LowNumber seriesThe lowest price of each bar.
Price CloseNumber seriesThe closing price of each bar.

Outputs

NameTypeDescription
WRNumber seriesThe Williams %R at each bar, a value between -100 and 0.

Cost

7
credits per run
1,000
bars

0.209 + 0.00601·n credits for n bars, rounded up. The marks are each plan's limit of bars.

Williams %R is a momentum oscillator. It shows where the close sits inside the high-low range of the last n bars (the Window). Larry Williams developed it to identify overbought and oversold conditions.

%R=Highest High−CloseHighest High−Lowest Low×(−100)\%R = \frac{Highest\ High - Close}{Highest\ High - Lowest\ Low} \times (-100)

Missing Data

A closed-market bar (weekend, holiday) or any bar with an empty High or Low gives an empty output. It is never filled from the last valid bar. The Highest High and Lowest Low use only bars that have both a High and a Low: an n-bar window means n such bars, so Friday and the following Monday are neighbours. The first n − 1 such bars are warm-up and are also empty. An empty Close makes only that bar's own value empty. The bar's High and Low still count for later bars. A flat window (Highest High equals Lowest Low, so the range is zero) has no defined ratio and is also empty, never 0 or -50. The output always has the same length as the input.


How It Works

flowchart TD
    subgraph Input["Price Data"]
        H["High"]
        L["Low"]
        C["Close"]
    end
    
    subgraph Calc["Over n bars"]
        HH["Find Highest High"]
        LL["Find Lowest Low"]
        RANGE["Range = HH - LL"]
        POS["Position = HH - Close"]
    end
    
    subgraph Output["Result"]
        DIV["Position / Range"]
        MULT["× -100"]
        WR["Williams %R (-100 to 0)"]
    end
    
    H & L --> HH & LL --> RANGE
    C & HH --> POS
    POS & RANGE --> DIV --> MULT --> WR

Interpreting Williams %R

%R ValueInterpretation
-20 to 0Overbought zone
-80 to -20Neutral zone
-100 to -80Oversold zone
flowchart LR
    subgraph Zones["Williams %R Zones"]
        OB["-20 to 0<br/>Overbought"]
        N["-80 to -20<br/>Neutral"]
        OS["-100 to -80<br/>Oversold"]
    end
    
    OB --> N --> OS

Trading Strategies

1. Overbought/Oversold Exits

ZoneConditionAction
Overbought%R > -20 then drops belowPotential sell
Oversold%R < -80 then rises abovePotential buy

2. Failure Swings

When %R reaches an extreme but does not reach a new extreme on the next attempt, momentum is weakening.

3. Divergence

PatternPrice%RImplication
BullishLower lowHigher lowReversal up
BearishHigher highLower highReversal down

Williams %R vs Stochastic

AspectWilliams %RStochastic %K
Range-100 to 00 to 100
FormulaInvertedStandard
Overbought> -20> 80
Oversold< -80< 20
Relationship%R = %K - 100%K = %R + 100

Williams %R is the Stochastic Oscillator %K shifted down by 100.


Common Parameters

ParameterTypical valueDescription
Window14Number of bars for the high-low range

Advantages

  • Leading indicator — Can signal reversals early
  • Simple — Easy to calculate and interpret
  • Clear zones — Well-defined overbought/oversold levels
  • Works in ranges — Effective in sideways markets

Disadvantages

  • False signals — Stays at extremes in strong trends
  • Inverted scale — -100 to 0 can be confusing
  • No smoothing — Can be choppy without extra filtering
  • Trend-blind — Does not account for trend direction

Further Reading


Indicator Assessment

%%{init: {'theme': 'base', 'themeVariables': { 'cScale0': '#2563eb', 'cScale1': '#7c3aed'}}}%%
quadrantChart
    title Williams %R Indicator Assessment
    x-axis Low Complexity --> High Complexity
    y-axis Low Reliability --> High Reliability
    quadrant-1 High Value
    quadrant-2 Specialized
    quadrant-3 Limited Use
    quadrant-4 Accessible
    Stocks: [0.25, 0.60]
    Crypto: [0.25, 0.55]
DimensionStocksCryptoNotes
Popularity7/106/10Well-known oscillator; often overshadowed by RSI and Stochastic
Reliability6/105.5/10Effective in ranging markets; prone to false signals in strong trends
Complexity2.5/102.5/10Simple formula and interpretation; the negative scale can confuse beginners
Versatility6/106/10Works across periods but best in sideways markets
Recent Interest5/105/10Steady but modest usage; RSI often preferred as the go-to momentum oscillator
Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5