Skip to main content
Any Framework

MACD Histogram Reversal Strategy (C#)

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

Install

dotnet add package StockSharp.Strategies.0091_MACD_Histogram_Reversal --version 5.0.2

No framework information available.

README

MACD Histogram Reversal Strategy (C# Version)

The MACD histogram represents the difference between the MACD line and its signal line. Crosses above or below zero often mark shifts in momentum. This strategy trades those zero-line crosses and manages risk with a percent stop.

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

On each candle the MACD histogram is computed. When it transitions from negative to positive, a long position is opened. A flip from positive to negative triggers a short sale. Because the strategy only looks for the zero crossover, trades are straightforward and typically short term.

Stops are used to contain losses if momentum fails to continue in the expected direction.

Details

  • Entry Criteria: MACD histogram crosses zero.
  • Long/Short: Both.
  • Exit Criteria: Stop-loss.
  • Stops: Yes, percentage based.
  • Default Values:
    • FastPeriod = 12
    • SlowPeriod = 26
    • SignalPeriod = 9
    • StopLoss = 2%
    • CandleType = 15 minute
  • Filters:
    • Category: Momentum
    • Direction: Both
    • Indicators: MACD
    • Stops: Yes
    • Complexity: Basic
    • Timeframe: Intraday
    • 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.