← Back to Library
Momentum

Williams %R

Williams %R is a momentum indicator that moves between 0 and -100 and measures overbought and oversold levels. It helps identify potential reversals.

Pine Script V6
//@version=6
indicator('Williams %R', overlay=false)
len = input.int(14, 'Length')
plot(ta.wpr(len), '%R', color=color.purple)
hline(-20, 'Overbought', color=color.red)
hline(-80, 'Oversold', color=color.green)