Ultimate Dual Grid EA
- Experts
- 버전: 1.2
- 업데이트됨: 13 8월 2026
- 활성화: 20
XAUUSD DualGrid EA Ultimate is a professional dual‑direction grid trading system for MetaTrader 5, designed for Gold (XAUUSD) and other volatile symbols. It operates two independent grids (BUY and SELL) simultaneously, automatically opening averaged positions as price moves against each grid. The strategy combines martingale position sizing, ATR‑based dynamic spacing, multi‑level partial take‑profit, smart loss recovery, and advanced hedging – all wrapped in a real‑time dashboard for full monitoring.
Core Features (Condensed)
-
Dual Grid Operation – BUY grid opens as price falls; SELL grid opens as price rises. Each grid has its own base price, step, TP, and max orders.
-
ATR‑Adaptive Spacing – Grid step, offset, TP, and SL dynamically adjust to current volatility (ATR 14‑period). Minimum step protection prevents too‑tight grids.
-
Martingale Lot Scaling – Lot size increases every N grid levels (default 3) by a fixed increment, capped by a global maximum and a balance‑based percentage limit.
-
Smart Recovery Mode – Automatically activates when equity drawdown exceeds a set percentage (default 15%). Recovery orders use higher lot multipliers (1.2x) to reclaim losses, with a target percentage and max order count.
-
Partial Take‑Profit (3 Levels) – Closes a percentage of positions at 40%, 60%, and 80% of total grid profit, prioritising least‑profitable trades first.
-
Advanced Hedging – Triggers partial closure of losing positions when the loss/profit ratio exceeds dynamic thresholds (0.25–0.75), balancing exposure.
-
Basket Trailing Stop – Activates after profit reaches a percentage of the TP target (default 50%); closes all positions in that grid if profit retraces by a defined step (default 30% from peak).
-
Dynamic Volatility Adjustment – Grid step automatically expands (×1.5) in high volatility and contracts (×0.7) in low volatility, based on a 20‑period average ATR.
-
Comprehensive Risk Protections – Max loss cut‑off, spread filter, margin usage limit, minimum free margin, and minimum margin level checks before each new order.
-
Live Dashboard – Displays balance, equity, profit, margin levels, grid status, ADX/ATR/RSI, and recovery mode – updated in real time.
Key Parameters (Quick Overview)
| Group | Example Defaults |
|---|---|
| Lot & Grid | Base lot 0.01, max 0.5, max orders per grid 5, grid step 1000, offset 500 |
| TP | Base 600 pts, +150 per level, ATR multiplier 0.5 |
| SL | ATR multiplier 1.5, min 200 pts |
| ATR | Period 14, multiplier 1.5, min step 600 |
| Smart Recovery | Trigger 15% loss, lot multiplier 1.2, target 50%, max 2 orders |
| Partial TP | Levels 40/60/80%, close 30/30/40% |
| Hedge | Start ratio 0.25, max 0.75, close 40% of losing side |
| Trailing | Activate at 50% TP, retrace 30% |
| Dynamic | High volatility 1.8, low 0.6, update every 10 ticks |
| Risk | Max loss disabled, margin usage 40%, max spread 500, min margin level 250% |
Setup & Recommendations
-
Install – Place .mq5 in MQL5/Experts and compile.
-
Attach – To XAUUSD (any timeframe; H1/H4 recommended).
-
Adjust – Start with conservative lot (0.01) and 5 max orders per grid.
-
Auto‑Trading – Enable and monitor the dashboard.
-
Test – Always validate on a demo account first.
Recommended account size: Minimum $500 for 0.01 lot.
Broker requirements: Hedging allowed, market execution, low spreads.
Risk Warnings
-
Grid/Martingale strategies can amplify losses during strong trends – use moderate lot sizes and low max orders.
-
Monitor margin levels – grids can accumulate positions quickly.
-
Not a guaranteed profit – past performance does not indicate future results.
-
Always backtest and forward‑test on demo before live deployment.
This EA is built for disciplined traders who want a systematic, volatility‑aware grid system with multiple safety layers. Use it with proper risk management and regular supervision.
