ta.wpr
Williams %R, -100 to 0: 100 * (close - highest(high, length)) / (highest(high, length) - lowest(low, length)).
ta.wpr(length: simple int) -> series float
Parameters
lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error. The highest high and lowest low of this many bars make the range.
Example
ta.wpr(14)