Operating primarily on the M1 timeframe, the EA identifies anchor points to place pending orders around liquidity bands while adjusting grid spacing according to ATR volatility. It incorporates equity compounding, trend scoring to gate grid entries during strong directional moves, and spread filters. Risk management features include net exposure caps, maximum position limits, daily loss budgets, and daily profit targets. Notable limits include aggressive martingale multiplier scaling, grid layering, and lack of fixed per-order stop losses.
Read from king-v4-balance-优化版.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
HaltAfterClose
bool
false
平仓后停止交易
StartLot
double
0.04
起始手数
GridLotMultiplier
double
1.50
震荡基准马丁倍率
TrendMultiplierMin
double
1.10
趋势内马丁倍率下限
EquityBaseline
double
10000.0
基准账户余额(手数按当前权益相对此值复利缩放)
EquityScaleCap
double
200.0
复利缩放上限倍数
StepAtrMultiplier
double
1.00
网格间距系数(× M1周期ATR)
CommissionPerLot
double
6.0
每手手续费(美元,点差账户填0)
Slippage
int
10
平仓允许滑点(点)
Magic
long
888999
MaxOrders
int
50
最大持仓总数
MaxSpread
int
25
点差限制(点)
Show all 38 inputs
Name
Type
Default
Description
NetExposureCap
double
0.08
净敞口上限(多单减空单绝对值)
MaxPerSide
int
10
单侧最大持仓数
FastTakeProfit
double
0.80
单仓快速止盈($/0.01手)
StartTime
string
00:00
EA开始时间
StopTime
string
24:00
EA结束时间
DailyProfitTarget
double
0.0
每日盈利目标,>0启用
NewsPauseMinutes
int
0
新闻前后暂停(分钟),0=关闭
UseLiquidityZones
bool
true
启用流动性区
LZ_LookbackBars
int
60
锚点回看K线数
LZ_SkipRecentBars
int
3
跳过最近K线数
LZ_TriggerBandPoints
int
300
触发带宽度(锚点±N点)
LZ_FirstOrderGapPoints
int
600
首单距锚点距离
LZ_OrderSpacingPoints
int
300
档位间距(点)
LZ_OrdersPerSide
int
4
每侧挂单档数
LZ_FirstLotFraction
double
0.5
首单手数系数(×对侧持仓量)
LZ_BreakoutMultiplierPerLevel
double
4.0
突破侧倍率(每档×N)
LZ_RejectionMultiplierPerLevel
double
2.0
反弹侧倍率(每档×N)
LZ_BreakoutTotalCap
double
4.0
突破侧总手数上限(×对侧持仓量)
LZ_RejectionTotalCap
double
2.0
反弹侧总手数上限(×对侧持仓量)
LZ_LargeOrdersFirst
bool
true
大手数优先排列
LZ_TrailFakeBreakout
bool
true
假突破跟踪开关
LZ_TrailStepPoints
int
50
跟踪步长(点)
LZ_TrendScoreMin
double
45.0
趋势门控分值(低于此值不挂单)
LZ_DailyLossBudgetPct
double
5.0
日内亏损预算(%,超过则当日停挂)
LZ_OcoFloatingLossPct
double
2.0
撤单浮亏阈值(%,低于则撤单)
LZ_ZoneRecycleMinutes
int
30
冷却时间(分钟)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone Y1110a/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.
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
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
This Expert Advisor for MetaTrader 5 focuses on gold trading through a combination of mean-reversion signals and a grid management system. It uses multi-timeframe filters, including exponential moving averages and ADX on the H1 timeframe, to identify trend direction while executing entries on M15 based on RSI and Bolli
Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per
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.