RichEMA
- Experts
- Versione: 2.0
- Attivazioni: 10
Overview
The Professional EMA ATR EA is an automated trading system developed for the MetaTrader 5 (MT5) platform using MQL5 language. The strategy is designed to trade based on market trend direction using Exponential Moving Average (EMA) crossover confirmation combined with ATR-based dynamic risk management.
This Expert Advisor is suitable for Forex, Gold (XAUUSD), Crypto, and Indices trading with controlled risk management and automatic trade execution.
Strategy LogicTrend Identification
The EA uses two Exponential Moving Averages:
-
Fast EMA = 50
-
Slow EMA = 200
Buy Condition
A Buy trade is executed when:
-
Fast EMA crosses above Slow EMA
-
Market trend becomes bullish
Sell Condition
A Sell trade is executed when:
-
Fast EMA crosses below Slow EMA
-
Market trend becomes bearish
ATR Dynamic Stop Loss & Take Profit
The EA uses the Average True Range (ATR) indicator to automatically calculate:
-
Stop Loss (SL)
-
Take Profit (TP)
This allows the EA to adapt to market volatility.
Default Settings
-
ATR Period = 14
-
SL Multiplier = 1.5
-
TP Multiplier = 3.0
Risk-Based Lot Size
The EA automatically calculates lot size based on:
-
Account Balance
-
Risk Percentage
-
Stop Loss Distance
This helps maintain consistent risk exposure on every trade.
Default Risk
-
Risk Per Trade = 1%
Spread Filter
The EA avoids trading during high spread conditions to reduce poor entries and slippage.
Default Spread Limit
-
30 Points
Session Filter
Trading is allowed only during selected trading hours.
Default Trading Session
-
Start Hour = 15
-
End Hour = 20
This is suitable for:
-
US Session
-
Gold Volatility Session
One Trade at a Time
The EA prevents overtrading by allowing:
-
Only one active position at a time
This improves stability and reduces drawdown risk.
Main Features-
Fully automated MT5 trading
-
EMA crossover trend strategy
-
ATR dynamic SL/TP
-
Automatic lot size calculation
-
Buy and Sell trading support
-
Spread protection
-
Trading session filter
-
One-position-only protection
-
Professional MQL5 coding structure
-
Compile-ready source code
Best Pairs
-
XAUUSD (Gold)
-
EURUSD
-
GBPUSD
-
BTCUSD
Recommended Timeframes
-
M5
-
M15
| Parameter | Value |
|---|---|
| RiskPercent | 1.0 |
| FastEMA | 50 |
| SlowEMA | 200 |
| ATRPeriod | 14 |
| SL_ATR_Mult | 1.5 |
| TP_ATR_Mult | 3.0 |
| StartHour | 15 |
| EndHour | 20 |
-
Simple and stable strategy
-
Good trend-following behavior
-
Automatic volatility adjustment
-
Controlled risk management
-
Suitable for beginners and advanced traders
-
Easy to optimize and customize
-
Always backtest before live trading.
-
VPS is recommended for stable execution.
-
Use low spread brokers for best performance.
-
Risk settings should be adjusted according to account size.
-
MetaTrader 5 (MT5)
-
MQL5 compatible broker
-
AutoTrading enabled
This EA is a professional foundational trading system suitable for traders who want a clean and stable automated strategy using EMA trend confirmation with ATR-based dynamic risk management. The system can be further upgraded with trailing stop, partial close, smart filters, AI confirmation, and funded account protection logic.
