StockSharp.Strategies.0214_Bollinger_Supertrend.py
5.0.1
Prefix Reserved
dotnet add package StockSharp.Strategies.0214_Bollinger_Supertrend.py --version 5.0.1
NuGet\Install-Package StockSharp.Strategies.0214_Bollinger_Supertrend.py -Version 5.0.1
<PackageReference Include="StockSharp.Strategies.0214_Bollinger_Supertrend.py" Version="5.0.1" />
<PackageVersion Include="StockSharp.Strategies.0214_Bollinger_Supertrend.py" Version="5.0.1" />
<PackageReference Include="StockSharp.Strategies.0214_Bollinger_Supertrend.py" />
paket add StockSharp.Strategies.0214_Bollinger_Supertrend.py --version 5.0.1
#r "nuget: StockSharp.Strategies.0214_Bollinger_Supertrend.py, 5.0.1"
#:package StockSharp.Strategies.0214_Bollinger_Supertrend.py@5.0.1
#addin nuget:?package=StockSharp.Strategies.0214_Bollinger_Supertrend.py&version=5.0.1
#tool nuget:?package=StockSharp.Strategies.0214_Bollinger_Supertrend.py&version=5.0.1
Bollinger Supertrend Strategy (Python Version)
This strategy blends Bollinger Bands with the Supertrend indicator to pinpoint entries during strong directional moves. Bollinger Bands gauge volatility expansion while the Supertrend line tracks the overall trend and acts as a trailing stop.
Testing indicates an average annual return of about 79%. It performs best in the stocks market.
A long trade triggers when price closes above the upper Bollinger Band and remains above the Supertrend line, confirming momentum and trend alignment. A short trade occurs when price closes below the lower band while staying under the Supertrend level. Trades are exited once price crosses back through the Supertrend, indicating momentum has faded.
Because the system waits for breakouts beyond normal volatility, it suits traders looking to capture sustained runs rather than quick reversals. The Supertrend stop dynamically adjusts to market swings, helping manage risk without manual intervention.
Details
- Entry Criteria:
- Long: Close > upper Bollinger Band && Close > Supertrend
- Short: Close < lower Bollinger Band && Close < Supertrend
- Long/Short: Both sides.
- Exit Criteria:
- Long: Exit when price crosses below Supertrend
- Short: Exit when price crosses above Supertrend
- Stops: Yes, via Supertrend trailing stop.
- Default Values:
BollingerPeriod
= 20BollingerDeviation
= 2.0mSupertrendPeriod
= 10SupertrendMultiplier
= 3.0mCandleType
= TimeSpan.FromMinutes(15)
- Filters:
- Category: Trend
- Direction: Both
- Indicators: Bollinger Bands, Supertrend
- 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.
Refactor strategy reset handling