# 2 MA Crossing

Enters trades based on the crossing of two moving averages with customizable take profit and stop loss.

Canonical: https://prismaticalgos.com/compendium/algo/1485-2-ma-crossing
Record ID: 1485
Catalog rank: 2836 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/34176
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

Build warnings: MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.

## Recorded profile

- symbols: Any
- timeframes: M1
- sessions: Any
- market_regime: any

## Indicators

- EMA: {"period": 8}; applied to: close
- EMA: {"period": 20}; applied to: close

## Recorded long-entry rules

- Fast MA crosses above Slow MA

## Recorded short-entry rules

- Fast MA crosses below Slow MA

## Recorded exit rules

- Take Profit reached
- Stop Loss reached

## Recorded filters

- Minimum equity of $100
- Volume must be at least the minimum allowed by the broker

## Risk controls

- Stop loss: Stop Loss placed at 20 pips
- Take profit: Take Profit placed at 20 pips
- Position sizing: Lot Size set to 0.10
