The Williams %R, or Williams Percent Range, is a technical analysis oscillator that measures the level of the close relative to the high-low range over a given period of time. It is primarily used to identify overbought and oversold levels in a market.
Williams[N](close)
This function calculates the Williams %R value. The parameter N specifies the number of periods over which the high, low, and close are considered.
The Williams %R is calculated using the formula:
((High over N periods - Today's Close) / (High over N periods - Low over N periods)) * (-100)
To calculate the Williams %R for a 14-day period using the closing price, you would use:
Williams[14](close)
This indicator is useful for highlighting potential reversals in price through its identification of extreme conditions in buying or selling activity.