此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这是 XAUUSD 高波动突破 EA:保本垫、追踪止损、滑点容差全部用 ATR 倍数动态计算,带交易时段过滤与资金保护;作者声明非网格非马丁。本帖文件为 MT5 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:Apex_Velocity_XAUUSD.mq5,全文共 2094 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(148 个)
string InpSymbols = "XAUUSD";(Trading symbol)bool InpSymbolSuffixAuto = true;(Automatically detect symbol suffixes)int InpMagicNumber = 30836;(EA magic number)string InpComment = "ApexVelocity v1.0";(Trade comment)int InpCalcMethod = 1;(Lot calculation: 0=Risk%, 1=Fixed)double InpRiskPercent = 1.0;(Risk per trade (%))double InpFixedLot = 0.01;(Fixed lot size)int InpMaxPositions = 1;(Maximum open positions)int InpVolumePeriod = 5;(Volume analysis period)double InpVolumeThreshold = 1.5;(Minimum volume threshold)int InpMAPeriod = 9;(Moving Average period)int InpATRPeriod = 14;(ATR calculation period)double InpATRMultiplierSL = 2.5;(ATR multiplier for Stop Loss)double InpATRMultiplierTP = 4.5;(ATR multiplier for Take Profit)int InpEntryMode = 1;(Entry mode: 0=Bar close, 1=Real-time)double InpAggrVolumeThreshold = 1.1;(Aggressive entry volume threshold)double InpMinBodyPercent = 0.85;(Minimum candle body ratio (85%))double InpBreakoutBufferATR = 0.1;(Breakout buffer (ATR multiplier; digit-independent))double InpMinVolatilityATR = 0.7;(Minimum volatility threshold (ATR multiplier))bool InpAllowHedging = false;(Allow simultaneous opposite positions)bool InpBreakEvenOn = true;(Enable automatic break-even)double InpBreakEvenATR = 0.3;(Profit threshold to trigger break-even (ATR multiplier))double InpBreakEvenPaddingATR = 0.05;(Break-even buffer (ATR multiplier))bool InpTrailingOn = true;(Enable trailing stop)double InpTrailingATR = 0.05;(Trailing distance (ATR multiplier))bool InpUseSession = true;(Enable session-based trading)int InpStartHour = 13;(Trading start hour (broker time))int InpEndHour = 21;(Trading end hour (broker time))int InpCloseOnWeekend = 22;(Friday closure hour (-1 to disable))bool InpAvoidTripleSwap = true;(Avoid triple-swap periods)double InpMaxDrawdownPercent = 15.0;(Maximum drawdown (%))bool InpEnableDDClose = false;(Enable automatic closure at drawdown limit)double InpMaxSpreadATR = 0.2;(Maximum spread threshold (ATR multiplier))int InpLatencyJitter = 0;(Execution latency variation setting)string InpSymbols = "XAUUSD";(Trading symbol)bool InpSymbolSuffixAuto = true;(Automatically detect symbol suffixes)int InpMagicNumber = 30836;(EA magic number)string InpComment = "ApexVelocity v1.1";(Trade comment)int InpCalcMethod = 1;(Lot calculation: 0=Risk%, 1=Fixed)double InpRiskPercent = 1.0;(Risk per trade (%))
//+------------------------------------------------------------------+ //| ApexVelocityEA.mq5 | //| Copyright 2026, Ritz EAneha | Apex Trading Systems | //| https://www.b123.com/ | //+------------------------------------------------------------------+ #property copyright "Copyright 2026, Ritz EAneha | Apex Trading Systems" #property link "https://www.b123.com/" #property version "1.0" #property description "Apex Velocity trading system" #include <Trade/Trade.mqh> #include <Trade/PositionInfo.mqh> #include <Trade/AccountInfo.mqh> #include <Trade/SymbolInfo.mqh> // FOR TIMEFRAME M5 (XAUUSD) input group "------- BASICS -------" input string InpSymbols = "XAUUSD"; // Trading symbol input bool InpSymbolSuffixAuto = true; // Automatically detect symbol suffixes input int InpMagicNumber = 30836; // EA magic number input string InpComment = "ApexVelocity v1.0"; // Trade comment input group "------- RISK SETUP -------" input int InpCalcMethod = 1; // Lot calculation: 0=Risk%, 1=Fixed input double InpRiskPercent = 1.0; // Risk per trade (%) input double InpFixedLot = 0.01; // Fixed lot size input group "------- SIGNAL CONFIG -------" input int InpMaxPositions = 1; // Maximum open positions input int InpVolumePeriod = 5; // Volume analysis period input double InpVolumeThreshold = 1.5; // Minimum volume threshold input int InpMAPeriod = 9; // Moving Average period input int InpATRPeriod = 14; // ATR calculation period input double InpATRMultiplierSL = 2.5; // ATR multiplier for Stop Loss
风险提示:这类 EA 带网格/马丁类加仓逻辑,顺风时看不出来,单边行情里仓位和浮亏会一起放大。上实盘前先在模拟盘跑够样本,把最大层数和总手数按自己能承受的回撤设死,不要用默认参数直接跑。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

