Skip to main content
Any Framework

Outside Bar Reversal Strategy (C#)

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

Install

dotnet add package StockSharp.Strategies.0078_Outside_Bar_Reversal --version 5.0.2

No framework information available.

README

Outside Bar Reversal Strategy (C# Version)

An outside bar occurs when a candle's range exceeds that of the previous candle, creating a brief surge of volatility. This strategy fades the move if the outside bar closes in the opposite direction of the prior trend, expecting a snap back toward equilibrium.

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

When an outside bar forms, the algorithm determines whether the candle is bullish or bearish. A bullish outside bar after a decline opens a long position with a stop below the bar's low. A bearish outside bar after a rally triggers a short with a stop above its high. Trades exit if price subsequently breaks through that extreme.

The setup seeks quick reversals following an exhaustive thrust and is best used when markets are choppy rather than trending strongly.

Details

  • Entry Criteria: Outside bar closing opposite the previous move.
  • Long/Short: Both.
  • Exit Criteria: Price breaking outside bar high/low or stop-loss.
  • Stops: Yes, placed beyond the pattern.
  • Default Values:
    • CandleType = 5 minute
    • StopLossPercent = 1
  • Filters:
    • Category: Pattern
    • Direction: Both
    • Indicators: Candlestick
    • 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.