MA Slope Mean Reversion (C#). StockSharp

Author: StockSharp
N: 1840
v5.0.1 (7/30/2025)
Downloads: 59

The MA Slope Mean Reversion strategy focuses on extreme readings of the MA to exploit reversion. Wide departures from the recent level rarely last.
Trades trigger when the indicator swings far from its mean and then begins to reverse. Both long and short setups include a protective stop.
Suited for swing traders expecting oscillations, the strategy closes out once the MA returns toward balance. Starting parameter MaPeriod = 20.

  • Entry Criteria: Indicator crosses back toward mean.
  • Long/Short: Both directions.
  • Exit Criteria: Indicator reverts to average.
  • Stops: Yes.
  • Default Values:

    • MaPeriod = 20
    • SlopeLookback = 20
    • ThresholdMultiplier = 2m
    • StopLossPercent = 2m
    • CandleType = TimeSpan.FromMinutes(5)

  • Filters:

    • Category: Mean Reversion
    • Direction: Both
    • Indicators: MA
    • Stops: Yes
    • Complexity: Intermediate
    • Timeframe: Short-term
    • Seasonality: No
    • Neural Networks: No
    • Divergence: No
    • Risk Level: Medium