# Simple EMA Cross EA with SL/TP and Magic Number

A classic moving average crossover strategy that opens trades based on EMA crossovers with stop loss and take profit settings.

Canonical: https://prismaticalgos.com/compendium/algo/2841-simple-ema-cross-ea-with-sl-tp-and-magic-number
Record ID: 2841
Catalog rank: 5 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/74135
Evidence label (unverified): source_code

## 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: Not specified
- timeframes: M15
- sessions: Not specified
- market_regime: any

## Indicators

- EMA: {"period": 9}; applied to: close
- EMA: {"period": 21}; 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

- Not specified.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: Stop Loss in points (default: 300, set to 0 to disable)
- Take profit: Take Profit in points (default: 600, set to 0 to disable)
- Position sizing: Fixed lot size (default: 0.10)
