Noon Barbari
S'inscrire

Retour à la bibliothèque de stratégies

Suivi de tendanceLong & short15m1h4h

PDH/PDL breakout with SuperTrend filter strategy

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

Thèse

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

Adapté aux setups de Suivi de tendance — fonctionne mieux quand le comportement du marché correspond à la thèse, et déraille quand non. À combiner avec le mode walk-forward du backtester avant d'engager du capital réel.

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.

Jeu de règles YAML

Colle-le dans l'onglet « Text » du Strategy Designer, ou utilise le bouton dashboard ci-dessus pour le charger comme modèle.

_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

Indicateurs

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

Conditions d'entrée

Le bot ouvre une position à la bougie suivant le déclenchement de toutes les conditions ci-dessous.

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

Conditions de sortie

N'importe laquelle des conditions ci-dessous ferme la position.

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

Comportement attendu

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.

C'est le caractère de la courbe d'equity, pas une prévision de rendement. Les backtests ne sont pas des promesses sur la performance en direct.

Essaie-la sur tes propres données

Ouvre le modèle dans le dashboard pour le tester sur BTC, ETH ou n'importe quel symbole CCXT — ou copie le YAML dans le Strategy Designer pour le modifier d'abord.

Le comportement passé en backtest ne garantit pas la performance future. Les marchés évoluent ; les jeux de règles doivent être revalidés. Tu trades à tes risques.