Skip to main content
Any Framework

Bollinger Squeeze (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
1.3K
1,253

Install

dotnet add package StockSharp.Strategies.0021_Bollinger_Squeeze.py --version 5.0.1

No framework information available.

README

Bollinger Squeeze (Python Version)

Strategy based on Bollinger Bands squeeze

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

Bollinger Squeeze waits for narrow band width indicating low volatility. A break outside the bands starts a trade in that direction and it exits when momentum fails or an opposite break appears.

The squeeze condition hints at an upcoming volatility expansion. Once triggered, the trade rides the breakout and relies on an ATR stop or band crossover to exit.

Details

  • Entry Criteria: Signals based on Bollinger.
  • Long/Short: Both directions.
  • Exit Criteria: Opposite signal.
  • Stops: No.
  • Default Values:
    • BollingerPeriod = 20
    • BollingerDeviation = 2m
    • SqueezeThreshold = 0.1m
    • CandleType = TimeSpan.FromMinutes(5)
  • Filters:
    • Category: Trend
    • Direction: Both
    • Indicators: Bollinger
    • Stops: No
    • Complexity: Basic
    • Timeframe: Intraday (5m)
    • 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.