Skip to main content
Any Framework

Volatility Adjusted Mean Reversion Strategy (C#)

Published
Jul 20, 2025
1y ago
Total Downloads
2.1K
2,077

Install

dotnet add package StockSharp.Strategies.0226_Volatility_Adjusted_Mean_Reversion --version 5.0.1

No framework information available.

README

Volatility Adjusted Mean Reversion Strategy (C# Version)

This variation of mean reversion scales entry thresholds by the ratio of ATR to standard deviation. When volatility increases relative to typical noise, the distance needed to trigger a trade grows, helping avoid premature signals during chaotic swings.

A long position opens when price falls below the moving average by more than the adjusted threshold. A short position opens when price rises above the average by the same measure. Positions exit once price closes back near the average level.

The adaptive threshold makes this strategy suitable for markets with changing volatility regimes. A stop-loss equal to twice the ATR limits risk while waiting for reversion.

Details

  • Entry Criteria:
    • Long: Close < MA - Multiplier * ATR / (ATR/StdDev)
    • Short: Close > MA + Multiplier * ATR / (ATR/StdDev)
  • Long/Short: Both sides.
  • Exit Criteria:
    • Long: Exit when close >= MA
    • Short: Exit when close <= MA
  • Stops: Yes, dynamic based on ATR.
  • Default Values:
    • Period = 20
    • Multiplier = 2.0m
    • CandleType = TimeSpan.FromMinutes(5)
  • Filters:
    • Category: Mean Reversion
    • Direction: Both
    • Indicators: ATR, StdDev
    • Stops: Yes
    • Complexity: Intermediate
    • Timeframe: Intraday
    • Seasonality: No
    • Neural networks: No
    • Divergence: No
    • Risk Level: Medium

Changes from Previous Version

No structural changes between v5.0.0 and v5.0.1.

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.