Ma Williams R Strategy (C#)
Ma Williams R Strategy Implementation of strategy - MA + Williams %R. Buy when price is above MA and Williams %R is below -80 (oversold). Sell when price is below MA and Williams %R is above -20 (over...
Ma Williams R Strategy
Implementation of strategy - MA + Williams %R. Buy when price is above MA and Williams %R is below -80 (oversold). Sell when price is below MA and Williams %R is above -20 (overbought).
Testing indicates an average annual return of about 79%. It performs best in the stocks market.
The moving average shows the prevailing trend direction. Williams %R looks for overbought or oversold points relative to that trend.
Fits swing traders waiting for pullbacks toward the average. The stop-loss distance is a fixed percentage of the entry price.
Details
- Entry Criteria:
- Long:
Close > MA && WilliamsR < WilliamsROversold - Short:
Close < MA && WilliamsR > WilliamsROverbought
- Long:
- Long/Short: Both
- Exit Criteria:
- Williams %R returns to middle
- Stops: Percent-based using
StopLossPercent - Default Values:
MaPeriod= 20MaType= MovingAverageTypeEnum.SimpleWilliamsRPeriod= 14WilliamsROversold= -80mWilliamsROverbought= -20mStopLossPercent= 2CandleType= TimeSpan.FromMinutes(5).TimeFrame() MaType selects a simple, exponential, weighted, smoothed or Hull average. The middle of Williams %R is -50: a long closes once %R rises back to it and a short once it falls back to it. An entry signal against an open position reverses it.
- Filters:
- Category: Mean reversion
- Direction: Both
- Indicators: Moving Average, Williams %R, R
- Stops: Yes
- Complexity: Intermediate
- Timeframe: Mid-term
- Seasonality: No
- Neural Networks: No
- Divergence: No
- Risk Level: Medium
I answer from what this page says. For anything else I will point you to the documentation.