Tesi
Catch sustained moves by going long when the fast EMA crosses above the slow EMA.
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.
Long flat periods broken by sharp upward jumps when a sustained trend lines up — and visible drawdowns during ranging markets when the cross fires both ways inside a few bars.
Set di regole YAML
Incollalo nella scheda «Text» del Strategy Designer, oppure usa il pulsante della dashboard sopra per caricarlo come template.
name: ema_crossover
weight: 1.0
long_only: true
indicators:
ema_fast: {kind: ema, period: 12}
ema_slow: {kind: ema, period: 26}
entry:
combine: AND
rules:
- {lhs: {indicator: ema_fast}, op: crosses_up, rhs: {indicator: ema_slow}}
exit:
combine: OR
rules:
- {lhs: {indicator: ema_fast}, op: crosses_down, rhs: {indicator: ema_slow}}
risk:
trailing_stop_pct: 0.04
cooldown_bars: 2
Indicatori
ema_fastEMA (period 12)Exponential moving average over the last 12 closes — a short-term smoother that reacts quickly to new prints.
ema_slowEMA (period 26)Exponential moving average over the last 26 closes — a slower baseline that captures the broader regime.
Condizioni d'ingresso
Il bot apre una posizione nella candela successiva al verificarsi di tutte le condizioni qui sotto.
- Enter long the bar after EMA(12) crosses above EMA(26).
- Cooldown of 2 bars after an exit prevents instant whipsaw re-entries.
Condizioni di uscita
Una qualsiasi delle condizioni qui sotto chiude la posizione.
- Close on the down-cross: EMA(12) back below EMA(26).
- Trailing stop of 4% locks in profits if the cross reverses without a clean down-cross.
Comportamento atteso
Long flat periods broken by sharp upward jumps when a sustained trend lines up — and visible drawdowns during ranging markets when the cross fires both ways inside a few bars.
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.