Noon Barbari
Registrieren

Zurück zur Strategie-Bibliothek

TrendfolgeNur Long1h4h1d

EMA fast/slow crossover strategy

Catch sustained moves by going long when the fast EMA crosses above the slow EMA.

These

Catch sustained moves by going long when the fast EMA crosses above the slow EMA.

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.

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.

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.

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

Indikatoren

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

Eintrittsbedingungen

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

  • Enter long the bar after EMA(12) crosses above EMA(26).
  • Cooldown of 2 bars after an exit prevents instant whipsaw re-entries.

Ausstiegsbedingungen

Jede der folgenden Bedingungen schließt die Position.

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

Erwartetes Verhalten

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.

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.