Skip to main content
Any Framework

MACD Long Strategy (C#)

Published
Aug 7, 2025
1y ago
Total Downloads
714
714

Install

dotnet add package StockSharp.Strategies.0433_Macd_Long --version 5.0.0

No framework information available.

README

MACD Long Strategy (C# Version)

Pairs Relative Strength Index extremes with MACD crossovers to capture pullbacks within a trend. After RSI reaches an extreme reading, the system waits for a confirming MACD crossover before entering. This approach filters noisy momentum shifts and focuses on high-probability reversals.

The strategy trades both directions and can quickly flip when opposite signals appear. MACD provides momentum confirmation while RSI highlights overbought and oversold zones. Protective stops can be added through the engine's risk controls.

Details

  • Entry Criteria:
    • Long: RSI falls below oversold, then MACD line crosses above signal.
    • Short: RSI rises above overbought, then MACD line crosses below signal.
  • Exit Criteria:
    • Opposite crossover or stop triggered.
  • Indicators:
    • RSI (length 14, oversold 30, overbought 70)
    • MACD (fast 12, slow 26, signal 9)
  • Stops: Implement via StartProtection or external money management.
  • Default Values:
    • RsiLength = 14
    • Oversold = 30
    • Overbought = 70
    • MacdFast = 12
    • MacdSlow = 26
    • MacdSignal = 9
  • Filters:
    • Momentum reversal
    • Works on various timeframes
    • Indicators: RSI, MACD
    • Stops: Optional
    • Complexity: Basic

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.