MT5 EA源码:ASQ Safe Scalping v1.20 七条件共振突破剥头皮|星钻会员尊享 - 资源合集论坛 - Meta Trade 4 - BBTrading

MT5 EA源码:ASQ Safe Scalping v1.20 七条件共振突破剥头皮|星钻会员尊享

此资源为星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。

这是一个 EMA 趋势方向加 ATR 强度过滤、RSI 健康区与动量确认的七条件突破剥头皮 EA,七个条件须同时满足才开仓,带 TP1 部分平仓。本帖文件为 MT5 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。

源码预览(先看代码,再决定下不下)

本帖是源码 EA:ASQ_Safe_Scalping.mq5,全文共 350 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。

可调参数(41 个)

  • int InpMagicNumber = 202503
  • string InpTradeComment = "ASQv1"
  • int InpMaxSlippage = 10
  • ENUM_ASQ_LOT_MODE InpLotMode = ASQ_LOT_FIXED
  • double InpFixedLots = 0.01
  • double InpRiskPercent = 1.0
  • double InpMaxDrawdownPct = 10.0
  • int InpMaxDayTrades = 10;(Max trades/day (0=unlimited))
  • int InpStopLoss = 225
  • int InpTakeProfit = 250
  • bool InpUseBreakeven = true
  • int InpBreakevenStart = 100
  • int InpBreakevenOffset = 10
  • bool InpUseTrailing = false
  • int InpTrailStart = 150
  • int InpTrailStep = 50
  • bool InpUsePartialClose = false
  • int InpTP1Points = 150
  • double InpTP1ClosePercent = 50.0
  • int InpEmaFast = 150
  • int InpEmaSlow = 510
  • ENUM_ASQ_TREND_STRENGTH InpTrendStrength = ASQ_TREND_MODERATE
  • bool InpUseMTF = false
  • ENUM_TIMEFRAMES InpMTFTimeframe = PERIOD_H1
  • int InpMTFEmaFast = 50
  • int InpMTFEmaSlow = 200
  • int InpRsiPeriod = 10
  • double InpRsiBuyMin=40.0, InpRsiBuyMax=65.0
  • double InpRsiSellMin=35.0, InpRsiSellMax=60.0
  • int InpBreakoutLookback = 20
  • double InpBreakoutBuffer = 0.5
  • int InpAtrPeriod = 125
  • bool InpUseSessionFilter = true
  • int InpSessionStartHour=8, InpSessionEndHour=20
  • bool InpAvoidFriday = true
  • int InpFridayCutoffHour = 16
  • bool InpUseSpreadFilter = true
  • int InpMaxSpread = 30
  • bool InpUseNewsFilter = true
  • string 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 版本迭代可能失效,如遇失效请在本帖留言反馈。

请登录后发表评论