Functions
talib.wpr()
Williams %R. The oscillator shows the current closing price in relation to the high and low of the past 'length' bars.Syntax
Syntax
talib.wpr(series int length) → series float
Arguments
length required series int Number of bars. 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)