此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这个 EA 是基于 ATR 动态调整网格间距的网格 EA,网格步长按 ATR 倍数自适应行情波动,可调 MagicNumber、起始手数、时间框架、最大网格层数、价格偏离与步进 ATR 乘数、止损/止盈,属于网格加仓逻辑,高风险。本帖文件为 MT4 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:G1_Adaptive_Grid_MT4.mq4,全文共 246 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(0 个)
//+------------------------------------------------------------------+
//| Adaptive Grid Mt4.mq4 |
//| Copyright 2022, BkT |
//| https://www.b123.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright 2022, BkT"
#property link "https://www.b123.com/"
#property version "1.00"
#property strict
//---
sinput string InpA =">>> Magic id, volume & tf <<<";//.
sinput int Inp_MagicNumber = 98765;//Magic number
sinput double Inp_Lot = 0.01;//Fixed volume
sinput ENUM_TIMEFRAMES Wtf = PERIOD_M15;// Working tf
sinput string InpB =">>> Grid max orders & timer <<<";//.
input int Inp_nGrid = 10,// n grid
Inp_nBars = 15;// n bar timer, working tf
sinput string InpC =">>> Grid level ATR multipliers <<<<";//.
input double Inp_Poffset = 0.8,//Price deviation
Inp_Pstep = 0.5,// Grid step
Inp_StopLoss = 2.4,//Stop loss
Inp_TakeProfit = 2.8;//Take profit
//---
int
tkt=0,
acc;
bool
demo,
dcomm,
tester;
string
mode,
server,
currsym,
tfcomm,
风险提示:这类 EA 带网格/马丁类加仓逻辑,顺风时看不出来,单边行情里仓位和浮亏会一起放大。上实盘前先在模拟盘跑够样本,把最大层数和总手数按自己能承受的回撤设死,不要用默认参数直接跑。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

