MT5 EMA Pullback EA is an automated MetaTrader 5 trading robot that trades pullbacks to a fast exponential moving average aligned with a sloping slow EMA trend.
MT5 EMA Pullback EA evaluates entries once per bar when price touches the fast EMA within an ATR tolerance without breaking the slow EMA and closes back in the trend direction. Risk controls include ATR-based stop loss, optional take profit, an ATR trailing stop, balance-percentage or fixed lot sizing, maximum position caps, server session windows, and a maximum spread filter. Note that users must manually copy separate include files into MQL5 before compiling.
Fast EMA pullback entries in slow EMA trend direction
ATR-based stop loss, take profit, and trailing stop
Balance percentage or fixed lot sizing with lot cap
Server hour session filter and maximum spread check
Modular MQL5 include architecture for signal, risk, and execution
Read from EmaPullbackEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTF
ENUM_TIMEFRAMES
PERIOD_M15
Signal timeframe
InpFastEMA
int
21
Fast EMA period
InpSlowEMA
int
100
Slow EMA period (trend)
InpATRPeriod
int
14
ATR period
InpTouchATR
double
0.2
Pullback tolerance (x ATR from fast EMA)
InpMinSlopeATR
double
0.1
Min slow-EMA slope (x ATR)
InpSlopeBars
int
5
Bars used to measure slope
InpSL_ATR
double
1.5
Stop loss (x ATR)
InpTP_ATR
double
3.0
Take profit (x ATR, 0 = none)
InpUseTrailing
bool
true
Use ATR trailing stop
InpTrailStartATR
double
1.0
Start trailing after profit (x ATR)
InpTrailATR
double
1.0
Trailing distance (x ATR)
Show all 23 inputs
Name
Type
Default
Description
InpTrailStepATR
double
0.1
Minimum SL step (x ATR)
InpRiskPct
double
1.0
Risk per trade (% balance)
InpFixedLots
double
0.0
Fixed lots (>0 disables risk sizing)
InpMaxLots
double
10.0
Max lots per trade
InpMaxPositions
int
1
Max open positions (this symbol + magic)
InpStartHour
int
7
Session start hour (server)
InpEndHour
int
20
Session end hour (server, = start for 24h)
InpMaxSpread
int
30
Max spread in points (0 = off)
InpMagic
long
21100
Magic number
InpSlippage
int
20
Max slippage (points)
InpComment
string
ema-pullback
Order comment
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone MT5-Automation-Labs/mt5-ema-pullback-ea from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n