XAU Trading Bot operates in signal-only mode to issue alerts or auto-trade mode to open and manage positions on XAUUSD. The EA follows OTL concepts using BuBe structure, 12 specific setups including failbreakouts, inside bar breakouts, EMA200 retests, order blocks, and FTR patterns. It requires a minimum of 2 confluences for entries and applies day-profile-based take profits of 20 or 30 pips. Risk controls include equity-based lot sizing at 0.5% per trade, maximum 3 open positions, and a 3-pip spread filter. Time filters block openings during Comex hours, Asia sessions, and initial session minutes. It supports both buy and sell trades with no martingale or grid scaling.
Read from XAU-trading-bot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMode
ENUM_OTL_MODE
MODE_SIGNAL_ONLY
Chế độ hoạt động
InpMagic
long
20230508
Magic number
InpRiskPercent
double
0.5
Risk %/lệnh (theo equity)
InpFixedLot
double
0.0
Lot cố định (0 = dùng Risk%)
InpMaxSpreadPips
double
3.0
Spread tối đa (pips) để vào lệnh
InpPipSizeOverride
double
0.0
Pip size override (0 = tự nhận, XAU pip = 0.1)
InpMaxOpenPositions
int
3
Số vị thế mở tối đa của bot
InpAllowBuy
bool
true
Cho phép Buy
InpAllowSell
bool
true
Cho phép Sell
InpServerToVN_Hours
int
4
Giờ CỘNG vào giờ server để ra giờ VN (server GMT+3 -> 4)
InpBlockOpenMinutes
int
10
Chặn N phút đầu mỗi phiên (tài liệu: 10-30p ngồi im)
InpAvoidComex
bool
true
Né 20h30-21h30 VN (giờ Comex)
Show all 40 inputs
Name
Type
Default
Description
InpNoAsiaBreakout
bool
true
Phiên Á: chặn lệnh breakout (breakout Á = khê)
InpFadeOnlyMonTue
bool
true
Thứ 2+3: chặn breakout (move = trap)
InpDayProfile
ENUM_DAY_PROFILE
DAY_NORMAL
Loại ngày hôm nay
InpFlattenBeforeNYLunch
bool
false
Đóng lệnh BUY trước 00:00 VN (NY lunch)
InpSwingWing
int
3
Số nến cánh fractal swing M1
InpBreakBufferPips
double
1.0
Đệm phá vỡ/SL (pips) ["+1 pip" của tài liệu]
InpUseBubeGate
bool
true
Chỉ trade thuận bias BuBe (ngược = chặn tàu)
InpBlockTwoSideRange
bool
true
Range lưỡng cực (2 đầu BuBe) -> không vào lệnh
InpTwoSideRangePips
double
15.0
Lưỡng cực: biên swing tối đa (pips)
InpTwoSideMinutes
int
30
Lưỡng cực: cả BuSW & BeSW xảy ra trong N phút
InpUseS1_Failbreakout
bool
true
S1: Failbreakout tại mốc (đóng cửa nhưng fail)
InpUseS2_LFH
bool
true
S2: Limit Fill Hike (limit 50% râu)
InpUseS3_C2DSW
bool
true
S3: C2DSW Failure (BuBe)
InpUseS4_InsideBar
bool
true
S4: Inside bar breakout M1
InpUseS5_FakeyD1
bool
true
S5: Fakey / Double Insidebar khung D
InpUseS6_BuildUp
bool
true
S6: Bob Volman Build-Up (EMA200 M1)
InpUseS7_EMA200
bool
true
S7: EMA200 M1 retest + Pinbar
InpUseS8_VAReact
bool
true
S8: POC/VAH/VAL/NakedPOC scalp
InpUseS9_OpenHunt
bool
true
S9: Fade sweep 13h00 (open Frankfurt)
InpUseS10_FTR
bool
true
S10: FTR (hunt đỉnh pullback + OSB)
InpUseS11_News
bool
false
S11: News straddle 2 đầu (OCO)
InpUseS12_OrderBlock
bool
true
S12: RBR/DBD Order Block
InpMinConfluence
int
2
Số lớp xác nhận tối thiểu (tài liệu: >=2)
InpLevelNearPips
double
5.0
Độ gần mốc để tính hội tụ (pips)
InpTP1NormalPips
double
20.0
TP1 ngày thường (pips)
InpTP1SidewayPips
double
30.0
TP1 ngày Á sideway (pips)
InpScalpTPMaxPips
double
30.0
TP scalp tối đa (20-30 pips)
InpBuildUpBars
int
25
S6: số nến M1 xét vùng nén
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone Alexdev257/XAU-trading-bot 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.
This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem
This expert advisor for MetaTrader 5 combines traditional quantitative strategies with machine learning via the ONNX runtime. It features multiple trading modes including Order Blocks, market structure analysis, and a hybrid AI strategy using neural network predictions trained in PyTorch. The system incorporates compre
Smart Trader 7CAS is an automated trading robot for MetaTrader 5 designed specifically for commodities including Gold, Silver, and Oil. It implements seven distinct trading modules or scenarios covering trend following, scalping, range trading, breakouts, Smart Money Concepts, reversals, and Fibonacci levels. The syste
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