# RiskGuard Lite - Percent-Risk EMA/ATR EA

A simple EMA crossover with controlled risk placement for MetaTrader 5.

Canonical: https://prismaticalgos.com/compendium/algo/4207-riskguard-lite-percent-risk-ema-atr-ea
Record ID: 4207
Catalog rank: 3 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/77470
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: any liquid symbol
- timeframes: H1
- sessions: any session
- market_regime: any

## Indicators

- EMA: {"period": 20}; applied to: close
- EMA: {"period": 50}; 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 hit
- take profit hit

## Recorded filters

- spread check
- no open position with magic number
- server return code check if order rejected

## Risk controls

- Stop loss: placed at a multiple of ATR, never closer than the broker stop level
- Take profit: a fixed reward:risk multiple of the stop distance
- Position sizing: calculated with OrderCalcProfit so that hitting the stop loses the chosen percent of equity, then rounded to the broker volume step and limits
