Skip to main content
Published
Jul 19, 2025
1y ago
Total Downloads
1.2K
1,247

Install

dotnet add package StockSharp.Strategies.0171_MACD_Williams_R.py --version 5.0.0

No framework information available.

README

Macd Williams R Strategy (Python 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)

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

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.