Tesi
Classic ATR-band trail — long when the trend flips up, short when it flips down.
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.
Trend-friendly equity curve — clean in directional regimes, whipsaws in chop. The 10/3.0 default fires frequently on intraday timeframes and less often on daily candles.
Set di regole YAML
Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.
_template:
title: SuperTrend trend-flip
category: trend_following
skill: beginner
name: super_trend
weight: 1.0
long_only: false
indicators:
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: st, field: state}, op: crosses_up, rhs: {value: 0}}
- combine: AND
direction: short
rules:
- {lhs: {indicator: st, field: state}, op: crosses_down, rhs: {value: 0}}
exit:
combine: OR
rules:
- {lhs: {indicator: st, field: state}, op: crosses_down, rhs: {value: 0}}
- {lhs: {indicator: st, field: state}, op: crosses_up, rhs: {value: 0}}
risk:
trailing_stop_pct: 0.04
cooldown_bars: 2
Indicatori
stSuperTrend (ATR 10, factor 3.0)Port of TradingView's built-in ta.supertrend: an ATR-band trailing stop anchored on hl2. state = +1 above the band (bull), -1 below (bear).
Condizioni d'ingresso
Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.
- Long the bar after state crosses up through zero.
- Short the bar after state crosses down through zero.
Condizioni di uscita
Una qualsiasi delle condizioni qui sotto chiude la posizione.
- Any state flip closes the active position.
- 4% trailing stop on the runner; 2-bar cooldown.
Comportamento atteso
Trend-friendly equity curve — clean in directional regimes, whipsaws in chop. The 10/3.0 default fires frequently on intraday timeframes and less often on daily candles.
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.