# EMA Cross Demo EA with ATR Stops

Buys when fast EMA crosses above slow EMA and sells when fast EMA crosses below slow EMA, using ATR for stop-loss and take-profit.

Canonical: https://prismaticalgos.com/compendium/algo/6564-ema-cross-demo-ea-with-atr-stops
Record ID: 6564
Catalog rank: 700 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/77653
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: EURUSD
- timeframes: M15
- sessions: Not specified
- market_regime: any

## Indicators

- EMA: {"period": 9}; applied to: close
- EMA: {"period": 21}; applied to: close
- ATR: {"period": 14}; applied to: close

## Recorded long-entry rules

- fast EMA crosses above slow EMA

## Recorded short-entry rules

- fast EMA crosses below slow EMA

## Recorded exit rules

- stop loss and take profit levels are pushed out to the broker's minimum stop distance where needed

## Recorded filters

- spread filter
- max spread 2.0 pips

## Risk controls

- Stop loss: entry minus/plus ATR x InpSLATRMult
- Take profit: stop distance x InpRewardRisk
- Position sizing: normalized to the symbol's volume step, min and max
