Macd Williams R Strategy (C#)
Macd Williams R Strategy Strategy based on MACD and Williams %R indicators. Enters long when MACD > Signal and Williams %R is oversold (< -80) Enters short when MACD < Signal and Williams %R is overbo...
Install-Package StockSharp.Strategies.0171_MACD_Williams_R -Version 5.0.2
Macd Williams R Strategy
Strategy based on MACD and Williams %R indicators. Enters long when MACD > Signal and Williams %R is oversold (< -80) Enters short when MACD < Signal and Williams %R is overbought (> -20)
Testing indicates an average annual return of about 100%. It performs best in the forex market.
MACD indicates the larger momentum shift, while Williams %R pinpoints near-term reversals. Both signals must line up to initiate a trade.
Good for those who like to combine trend and countertrend cues. Stops hinge on an ATR factor.
Details
- Entry Criteria:
- Long:
MACD > Signal && WilliamsR < -80 - Short:
MACD < Signal && WilliamsR > -20
- Long:
- Long/Short: Both
- Exit Criteria: MACD cross in opposite direction
- Stops: Percent-based using
StopLossPercent - Default Values:
MacdFast= 12MacdSlow= 26MacdSignal= 9WilliamsRPeriod= 14StopLossPercent= 2.0mCandleType= TimeSpan.FromMinutes(5).TimeFrame()
- Filters:
- Category: Mean reversion
- Direction: Both
- Indicators: MACD, Williams %R, R
- Stops: Yes
- Complexity: Intermediate
- Timeframe: Mid-term
- Seasonality: No
- Neural Networks: No
- Divergence: No
- Risk Level: Medium