Functions
talib.wpr()
Williams %R over `length` bars. `length` is the only argument; the reading comes from the chart's own bars.
Syntax
talib.wpr(series int length) → series float
Arguments
length required series int How many bars the calculation covers. Return Type
series float Example
indicator("Williams %R (WPR)", overlay=false)
length = input(14, "WPR Length")
wprValue = talib.wpr(length)
plot(wprValue, color=color.blue, title="Williams %R")
hline(-20, "Overbought", color=color.red)
hline(-80, "Oversold", color=color.green)
hline(-50, "Mid-Level", color=color.gray)