Noon Barbari
Registrieren

Zurück zur Strategie-Bibliothek

TrendfolgeLong & Short15m1h4h

PDH/PDL breakout with SuperTrend filter strategy

Prior-day-range breakouts, but only the ones that align with the SuperTrend regime.

These

Prior-day-range breakouts, but only the ones that align with the SuperTrend regime.

Passt zu Trendfolge-Setups — funktioniert am besten, wenn das Marktverhalten zur These passt, und versagt, wenn nicht. Vor echtem Kapitaleinsatz mit dem Walk-Forward-Modus des Backtesters kombinieren.

Cleaner than a vanilla PDH/PDL bot — the SuperTrend filter cuts counter-trend breakouts that fizzle. Fewer trades but better quality; sits out range days where prior-range breaks fail.

YAML-Regelwerk

Füge das im Tab „Text" des Strategy Designers ein oder nutze die Dashboard-Schaltfläche oben, um es als Template zu laden.

_template:
  title: PDH/PDL breakout filtered by SuperTrend
  category: trend_following
  skill: intermediate
name: pdh_pdl_breakout_with_supertrend
weight: 1.0
long_only: false
indicators:
  ppl:
    kind: prior_period_levels
  st:
    kind: super_trend
    atr_period: 10
    factor: 3.0
  c:
    kind: sma
    period: 1
entry:
  combine: OR
  rules:
    - combine: AND
      direction: long
      rules:
        - {lhs: {indicator: c}, op: crosses_up, rhs: {indicator: ppl, field: pdh}}
        - {lhs: {indicator: st, field: state}, op: eq, rhs: {value: 1}}
    - combine: AND
      direction: short
      rules:
        - {lhs: {indicator: c}, op: crosses_down, rhs: {indicator: ppl, field: pdl}}
        - {lhs: {indicator: st, field: state}, op: eq, rhs: {value: -1}}
exit:
  combine: OR
  rules:
    - {lhs: {indicator: c}, op: crosses_down, rhs: {indicator: ppl, field: pdl}}
    - {lhs: {indicator: c}, op: crosses_up, rhs: {indicator: ppl, field: pdh}}
risk:
  trailing_stop_pct: 0.04
  cooldown_bars: 3

Indikatoren

  • pplPrior Period Levels

    Tracker for prior-day high / low (the rule uses pdh and pdl).

  • stSuperTrend (ATR 10, factor 3.0)

    Higher-quality trend filter. state = +1 confirms a bullish regime for PDH longs; state = -1 confirms bearish for PDL shorts.

  • cSMA(1) close wrapper

    Wraps close so the crossing predicates have a tracked previous value.

Eintrittsbedingungen

Der Bot eröffnet eine Position in der Kerze nach dem Erfüllen aller unten genannten Bedingungen.

  • Long when close crosses above PDH AND SuperTrend state = +1.
  • Short when close crosses below PDL AND SuperTrend state = -1.

Ausstiegsbedingungen

Jede der folgenden Bedingungen schließt die Position.

  • Opposite-side breakout closes the trade — momentum has flipped.
  • 4% trailing stop, 3-bar cooldown.

Erwartetes Verhalten

Cleaner than a vanilla PDH/PDL bot — the SuperTrend filter cuts counter-trend breakouts that fizzle. Fewer trades but better quality; sits out range days where prior-range breaks fail.

Beschreibt den Charakter der Equity-Kurve, ist keine Rendite-Prognose. Backtests sind keine Versprechen über Live-Performance.

Probier es mit deinen eigenen Daten

Öffne das Template im Dashboard, um es auf BTC, ETH oder einem beliebigen CCXT-Symbol zu backtesten — oder kopier das YAML in den Strategy Designer, um es vorher zu bearbeiten.

Vergangenes Verhalten in Backtests ist keine Garantie für künftige Performance. Märkte ändern sich; Regelwerke müssen erneut validiert werden. Trading auf eigenes Risiko.