DoubleDragon Gold
- 专家
- 版本: 3.78
- 激活: 5
简短描述
DoubleDragon Gold 是一款面向黄金(XAUUSD)M1 的自动交易管理程序。它建立双向对冲链,持续跟踪整链加权均价,当整链达到设定的小额目标时整体离场。五种档位与四种起手规格决定间距、目标与手数曲线;另提供多层保险丝(浮亏、深层久拖、回升回吐、日亏、周末收尾),这些保险丝默认关闭、按需开启。需要对冲账户。
完整描述
概述
DoubleDragon Gold 是一款面向黄金(XAUUSD)、运行于 M1 周期的全自动专家顾问。程序不依赖单次入场信号,而是管理一条双向(对冲)持仓链:让整链均价始终贴近最新成交的那一腿,当该方向的加权平均盈利达到设定目标时,整条链一起离场。加仓间距、目标距离与手数曲线由所选档位与起手规格决定。
程序需要对冲账户:多空两侧独立建仓,并各自作为一条链独立管理。
运作方式
- 建链:按固定或自适应间距逐层加仓,每一腿都会把整链均价拉近当前价格。
- 整链出场:当该方向整链的加权平均盈利达到目标时,整条链一起平仓。止盈挂在服务器端,成交后按 tick 补位,保持目标一致。
- 双向管理:多空两条链分开跟踪,可以在减少一侧风险敞口的同时,让另一侧继续运作。
- 自适应间距与目标:二者都可以跟随所选档位,也可以手动关闭或覆盖。
档位与起手规格
提供五种档位。它们的区别在于:加仓间距怎么算、整链出场目标怎么算、一条链平净后隔多久才能重新建链。
| 档位 | 加仓间距 | 整链出场目标 | 重开间隔 |
|---|---|---|---|
| 保守 | 随行情波动自适应(按 ATR) | 固定 | 75 秒 |
| 经典 | 固定间距,不随波动自适应 | 固定 | 75 秒 |
| 智能(默认) | 标准固定间距 | 随行情波动自适应 | 30 秒 |
| 激进 | 密集间距(腿与腿更近) | 波动目标更宽 | 30 秒 |
| D 配方 | 与"保守"同一套引擎,参数已固定好 | 固定 | 75 秒 |
表格怎么看
- 加仓间距:价格走多远才补下一腿。"随波动自适应"指程序会测量近期行情振幅(ATR,平均真实波幅),自动放宽或收紧间距。
- 整链出场目标:整条链的加权平均盈利达到多少就一起离场。波动型目标会跟随行情变化,固定目标不会。
- 重开间隔:同一方向平净后,隔多久才允许重新建链。
- D 配方是低风险档位:它跑的是"保守"引擎,只是参数已经固定好,不需要你自己调;适合想要最省心设置的用户。
四种起手规格(0.01 / 0.02 / 0.03 / 0.04)可与档位独立选择。程序不会按账户余额或合约规模自行缩放手数。
保护功能:哪些一直生效,哪些需要你自己开
上表的档位引擎(间距、目标、重开间隔)一直生效。其余保护层在默认配置下全部关闭,需要哪个就在参数里打开:
| 保护功能 | 默认 | 开启后的作用 |
|---|---|---|
| 日亏熔断( DailyLossGuard ) | 关闭 | 当日亏损达到 15% 时暂停新开与补单;已有持仓继续管理,不会强制平仓 |
| 持续浮亏保险丝 | 关闭 | 浮亏持续高于你设定的金额达到设定分钟数后,结束该链 |
| 深层久拖保险丝 | 关闭 | 链在深层停留过久且浮亏仍高于设定金额时,结束该链 |
| 离目标过远保险丝 | 关闭 | 价格离目标过远且浮亏超过设定金额时,结束该链 |
| 回升回吐保险丝 | 关闭 | 有效回升后,若回吐掉设定比例的亏损则结束该链 |
| 周末收尾 | 关闭 | 休市前尝试在允许亏损内退出 |
| 时段与新闻避让 | 关闭 | 在主要开市节点与日历事件前后暂停新开仓 |
| 检查修复 | 关闭 | 程序卡住时检查并恢复本地状态 |
这些全部是可选功能;即使全部关闭,程序仍会按上面的方式管理建链、目标与出场。
怎么开启保护,以及建议起始值
三步:
1. 把程序挂在 XAUUSD 的 M1 图上,按 F7(或在导航器里双击程序 → 输入参数)。
2. 在参数列表里找到对应分组:03–06 组是各条保险丝,07 组是时段与亏损避让,10 组是检查修复。
3. 填好数值后点确定。程序会在下一个 tick 生效;已经持有的链也会按新阈值重新判断。
两条金额口径规则:
- 所有金额都按美元基准填写。美分账户由程序自动换算(×100),所以你不需要按美分填数字。
- 阈值会按链出生时的倍率等比放大:起步手数更大的链,门槛也相应放大,因此不需要为每种起手规格单独配一套数值。
数值填 0(或 false)表示关闭该项 —— 默认全部都是关闭。
| 保护功能 | 需要设置的参数 | 建议起始值 |
|---|---|---|
| 持续浮亏保险丝 | InFloatEscUsd / InFloatEscMin / InFloatEscResetUsd / InFloatEscDeepUsd | 300 / 30 / 150 / 800 |
| 深层久拖保险丝 | InDeepDwellLayer / InDeepDwellMin / InDeepDwellUsd | 20 / 60 / 500 |
| 离目标过远保险丝 | InRetrEscUsd / InRetrEscFloatUsd | 30 / 400 |
| 回升回吐保险丝 | InRebEsc / InRebEscLayer / InRebEscArmUsd / InRebEscMinRebUsd / InRebEscRecPct / InRebEscGiveUsd / InRebEscGivePct | true / 25 / 250 / 60 / 0.5 / 150 / 0.5 |
| 日亏熔断 | DailyLossGuard | true(阈值固定 15%) |
| 周末收尾 | WeekendFinish / InWeekendLossLimit | true / 0(自动额度) |
| 时段与新闻避让 | UseSessionOpenGate / NewsAutoManage | true / true |
| 检查修复 | InAutoHeal | true |
上面的数值是供你按自己资金规模与风险偏好调整的起点,不构成资金规模建议或风险预算。实盘前请先在你的券商条件下用模拟账户验证。所有保险丝的作用都只是让链尽早结束:不会新开仓,也不会放大手数。
手动控制面板
图表面板提供两级暂停(先停新开,再停补单)、一键平仓(只平本程序在当前品种上的持仓,不会碰到其它 EA 或手工单),以及链状态、目标与保险丝状态的实时显示。
输入参数
参数按功能分组:常用设置、自动管理、五组保险丝、时段与亏损避让、暂停管理、显示与成交、检查修复,以及供工作室核对旧配置的维护分组。全部参数均为英文说明。完整参数表见下方。
推荐设置
- 品种:XAUUSD(或券商对应的黄金品种),周期 M1
- 账户:对冲账户;美元账户与美分账户均支持(单位自动识别)
- 先用默认档位与最小起手规格,并在模拟账户上核对设置
重要说明
- 本程序是交易管理工具,不保证任何交易结果;浮亏、点差、滑点与库存费都会影响实际结果。
- 使用期间请保持终端运行并开启算法交易。
- 同一品种若运行多个实例,请给每个实例设置互不重复的订单识别号(Magic),避免互相管理对方的仓位。
- 首次实盘前,请先在模拟账户上按你的券商条件测试。
支持
问题与缺陷反馈请通过 MQL5 市场产品页与内置聊天联系。
输入参数
Input parameters
01 - General Settings
| Parameter | Type | Default | Description |
|---|---|---|---|
| Preset | ENUM_STRATEGY_MODE | MODE_SMART | Strategy mode: Conservative / Classic / Smart / Aggressive / D recipe |
| InStartLotSpec | ENUM_START_LOT_SPEC | START_LOT_001 | Initial lot size (lots) |
| EnableLong | bool | true | Allow long entries; open long positions keep being managed when off |
| EnableShort | bool | true | Allow short entries; open short positions keep being managed when off |
| Magic | long | 300003 | Order ID (magic): must be unique per symbol and instance |
02 - Automatic Management
| Parameter | Type | Default | Description |
|---|---|---|---|
| InUseAtrStep | ENUM_OPTION_SWITCH | OPTION_DEFAULT | Auto spacing: follow preset / off / on |
| InUseAtpTarget | ENUM_OPTION_SWITCH | OPTION_DEFAULT | Auto take-profit distance: follow preset / off / on |
| InRescue | bool | false | Rescue refill: open an extra position to pull the average price closer when conditions are met |
| InDirMemo | bool | false | Cooldown on same-direction entries after a loss |
| InEscDayStop | bool | true | After an emergency fuse exit, stop new same-direction entries for the rest of the day |
03 - Fuse: Persistent Floating Loss Exit
| Parameter | Type | Default | Description |
|---|---|---|---|
| InFloatEscUsd | double | 0 | Floating loss (USD) at which monitoring starts (0 = off) |
| InFloatEscMin | int | 5 | Minutes of sustained floating loss before exit |
| InFloatEscResetUsd | double | 250 | Floating loss (USD) retreat that cancels the timer |
| InFloatEscDeepUsd | double | 700 | Floating loss (USD) that triggers an immediate exit (0 = off) |
04 - Fuse: Deep Dwell Exit
| Parameter | Type | Default | Description |
|---|---|---|---|
| InDeepDwellLayer | int | 0 | Layer from which deep dwell monitoring starts (0 = off) |
| InDeepDwellMin | int | 45 | Minutes of deep dwell before the exit check |
| InDeepDwellUsd | double | 350 | Minimum floating loss (USD) at check time to exit |
05 - Fuse: Too Far From Take Profit
| Parameter | Type | Default | Description |
|---|---|---|---|
| InRetrEscUsd | double | 0 | Distance from take profit (quote spread) that triggers exit (0 = off) |
| InRetrEscFloatUsd | double | 0 | Additional minimum floating loss (USD; 0 = no extra condition) |
06 - Fuse: Give-Back After Rebound
| Parameter | Type | Default | Description |
|---|---|---|---|
| InRebEsc | bool | false | Enable give-back exit after a rebound |
| InRebEscLayer | int | 25 | Minimum layer to start monitoring |
| InRebEscArmUsd | double | 200 | Minimum floating loss (USD) to start monitoring |
| InRebEscMinRebUsd | double | 50 | Minimum rebound (USD) to count as valid |
| InRebEscRecPct | double | 0.5 | Minimum share of the loss recovered to count as valid (0-1; 0 = no limit) |
| InRebEscGiveUsd | double | 150 | Give-back (USD) after a valid rebound that triggers exit |
| InRebEscGivePct | double | 0.5 | Give-back as a share of the rebound (0-1; first threshold wins; 0 = USD only) |
07 - Sessions and Loss Avoidance
| Parameter | Type | Default | Description |
|---|---|---|---|
| NewsAutoManage | bool | false | News avoidance: pause new entries and refills around events, keep managing open positions |
| WeekendFinish | bool | false | Weekend finish: try to exit within the allowed loss before market close |
| InWeekendLossLimit | double | 0 | Allowed weekend loss: 0 = automatic; positive values in account display units (USD account = USD, cent account = cents) |
| UseSessionOpenGate | bool | false | Session open gate: pause new entries and tighten targets at major market opens |
| DailyLossGuard | bool | false | Daily loss guard: after triggering, pause new entries and refills, keep managing open positions |
08 - Pause Management
| Parameter | Type | Default | Description |
|---|---|---|---|
| InPauseTightenMinutes | int | 30 | Minutes after pausing during which take profit is tightened |
09 - Display and Execution
| Parameter | Type | Default | Description |
|---|---|---|---|
| ShowPanel | bool | true | Show trading panel |
| PanelCompact | bool | false | Panel collapsed by default |
| PanelX | int | 8 | Panel horizontal position (pixels) |
| PanelY | int | 24 | Panel vertical position (pixels) |
| ShowChartArt | bool | true | Show dark chart background |
| SlippageUsd | double | 0.30 | Allowed slippage (gold price distance, USD per ounce) |
10 - Check and Repair
| Parameter | Type | Default | Description |
|---|---|---|---|
| InAutoHeal | bool | false | Auto check and repair: verify and restore local state when the EA stalls |
