此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这个 EA 在前 N 根 K 线的高低点挂突破单,逆势按马丁倍数加仓,可调初始手数、加仓倍数、挂单重置周期与买卖方向开关。本帖文件为 MT5 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:Babi_Ngepet.mq5,全文共 652 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(22 个)
string section0 = "General Parameters"int MagicNumber = 9191double InitialLot = 0.03string InitialLotHidden = "Current Lot is 0.03"bool AllowBuy = truebool AllowSell = trueint TakeProfit = 15int FindHighLowBackBars = 12int ResetAfterBars = 20string section1 = "Martingale Strategy"bool ReverseMartingale = falsedouble LotMultiplier = 2.0double SecureProfitMartingaleTarget = 20.0int DistanceMartingalePips = 28int MaxTradesInSeries = 8string section2 = "Time Strategy"bool AllowMonday = truebool AllowTuesday = truebool AllowWednesday = truebool AllowThursday = truebool AllowFriday = truestring ForbiddenDates = "2024.01.10,2024.02.28"
//+------------------------------------------------------------------+ //| BabiNgepet.mq5 | //| Copyright zvickyhac | //+------------------------------------------------------------------+ #property copyright "zvickyhac" #property version "1.00" #property description "Babi Ngepet - Martingale Scalping" #include <Trade\Trade.mqh> CTrade trade; input string section0 = "General Parameters"; input int MagicNumber = 9191; input double InitialLot = 0.03; input string InitialLotHidden = "Current Lot is 0.03"; input bool AllowBuy = true; input bool AllowSell = true; input int TakeProfit = 15; input int FindHighLowBackBars = 12; input int ResetAfterBars = 20; input string section1 = "Martingale Strategy"; input bool ReverseMartingale = false; input double LotMultiplier = 2.0; input double SecureProfitMartingaleTarget = 20.0; input int DistanceMartingalePips = 28; input int MaxTradesInSeries = 8; input string section2 = "Time Strategy"; input bool AllowMonday = true; input bool AllowTuesday = true; input bool AllowWednesday = true; input bool AllowThursday = true; input bool AllowFriday = true; input string ForbiddenDates = "2024.01.10,2024.02.28"; //--- Global Parameters ---
风险提示:这类 EA 带网格/马丁类加仓逻辑,顺风时看不出来,单边行情里仓位和浮亏会一起放大。上实盘前先在模拟盘跑够样本,把最大层数和总手数按自己能承受的回撤设死,不要用默认参数直接跑。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

