XAUUSD Scalping EA analyzes price action across M5, M15, and H1 intervals using Exponential Moving Averages, Relative Strength Index, and Average Directional Index for entry confirmation. Trades are managed with ATR-based stop losses, take profits, break-even triggers, and trailing stops. Risk controls include dynamic position sizing based on account percentage, daily trade limits, maximum loss thresholds, and daily drawdown protection to prevent excessive exposure during volatile market conditions.
Multi-timeframe EMA trend filtering
ATR-based volatility stop loss and risk management
Read from XAUUSD_Scalping_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
RiskPercent
double
0.35
RejectIfMinLotTooRisky
bool
true
EntryTF
ENUM_TIMEFRAMES
PERIOD_M5
TrendTF
ENUM_TIMEFRAMES
PERIOD_M15
HigherTF
ENUM_TIMEFRAMES
PERIOD_H1
FastEMA
int
9
SlowEMA
int
21
TrendFastEMA
int
50
TrendSlowEMA
int
200
HigherEMA
int
200
RSIPeriod
int
14
BuyRSI
double
52.0
Show all 37 inputs
Name
Type
Default
Description
SellRSI
double
48.0
ADXPeriod
int
14
MinimumADX
double
18.0
ATRPeriod
int
14
ATRStopMultiplier
double
1.20
PipSize
double
0.01
MinimumStopPips
double
30.0
MinimumTargetPips
double
30.0
RiskRewardRatio
double
1.50
SpreadTargetMultiplier
double
3.0
PullbackTolerancePips
double
15.0
MinEMASeparationPips
double
5.0
MaxSpreadPips
double
40.0
UseBreakEven
bool
true
BreakEvenTriggerPips
double
30.0
BreakEvenLockPips
double
3.0
UseTrailingStop
bool
true
TrailingStartPips
double
45.0
TrailingDistancePips
double
20.0
MaxTradesPerDay
int
8
MaxLossesPerDay
int
3
MinMinutesBetweenTrades
int
15
MaxDailyDrawdownPercent
double
2.0
MagicNumber
ulong
260903
SlippagePoints
int
30
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone AhsanAli013/MT5-XAUUSD-Scalping-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.
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.
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
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index
FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take
Gold Scalper is an educational MetaTrader 5 expert advisor designed for scalping XAUUSD on the one-minute timeframe. It is presented as a masterclass tutorial to demonstrate modular coding practices. The system utilizes a 200-period Exponential Moving Average for trend filtering and the Relative Strength Index for entr
Trade Pro 1Min Scalper is an automated trading robot for MetaTrader 5 that implements a strategy based on Bill Williams Fractals and a triple moving average system. It identifies market trends using fast, medium, and slow EMA periods and executes entries based on short-term price action. The expert advisor includes a f
Sentinel EA is a trend-following scalping robot developed for MetaTrader 5, specifically optimized for trading Gold (XAU/USD) on the one-minute timeframe. The strategy utilizes a fast and slow Exponential Moving Average crossover to identify trade entries. It features mandatory risk controls including fixed stop loss a
MT5Trading robotScalpingIndicator crossoverTrend following