Skip to main content
Any Framework

Supertrend Reversal Strategy (Python)

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

Install

dotnet add package StockSharp.Strategies.0088_Supertrend_Reversal.py --version 5.0.1

No framework information available.

README

Supertrend Reversal Strategy (Python Version)

The Supertrend indicator combines ATR and price to produce trailing support or resistance. When the Supertrend line flips from above to below price or vice versa, it suggests a potential trend change. This strategy trades those flips.

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

On each candle an ATR-based calculation updates the Supertrend level. A switch from above price to below triggers a long entry, while a move from below to above creates a short. The code sample omits explicit stops, so exits are discretionary or managed by a separate risk module.

The indicator can react quickly to volatility, so traders often combine it with additional filters to reduce whipsaws.

Details

  • Entry Criteria: Supertrend switches sides relative to price.
  • Long/Short: Both.
  • Exit Criteria: Manual or external stop.
  • Stops: Not defined.
  • Default Values:
    • Period = 10
    • Multiplier = 3.0
    • CandleType = 15 minute
  • Filters:
    • Category: Trend following
    • Direction: Both
    • Indicators: Supertrend
    • Stops: Optional
    • Complexity: Basic
    • Timeframe: Intraday
    • 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.