Skip to main content
Published
Aug 7, 2025
1y ago
Total Downloads
1.8K
1,837

Install

dotnet add package StockSharp.Strategies.0061_MACD_Divergence --version 5.0.2

No framework information available.

README

MACD Divergence (C# Version)

MACD Divergence looks for disagreement between price action and the MACD indicator. Higher highs in price but lower highs in MACD suggest weakening momentum (bearish divergence), while lower lows in price and higher MACD lows hint at bullish reversal.

Testing indicates an average annual return of about 70%. It performs best in the stocks market.

After detecting divergence, the system waits for MACD to cross its signal line before entering. The trade is closed if MACD crosses back or the stop-loss triggers.

Details

  • Entry Criteria: Bullish or bearish divergence plus MACD crossing signal line.
  • Long/Short: Both directions.
  • Exit Criteria: MACD crosses opposite direction or stop.
  • Stops: Yes.
  • Default Values:
    • FastMacdPeriod = 12
    • SlowMacdPeriod = 26
    • SignalPeriod = 9
    • DivergencePeriod = 5
    • CandleType = TimeSpan.FromMinutes(15)
    • StopLossPercent = 2.0m
  • Filters:
    • Category: Divergence
    • Direction: Both
    • Indicators: MACD
    • Stops: Yes
    • Complexity: Intermediate
    • Timeframe: Intraday
    • Seasonality: No
    • Neural Networks: No
    • Divergence: Yes
    • 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.