Noon Barbari
Registrati

Torna alla libreria di strategie

BreakoutSolo long1h4h1d

SMA breakout (Donchian-style) strategy

Buy a fresh push above the 20-bar mean and trail the winner until it folds.

Tesi

Buy a fresh push above the 20-bar mean and trail the winner until it folds.

Si adatta ai setup Breakout — 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.

Trendy growth in directional regimes punctuated by ugly chop when price oscillates around the SMA. Best paired with a higher-timeframe trend filter to skip the chop.

Set di regole YAML

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

name: donchian_breakout
weight: 1.0
long_only: true
indicators:
  sma20: {kind: sma, period: 20}
entry:
  combine: AND
  rules:
    - {lhs: {bar: close}, op: crosses_up, rhs: {indicator: sma20}}
exit:
  combine: OR
  rules:
    - {lhs: {bar: close}, op: crosses_down, rhs: {indicator: sma20}}
risk:
  trailing_stop_pct: 0.05
  cooldown_bars: 4

Indicatori

  • sma20SMA (period 20)

    Simple moving average over the last 20 closes — the cleanest possible trend baseline.

Condizioni d'ingresso

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

  • Enter long when close crosses above the 20-bar SMA.
  • 4-bar cooldown after exit reduces back-to-back whipsaws.

Condizioni di uscita

Una qualsiasi delle condizioni qui sotto chiude la posizione.

  • Close on a cross back below the SMA.
  • Trailing 5% stop catches deeper retracements before the SMA flips.

Comportamento atteso

Trendy growth in directional regimes punctuated by ugly chop when price oscillates around the SMA. Best paired with a higher-timeframe trend filter to skip the chop.

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.