MT5 EA源码:BEC Trade Breakeven Trail Manager 自动保本+动态追踪止损管理|星钻会员尊享 - 资源合集论坛 - Meta Trade 4 - BBTrading

MT5 EA源码:BEC Trade Breakeven Trail Manager 自动保本+动态追踪止损管理|星钻会员尊享

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

这是一个自动保本加动态追踪止损的管理型 EA,带一键平仓面板(按盈亏、类型、魔术号过滤)、剥头皮模式与实时净值仪表盘。本帖文件为 MT5 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。

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

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

可调参数(26 个)

  • int ProfitCurToTrigger = 5;(Total profit (currency) to trigger BE)
  • int AdditionalProfitCur = 5;(Additional profit (currency) for BE)
  • ENUM_ADJUST_TO AdjustToPrice = ADJUST_TO_BID;(Adjust single BE to which price?)
  • int DelayBetweenAdjustments = 1;(Delay (sec) between adjustments)
  • bool AdjustForSwapsCommission= false;(Adjust for swaps & commission?)
  • int TrailingStop = 30;(Trailing Stop (points))
  • int TrailingProfit = 30;(Profit in points to activate trailing)
  • double ScalpingLot = 0.01
  • int ScalpingTrailPips = 30
  • int ScalpingStartPips = 30;(start trailing after profit)
  • ENUM_CONSIDER OnlyType = All;(Apply to)
  • bool UseMagic = false;(Filter by magic number)
  • int MagicNumber = 0;(Magic number)
  • bool UseComment = false;(Filter by comment)
  • string CommentFilter = "";(Comment filter string)
  • bool EnableBEParam = false;(Enable Breakeven EA)
  • bool EnableTrailParam = false;(Enable Trailing Stop)
  • bool EnableNotify = false;(Enable notifications)
  • bool SendAlert = false;(Send alert)
  • bool SendApp = false;(Send mobile notification)
  • bool SendEmail = false;(Send email)
  • bool ShowPanel = true;(Show dashboard panel)
  • int Xoff = 15;(Horizontal offset)
  • int Yoff = 30;(Vertical offset)
  • ENUM_BASE_CORNER ChartCorner = CORNER_LEFT_LOWER;(Chart corner)
  • int FontSize = 9;(Font size)
//+------------------------------------------------------------------+
//|                                        BEC_Combined_BE_Trail.mq5 |
//|                                  BEC - Breakeven & Trail Manager |
//|                            Combines Single BE + Trailing Stop EA |
//+------------------------------------------------------------------+
#property link          "https://www.b123.com/"
#property version       "1.00"
#property copyright     "BEC Trading Systems - 2026"
#property description   "BEC Combined Breakeven & Trailing Stop Manager"
#property description   "Automatically manages breakeven and trailing stops."
#property description   "https://www.b123.com/"
#property description   "WARNING: Use this software at your own risk."

#include <Trade/Trade.mqh>

//--- Enums
enum ENUM_CONSIDER
  {
   All  = -1,                  // ALL ORDERS
   Buy  = POSITION_TYPE_BUY,   // BUY ONLY
   Sell = POSITION_TYPE_SELL   // SELL ONLY
  };

enum ENUM_ADJUST_TO
  {
   ADJUST_DONT,    // Don't adjust
   ADJUST_TO_ASK,  // Adjust to Ask price
   ADJUST_TO_BID   // Adjust to Bid price
  };

enum mode_of_operation { Risk, Reward };

//============================================================
//  INPUT PARAMETERS
//============================================================

风险提示:EA 交易有风险,过往与参数表现不代表未来。正式使用前先在模拟盘跑够样本,确认在自己的点差、滑点环境下仍符合预期,再决定是否上实盘。

版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

请登录后发表评论