Noon Barbari
Registrati

Torna alla libreria di strategie

Trend followingLong e short15m1h4h

PDH/PDL breakout with SuperTrend filter strategy

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

Tesi

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

Si adatta ai setup Trend following — funziona meglio quando il comportamento del mercato sottostante combacia con la tesi, e si rompe quando no. Abbinala alla modalità walk-forward del backtester prima di impegnare capitale reale.

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.

Set di regole YAML

Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.

_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

Indicatori

  • 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.

Condizioni d'ingresso

Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.

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

Condizioni di uscita

Una qualsiasi delle condizioni qui sotto chiude la posizione.

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

Comportamento atteso

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.

Carattere della curva di equity, non una previsione di rendimento. I backtest non sono promesse sulla performance live.

Provala con i tuoi dati

Apri il template nella dashboard per fare backtest su BTC, ETH o qualsiasi simbolo CCXT — oppure copia il YAML nel Strategy Designer per modificarlo prima.

Il comportamento passato nei backtest non garantisce la performance futura. I mercati cambiano; i set di regole vanno rivalidati. Si fa trading a proprio rischio.