StockSharp.Strategies.0078_Outside_Bar_Reversal.py
5.0.1
Prefix Reserved
dotnet add package StockSharp.Strategies.0078_Outside_Bar_Reversal.py --version 5.0.1
NuGet\Install-Package StockSharp.Strategies.0078_Outside_Bar_Reversal.py -Version 5.0.1
<PackageReference Include="StockSharp.Strategies.0078_Outside_Bar_Reversal.py" Version="5.0.1" />
<PackageVersion Include="StockSharp.Strategies.0078_Outside_Bar_Reversal.py" Version="5.0.1" />
<PackageReference Include="StockSharp.Strategies.0078_Outside_Bar_Reversal.py" />
paket add StockSharp.Strategies.0078_Outside_Bar_Reversal.py --version 5.0.1
#r "nuget: StockSharp.Strategies.0078_Outside_Bar_Reversal.py, 5.0.1"
#:package StockSharp.Strategies.0078_Outside_Bar_Reversal.py@5.0.1
#addin nuget:?package=StockSharp.Strategies.0078_Outside_Bar_Reversal.py&version=5.0.1
#tool nuget:?package=StockSharp.Strategies.0078_Outside_Bar_Reversal.py&version=5.0.1
Outside Bar Reversal Strategy (Python 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 minuteStopLossPercent
= 1
- Filters:
- Category: Pattern
- Direction: Both
- Indicators: Candlestick
- Stops: Yes
- Complexity: Intermediate
- Timeframe: Intraday
- Seasonality: No
- Neural networks: No
- Divergence: No
- Risk level: Medium
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Move state reset to OnReseted for strategies 71-80