此资源为年度星钻会员专享,每日更新,收录于《大白EA宝库:星钻会员专属合集》。
这是一个持仓管理类工具 EA,管的是已经开出去的仓位:支持部分平仓、移动止损等持仓管理动作,适合给手动单或其他 EA 的单子做统一的出场管理。本帖文件为 MT4 源码,打包成 zip 下载,解压后在 MetaEditor 里编译使用,参数与文件开头见下方源码预览。
源码预览(先看代码,再决定下不下)
本帖是源码 EA:Quantora_Trade_Manager.mq4,全文共 705 行。下面是它的全部可调参数与文件开头,完整源码在上方下载区,星钻会员可见。
可调参数(36 个)
string InpScopeHeader = "========== TRADE SCOPE =========="ENUM_Q_SCOPE InpScope = Q_CURRENT_SYMBOLENUM_Q_MAGIC_FILTER InpMagicFilter = Q_MANUAL_ONLYint InpSpecificMagic = 0bool InpManageBuyTrades = truebool InpManageSellTrades = truestring InpStopsHeader = "========== AUTOMATIC SL / TP =========="bool InpSetMissingStopLoss = trueint InpStopLossPoints = 500bool InpSetMissingTakeProfit = trueint InpTakeProfitPoints = 1000string InpBreakEvenHeader = "========== BREAK EVEN =========="bool InpUseBreakEven = trueint InpBreakEvenTriggerPoints = 400int InpBreakEvenOffsetPoints = 30string InpTrailingHeader = "========== TRAILING STOP =========="bool InpUseTrailingStop = trueint InpTrailingStartPoints = 600int InpTrailingDistancePoints = 350int InpTrailingStepPoints = 50string InpProtectionHeader = "========== ACCOUNT PROTECTION =========="bool InpUseDailyLossLimit = falsedouble InpDailyLossLimitMoney = 100.0bool InpCloseAllAtDailyLoss = falsebool InpUseDailyProfitTarget = falsedouble InpDailyProfitTargetMoney = 200.0bool InpCloseAllAtDailyProfit = falsestring InpExecutionHeader = "========== EXECUTION =========="int InpSlippagePoints = 30int InpTimerSeconds = 1bool InpEnablePrintLog = truestring InpPanelHeader = "========== QUANTORA PANEL =========="bool InpShowPanel = trueENUM_BASE_CORNER InpPanelCorner = CORNER_LEFT_UPPERint InpPanelX = 15int InpPanelY = 145
//+------------------------------------------------------------------+
//| Quantora Trade Manager MT4 |
//| Professional Trading Utility for MetaTrader 4 |
//| |
//| Copyright © 2026 Quantora |
//| https://www.b123.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2026 Quantora"
#property link "https://www.b123.com/"
#property version "1.00"
#property strict
#property description "Professional automatic trade management utility for MetaTrader 4."
#property description "Automatic SL/TP, break-even, trailing stop and account protection."
//============================== ENUMS ======================================
enum ENUM_Q_SCOPE
{
Q_CURRENT_SYMBOL = 0,
Q_ALL_SYMBOLS = 1
};
enum ENUM_Q_MAGIC_FILTER
{
Q_MANUAL_ONLY = 0,
Q_ALL_TRADES = 1,
Q_SPECIFIC_MAGIC = 2
};
//============================== INPUTS =====================================
input string InpScopeHeader = "========== TRADE SCOPE ==========";
input ENUM_Q_SCOPE InpScope = Q_CURRENT_SYMBOL;
input ENUM_Q_MAGIC_FILTER InpMagicFilter = Q_MANUAL_ONLY;
input int InpSpecificMagic = 0;
input bool InpManageBuyTrades = true;
input bool InpManageSellTrades = true;
风险提示:EA 交易有风险,过往与参数表现不代表未来。正式使用前先在模拟盘跑够样本,确认在自己的点差、滑点环境下仍符合预期,再决定是否上实盘。
版本说明:资源随 MT4/MT5 版本迭代可能失效,如遇失效请在本帖留言反馈。

