Noon Barbari
S'inscrire

Retour à la bibliothèque de stratégies

Suivi de tendanceLong & short15m1h4h

Prior Period Levels strategy

PDH / PDL breakouts — long above the prior day high, short below the prior day low.

Thèse

PDH / PDL breakouts — long above the prior day high, short below the prior day low.

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.

Intraday classic — fires on the first decisive break of yesterday's range. Strong in trend days, choppy when price oscillates around the PDH/PDL.

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: Prior Day H/L breakout
  category: trend_following
  skill: beginner
name: prior_period_levels
weight: 1.0
long_only: false
indicators:
  ppl:
    kind: prior_period_levels
  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}}
    - combine: AND
      direction: short
      rules:
        - {lhs: {indicator: c}, op: crosses_down, rhs: {indicator: ppl, field: pdl}}
exit:
  combine: OR
  rules:
    - {lhs: {indicator: c}, op: crosses_down, rhs: {indicator: ppl, field: pdh}}
    - {lhs: {indicator: c}, op: crosses_up, rhs: {indicator: ppl, field: pdl}}
risk:
  trailing_stop_pct: 0.04
  cooldown_bars: 2

Indicateurs

  • pplPrior Period Levels (daily / weekly / monthly)

    Clean-room tracker for prior-period high, low, open and close. The default rule uses pdh / pdl — prior day's high and low — for the classic intraday breakout.

  • cSMA(1) close wrapper

    Wraps close as an indicator with a tracked previous value so the crossing predicates fire.

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 the prior day's high.
  • Short when close crosses below the prior day's low.

Conditions de sortie

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

  • Opposite-side breakout closes the trade.
  • 4% trailing stop, 2-bar cooldown.

Comportement attendu

Intraday classic — fires on the first decisive break of yesterday's range. Strong in trend days, choppy when price oscillates around the PDH/PDL.

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.