Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

ATR TrendGuard MT5 - Dynamic EMA Crossover EA with Risk Management - expert for MetaTrader 5

Views:
59
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
ATR_TrendGuard_MT5.mq5 ATR 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
Stormbreaker ADX - Supertrend and DMI Trend EA Stormbreaker ADX - Supertrend and DMI Trend EA

Trend-following Expert Advisor for MetaTrader 5 combining Supertrend direction with ADX and DI confirmation. Uses an ATR-based stop loss and risks up to 0.5% of equity per trade.

ImpulseCandle - impulse bar marker with ATR body filter and volume confirmation ImpulseCandle - impulse bar marker with ATR body filter and volume confirmation

Marks impulse candles: body at least ATR x multiplier, body at least a set share of the candle range, close near the extreme, optional tick volume confirmation. Green arrow below a bullish impulse, red above a bearish one. Closed bars only, no repainting. Signals are in the two buffers so an Expert Advisor can read them with iCustom.

Titan TrendPulse AI Titan TrendPulse AI

A high-precision trend filter combining EMA dynamic momentum with ATR volatility bounds to pinpoint high-probability entries.

MACD Signals MACD Signals

Indicator edition for new platform.