Williams %R Strategy is based on reversal prospect indicator wrought by L.R. Williams. The basic idea standing beyond this indicator is to point if some security is overbought or oversold.
Indicator is calculated basing on transaction prices from some overwatched Period. Length of a Period can be adjusted to day trading or longer term strategies. Shorter Period effects with more rapid, but sometimes less reliable indicator changes.
Basic equation of the indicator is:
General information obtained from it is a security current value ratio to the highest one in overwatched period. Indicator’s value falls within . When strategy has no opened positions, value falls into one of margins established by Marginopen and then leaves it - that is a signal to open proper positions:
- leaves algorithm opens long position, security is oversold.
- leaves algorithm opens short position, security is overbought.
Algorithm closes its position when the %R indicator crosses -100 + Marginclose or Marginclose. Also, there exists wide range of emergency brakes that may close position to prevent strategy’s loss. More elaborated version of this strategy can make position open/close signals and volumes dependent on further indicators and market conditions. To decrease number of false signals - price trend filters and more elaborated algorithms can be used.
Originally postponed Marginopen value, beyond which reversal of security trend is going to occur, is equal to 20% of indicator value range. Marginclose usually varies from 30% up, depending on accepted risk and expected profit.
- Last trade
- Order book (1st level)
|Marginopen||Margin of critical indicator value, beyond which strategy starts trading (%)||Yes|
|Marginclose||Margin of indicator value, which cross is signal to close opened positions (%)||Yes|
|Period Length||Length of an overwatched Period||Yes|
|Order Volume||Volume of single opened position||Yes|
When Williams %R indicator value leaves one of margins set up either by -100 + Marginopen or Marginopen.
When strategy has any opened positions and Williams %R indicator crosses -100 + Marginclose or Marginclose. Also, a protection close might invoked by watchdog detecting potential loss.
There is no strategy termination condition.
Strategy bases on some initial Period of data collection without trading and is designed to enable adjusting both: period of data collection and its trading time span from hours to whole weeks.