XAUUSD SMC Trader scans H1 timeframe for bullish and bearish order blocks then confirms entries via M5 change of character patterns detected through peak and trough analysis. The system applies dynamic lot sizing based on account risk percentage and distance to stop loss. It closes 66 percent of volume at 1.0R profit and activates a 1.0R trailing stop. Optional filters detect liquidity sweeps and fair value gaps with session guards to avoid closures. The README states the project remains under development.
Read from XAU_SMC_Trader.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
RiskPercent
double
1.0
MinRR
double
1.0
MagicNumber
int
202405
OB_Lookback
int
100
OB_ATR_Period
int
15
OB_ATR_Mult
double
1.0
SL_Buffer_ATR_Mult
double
0.15
buffer = this * M5 ATR (was fixed $0.50)
CHoCH_Lookback
int
100
ATR_Period_M5
int
14
CHoCH_Prom_Mult
double
0.2
Peak_Distance
int
5
UseSweepFilter
bool
true
bật/tắt filter sweep (A/B test)
Show all 40 inputs
Name
Type
Default
Description
Sweep_MinPen_ATR_Mult
double
0.05
độ xuyên tối thiểu = mult * ATR(M5)
Sweep_MaxPen_ATR_Mult
double
2.0
độ xuyên tối đa (quá sâu = breakdown)
Sweep_MaxAgeBars
int
36
sweep phải xảy ra trong N nến M5 gần nhất
Sweep_BodyClosePct
double
0.0
% thân nến tối thiểu đóng trên ref_level
UseFVGFilter
bool
false
bật/tắt filter FVG (A/B test)
FVG_EntryMode
ENUM_FVG_ENTRY_MODE
FVG_MODE_FILTER
Phase 2 chưa dùng
FVG_MinGapATRMult
double
0.10
gap tối thiểu = mult * ATR(M5)
FVG_MaxGapATRMult
double
3.0
gap tối đa (quá lớn = news spike)
FVG_DispATRMult
double
1.0
nến giữa phải có body > mult * ATR
FVG_MaxAgeBars
int
24
FVG phải hình thành trong N nến M5 gần nhất
FVG_RequireUnmitigated
bool
true
loại FVG đã bị close xuyên qua
FVG_MustOverlapOB
bool
false
yêu cầu FVG overlap vùng OB H1
FVG_EntryLevelPct
double
0.5
[Phase 2] mức vào trong gap: 0.5 = CE
FVG_ExpiryBars
int
12
[Phase 2] pending hết hạn sau N nến M5
UseHTFBiasFilter
bool
false
bật/tắt bias filter (A/B test)
HTF_TF_Mode
ENUM_HTF_TF_MODE
HTF_TF_H4_ONLY
khung bias: H4 / D1 / kết hợp
HTF_Method
ENUM_HTF_METHOD
HTF_METHOD_SWING
phương pháp: swing / EMA / both
HTF_NeutralPolicy
ENUM_HTF_NEUTRAL
NEUTRAL_ALLOW_ALL
hành vi khi bias = neutral
HTF_Lookback
int
120
số nến HTF quét swing
HTF_SwingDistance
int
3
distance xác nhận swing (2 bên)
HTF_PromMult
double
0.5
prominence = mult * ATR(TF)
HTF_EMA_Period
int
50
chu kỳ EMA (method EMA/BOTH)
HTF_EMAFlatATRMult
double
0.05
slope| <= mult*ATR => EMA phẳng => neutral
UseSessionFilter
bool
false
bật/tắt session filter (A/B test)
Session_TimeBase
ENUM_SESSION_TIMEBASE
TIMEBASE_SERVER
giờ nhập theo server hay GMT
Session_GMT_Offset
int
2
offset broker vs GMT (chỉ dùng khi TIMEBASE_GMT)
UseLondonKZ
bool
true
London Kill-zone
London_StartHour
double
9.0
9.0 = 09:00 server ≈ 07:00 GMT (broker GMT+2/+3)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone TheMonade/XAUUSD-Algo-Trader 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
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
This MetaTrader 5 expert advisor implements Smart Money Concepts including Order Blocks, Fair Value Gaps, and Break of Structure entries. It features an automated mode that combines multiple strategies alongside market regime detection using ADX or Efficiency Ratio to ensure trading in trending conditions. Risk managem
This MetaTrader 5 expert advisor implements a multi-strategy framework based on Smart Money Concepts. It identifies fractal-based liquidity sweeps, order blocks, and Fibonacci zones across multiple timeframes, typically using H4 for trend direction and M15 for execution. The EA includes an optional machine learning fil
Fvg Gold EA is an automated trading robot for MetaTrader 5 designed specifically for the gold market. It utilizes institutional trading concepts by identifying high-probability Fair Value Gaps with Order Block confluence. The system employs a scoring algorithm to evaluate trade quality based on displacement, gap size,
This automated trading system for MetaTrader 5 focuses on spot Gold using Inner Circle Trader methodology. It identifies entries through order block detection, market structure analysis, and weekly opening price levels. The strategy is further filtered by dual moving averages and specific trading sessions, primarily Lo
MT5Trading robotSMC / ICT / price actionIndicator crossoverTrend following