Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Expert Advisor | ATR TrendGuard MT5 - Dynamic EMA Crossover EA with Risk Management | Free Dow…

New free code from MQL5: indicators, EAs, and scripts for traders.

Image for ATR TrendGuard MT5 - Dynamic EMA Crossover EA with Risk Management Image for ATR TrendGuard MT5 - Dynamic EMA Crossover EA with Risk ManagementATR TrendGuard MT5 is a lightweight, fully compliant Expert Advisor designed for trend-following strategies across any currency pair or timeframe.

### Core Features
- EMA Crossover Logic: Executes trades on bar close when the Fast EMA crosses the Slow EMA.
- ATR Volatility Protection: Stop Loss and Take Profit levels automatically adapt to current market volatility using ATR multipliers.
- Dynamic Risk Management: Calculates position lot sizes automatically based on user-defined account risk percentage (% per trade).
- Reliable Execution: Uses standard CTrade library with automatic filling mode detection and proper handle management.

### Parameters
- InpRiskPercent: Account percentage to risk per trade (Set to 0 to use fixed lot size).
- InpFixedLotSize: Default lot size when percentage risk calculation is disabled.
- InpFastEMAPeriod: Period for the fast Exponential Moving Average (Default: 10).
- InpSlowEMAPeriod: Period for the slow Exponential Moving Average (Default: 20).
- InpATRPeriod: Period for Average True Range indicator (Default: 14).
- InpATRSLMultiplier: Stop Loss distance measured in ATR multiples (Default: 1.5).
- InpATRTPMultiplier: Take Profit distance measured in ATR multiples (Default: 3.0).

### Recommended Setup
- Symbols: EURUSD, GBPUSD, XAUUSD
- Timeframe: H1 or H4

Capture price channel breakouts with the Price Channel Expert Advisor. Precise entries and exits. Explore now.

Build better strategies with RobotFX professional tools – check them out.

77727

Best MetaTrader Indicators + Profitable Expert Advisors