How to write algo based on only William % R

buy above 100 periods William % R and 14 periods

There are lots of false signals if write

buy = WPR (100) > -50 AND WPR (14)> -50

Please help me

Thanks in advance

regards,

Williams’ %R indicator measures overbought/oversold levels. This indicator is similar to the Stochastic Oscillator.The outputs range from 0 to -100.

Example

WPR(14) < -80

Evaluates to true when Williams’ %R is oversold.

I want a trading system based on above formula. Can You help me please ?