Noon Barbari
Registrati

Torna alla libreria di strategie

Trend followingLong e short15m1h4h

Prior Period Levels strategy

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

Tesi

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

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.

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

Set di regole YAML

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

_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

Indicatori

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

Condizioni d'ingresso

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

  • Long when close crosses above the prior day's high.
  • Short when close crosses below the prior day's low.

Condizioni di uscita

Una qualsiasi delle condizioni qui sotto chiude la posizione.

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

Comportamento atteso

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

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.