Skip to main content
Any Framework

Macd Williams R Strategy (C#)

Published
Aug 7, 2025
1y ago
Total Downloads
1.8K
1,841

Install

dotnet add package StockSharp.Strategies.0171_MACD_Williams_R --version 5.0.2

No framework information available.

README

Macd Williams R Strategy (C# Version)

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/Short: Both
  • Exit Criteria: MACD cross in opposite direction
  • Stops: Percent-based using StopLossPercent
  • Default Values:
    • MacdFast = 12
    • MacdSlow = 26
    • MacdSignal = 9
    • WilliamsRPeriod = 14
    • StopLossPercent = 2.0m
    • CandleType = 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

Changes from Previous Version

No structural changes between v5.0.1 and v5.0.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.