Noon Barbari
Registrieren

Zurück zur Strategie-Bibliothek

TrendfolgeLong & Short15m1h4h

Prior Period Levels strategy

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

These

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

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.

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

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: 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

Indikatoren

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

Eintrittsbedingungen

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

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

Ausstiegsbedingungen

Jede der folgenden Bedingungen schließt die Position.

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

Erwartetes Verhalten

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

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.