Skip to main content
Any Framework

Overnight Gap Strategy (C#)

Published
Aug 7, 2025
1y ago
Total Downloads
1.9K
1,862

Install

dotnet add package StockSharp.Strategies.0129_Overnight_Gap --version 5.0.2

No framework information available.

README

Overnight Gap Strategy (C# Version)

Overnight Gap plays the open when price gaps significantly from the prior close due to news or after-hours activity. Large gaps often retrace partially as traders digest the move.

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

The strategy fades excessive gaps, entering in the opposite direction shortly after the open and closing before the session ends.

Stops are based on a percentage beyond the gap extremes to manage risk if the move continues.

Details

  • Entry Criteria: indicator signal
  • Long/Short: Both
  • Exit Criteria: stop-loss or opposite signal
  • Stops: Yes, percent based
  • Default Values:
    • CandleType = 15 minute
    • StopLoss = 2%
  • Filters:
    • Category: Gap
    • Direction: Both
    • Indicators: Gap
    • 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.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.