Skip to main content
Any Framework

Double Supertrend (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
734
734

Install

dotnet add package StockSharp.Strategies.0419_Double_Supertrend.py --version 5.0.0

No framework information available.

README

Double Supertrend (Python Version)

Double Supertrend employs two ATR‑based moving averages with different periods and multipliers. The first line sets the trade direction, while the second can act as a target or trailing exit. This combination allows flexible trend following with defined profit and risk parameters.

When price moves above both lines and the strategy is set to trade long, a position is opened. For short trades the conditions are mirrored. Exits depend on the selected take‑profit type or a percentage stop loss.

Details

  • Data: Price candles.
  • Entry Criteria: Price crosses supertrend lines in the allowed Direction.
  • Exit Criteria: Opposite line break, take‑profit (TPType/TPPercent) or stop‑loss (SLPercent).
  • Stops: Percentage stop based on SLPercent.
  • Default Values:
    • ATRPeriod1 = 10
    • Factor1 = 3.0
    • ATRPeriod2 = 20
    • Factor2 = 5.0
    • Direction = "Long"
    • TPType = "Supertrend"
    • TPPercent = 1.5
    • SLPercent = 10.0
  • Filters:
    • Category: Trend following
    • Direction: Configurable
    • Indicators: ATR‑based Supertrend
    • Complexity: Advanced
    • Risk level: Medium

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.