此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这是一个 EMA 趋势方向加 ATR 强度过滤、RSI 健康区与动量确认的七条件突破剥头皮 EA,七个条件须同时满足才开仓,带 TP1 部分平仓。本帖文件为 MT5 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:ASQ_Safe_Scalping.mq5,全文共 350 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(41 个)
int InpMagicNumber = 202503string InpTradeComment = "ASQv1"int InpMaxSlippage = 10ENUM_ASQ_LOT_MODE InpLotMode = ASQ_LOT_FIXEDdouble InpFixedLots = 0.01double InpRiskPercent = 1.0double InpMaxDrawdownPct = 10.0int InpMaxDayTrades = 10;(Max trades/day (0=unlimited))int InpStopLoss = 225int InpTakeProfit = 250bool InpUseBreakeven = trueint InpBreakevenStart = 100int InpBreakevenOffset = 10bool InpUseTrailing = falseint InpTrailStart = 150int InpTrailStep = 50bool InpUsePartialClose = falseint InpTP1Points = 150double InpTP1ClosePercent = 50.0int InpEmaFast = 150int InpEmaSlow = 510ENUM_ASQ_TREND_STRENGTH InpTrendStrength = ASQ_TREND_MODERATEbool InpUseMTF = falseENUM_TIMEFRAMES InpMTFTimeframe = PERIOD_H1int InpMTFEmaFast = 50int InpMTFEmaSlow = 200int InpRsiPeriod = 10double InpRsiBuyMin=40.0, InpRsiBuyMax=65.0double InpRsiSellMin=35.0, InpRsiSellMax=60.0int InpBreakoutLookback = 20double InpBreakoutBuffer = 0.5int InpAtrPeriod = 125bool InpUseSessionFilter = trueint InpSessionStartHour=8, InpSessionEndHour=20bool InpAvoidFriday = trueint InpFridayCutoffHour = 16bool InpUseSpreadFilter = trueint InpMaxSpread = 30bool InpUseNewsFilter = truestring InpNewsTime1="", InpNewsTime2="", InpNewsTime3=""
//+------------------------------------------------------------------+
//| ASQ_SafeScalping_CodeBase.mq5 |
//| AlgoSphere Quant - ASQ Safe Scalping v1.10 |
//| https://www.b123.com/ |
//+------------------------------------------------------------------+
//| Single-file Code Base version (free, open-source). |
//| v1.10: Trailing, MTF, DayCap, PartialClose, PeakDD |
//| |
//| STRATEGY: 6 conditions (+ optional 7th MTF) must align: |
//| 1. EMA Trend Direction 2. Trend Strength (ATR) |
//| 3. Price Position 4. Breakout Detection |
//| 5. RSI Filter 6. Momentum Confirmation |
//| 7. [Optional] Higher-TF EMA agreement |
//+------------------------------------------------------------------+
#property copyright "AlgoSphere Quant"
#property link "https://www.b123.com/"
#property version "1.20"
#property description "ASQ Safe Scalping v1.20 - Professional Breakout Scalping System"
#property description "7-condition entry: EMA Trend + Breakout + RSI + MTF confirmation"
#property description "Trailing stop + Partial close (fixed) + Daily limiter + Peak DD tracker"
#property description "v1.20 bug fixes | Free open-source | AlgoSphere Quant"
#include <Trade\Trade.mqh>
enum ENUM_ASQ_LOT_MODE { ASQ_LOT_FIXED=0, ASQ_LOT_RISK_PCT=1 };
enum ENUM_ASQ_TREND_STRENGTH { ASQ_TREND_WEAK=0, ASQ_TREND_MODERATE=1, ASQ_TREND_STRONG=2 };
input group "====== GENERAL ======"
input int InpMagicNumber = 202503;
input string InpTradeComment = "ASQv1";
input int InpMaxSlippage = 10;
input group "====== RISK ======"
input ENUM_ASQ_LOT_MODE InpLotMode = ASQ_LOT_FIXED;
input double InpFixedLots = 0.01;
风险提示:EA 交易有风险,过往与参数表现不代表未来。正式使用前先在模拟盘跑够样本,确认在自己的点差、滑点环境下仍符合预期,再决定是否上实盘。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

