Xauusdt MT5 executes a grid-based strategy with martingale lot scaling, where position sizes are increased by a user-defined multiplier after losses. The system features a dual-stage grid distance mechanism that adjusts spacing based on current floating drawdown thresholds. Risk management is handled through basket profit targets, maximum spread filters, and specific price ceilings or floors for order entry. The expert advisor includes time-based session controls and supports hedging through trend and counter-trend protection settings.
Martingale lot scaling with adjustable multiplier
Dual-stage grid distance logic based on drawdown
Price-level filters for initial and recovery orders
Read from 天哥启程.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
On_top_of_this_price_not_Buy_first_order
double
0.0
B以上不开(首)
On_under_of_this_price_not_Sell_first_order
double
0.0
S以下不开(首)
On_top_of_this_price_not_Buy_order
double
0.0
B以上不开(补)
On_under_of_this_price_not_Sell_order
double
0.0
S以下不开(补)
Limit_StartTime
string
00:00
限价开始时间
Limit_StopTime
string
24:00
限价结束时间
CloseBuySell
bool
true
逆势保护开?
HomeopathyCloseAll
bool
true
顺势保护开?
Homeopathy
bool
false
完?
Over
bool
false
平仓后停止交易
NextTime
int
0
整体平仓后多少秒后新局
Money
double
2000.0
浮亏多少启用第二参数
Show all 40 inputs
Name
Type
Default
Description
FirstStep
int
30
首单距离
MinDistance
int
60
最小距离
TwoMinDistance
int
220
第二最小距离
StepTrallOrders
int
5
挂单追踪点数
Step
int
200
补单间距
TwoStep
int
600
第二补单间距
OpenMode
ENUM_OPEN_MODE
MODE_NO_DELAY2
OpenMode
TimeZone
ENUM_TIME_ZONE
TZ_1MIN
开单时区
sleep
int
30
开单时间间距(秒)
MaxLoss
double
10000.0
单边浮亏?
MaxLossCloseAll
double
50.0
单边平仓限制
lot
double
0.01
起始手数
Maxlot
double
2.0
最大开单手数
PlusLot
double
0.0
累加手数
K_Lot
double
1.3
倍率
DigitsLot
int
2
下单量的小数位
CloseAll
double
0.5
整体平仓金额
Profit
bool
true
单边平仓额累加开?
StopProfit
double
2.0
单边平仓金额
StopLoss
double
0.0
止损金额
Magic
int
958999848
Magic
Totals
int
50
最大单量
MaxSpread
int
100
点差限制
Leverage
int
100
平台杠杆限制
EA_StartTime
string
00:00
EA开始时间
EA_StopTime
string
24:00
EA结束时间
clr1
color
clrMediumSeaGreen
多单平均价颜色
clr2
color
clrCrimson
空单平均价颜色
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone 4everfantasygaming/xauusdt_mt5 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.
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa
Grid Hedge Combine is a MetaTrader 5 expert advisor designed to automate market entries using a mixture of grid and hedging techniques. It opens initial trades and layers subsequent orders at predefined pip intervals when the price moves against the position. The EA features lot size scaling, allowing for aggressive or
Mr X Grid Hedge is a MetaTrader 5 expert advisor specifically designed for XAUUSD trading. It utilizes a grid strategy with entry signals confirmed by a combination of EMA crossovers, RSI bounds, and ATR volatility filters. The system manages risk through automated hedging triggered by drawdown or specific grid depth.
STO Martin is a grid-based trading robot for MetaTrader 5 that uses technical indicators to manage entries and recoveries. It employs a Stochastic Oscillator for execution signals and a Moving Average to filter trades according to the prevailing trend. The EA features a martingale lot-scaling system that adds positions
This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering. It initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-bas
This MetaTrader 5 expert advisor is designed for trading XAUUSD using a trend-following approach. It identifies entries through a triple Exponential Moving Average crossover system, requiring ADX momentum confirmation before opening positions. To manage losing trades, the EA employs a martingale strategy that layers or