Developed by trader Larry Williams, the Williams’ %R indicator measures
overbought/oversold levels. This indicator is similar to the Stochastic Oscillator. The outputs range from 0 to -100.
The market is considered overbought when the %R is in a range of 0 to
-20, and oversold when %R is in a range of -80 to -100.
set BUY = WPR(14) < -80
Evaluates to buy when Williams’ %R is oversold.