indicator · own pane · open source

Williams %R indicator

Williams %R is a free open-source indicator. Williams %R is the inverse of the Fast Stochastic — closer to -0 = strong, closer to -100 =… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What Williams %R does

Williams %R is the inverse of the Fast Stochastic — closer to -0 = strong, closer to -100 = weak. A clean overbought/oversold oscillator on any market.

  • Above -20 = overbought, below -80 = oversold.
  • Pair with a trend filter to avoid fighting a strong move.
  • Raise Length to slow the response.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Williams %R", overlay=false)
len = input.int(14, "Length", minval=2, maxval=200)
colorAccent = input.color("color.fuchsia", "Color  Accent")
colorNeutral = input.color("color.gray", "Color  Neutral")
wpr = ta.wpr(len)
hline(-20, "Overbought", color=colorNeutral, linestyle=hline.style_dashed)
hline(-80, "Oversold", color=colorNeutral, linestyle=hline.style_dashed)
p__R = plot(wpr, "%R", color=colorAccent, linewidth=2)
alertcondition(ta.crossover(wpr, -80), "%R overs exits", "Williams %R bounced off oversold")
alertcondition(ta.crossunder(wpr, -20), "%R OB exits", "Williams %R exited overbought")

Comments

No comments yet.

Sign in to comment.