Midas Grid EA
- Experts
-
Noel Anjao Alube
Dedicated to developing smart, data-driven trading solutions with a strong focus on performance, risk management, and innovation. Committed to transforming trading ideas into automated strategies. - 버전: 3.82
- 활성화: 5
Midas Grid EA — Intelligent Cost-Averaging Grid System for XAUUSD
Midas Grid EA is a fully automated Expert Advisor built exclusively for XAUUSD (Gold) on MetaTrader 5. It combines a triple-confirmation entry filter with an ATR-dynamic grid structure to deploy capital only when market conditions justify it, and exit cleanly when they no longer do.
Most grid EAs open positions indiscriminately. Midas Grid EA does not. Before deploying a new cycle, the system evaluates three independent technical conditions simultaneously: an EMA crossover for trend bias, an ATR volatility gate to avoid explosive or dead markets, and a Bollinger Band exhaustion check to confirm the price is not at a structural extreme. All three must align before a single order is placed. If they do not, the EA waits.
Once a cycle opens, the grid spacing is not fixed. It is calculated fresh each cycle from the H4 Average True Range, scaled to current market volatility. During high-volatility sessions the grid widens automatically to avoid clustering trades into adverse moves. During low-volatility windows the floor spacing keeps the system active and efficient. The grid levels are set once per cycle and do not shift. Every level carries its own take profit one spacing interval above or below the entry, which means partial recovery begins immediately as price oscillates — even before the cycle closes.
Lot sizing follows a mild multiplier model, not martingale. The multiplier is capped between 1.0 and 1.35 and the growth is gradual. On the three built-in risk profiles, the system derives the base lot automatically from account equity — the user never touches a lot size input.
Capital protection is layered. A cycle-level kill switch closes the entire grid if floating drawdown reaches a configurable percentage of cycle equity. An account-level hard stop closes everything and halts the EA if total equity drawdown breaches the limit set in inputs. Both limits are checked every few ticks, not just on bar close. There is no scenario in which the EA allows losses to compound unchecked.
The session control features are practical and complete. The EA closes all positions automatically on Friday evening and resumes fresh on Monday morning. It suspends trading automatically between December 15 and January 15 to avoid holiday-period illiquidity. A pause toggle is available directly on the chart panel — no settings dialog needed, no EA restart required.
The chart panel renders in a dark-luxury theme with gold and bronze accents. It displays account balance, current floating drawdown as both percentage and dollar value, today's realised profit and loss, the active cycle number with its current profit, the strategy status in plain language, and the count of open positions. All values update in real time. The panel is non-intrusive, fixed to the top-left corner, and does not interfere with manual analysis.
The entire EA is a single MQL5 file with no external includes and no DLL dependencies. It is compatible with both hedging and netting accounts. State is persisted through global variables so an EA restart or terminal reconnect does not lose the active cycle or position tracking. The EA recovers its grid positions on restart by scanning open positions against the stored session anchor.
Core feature summary
Triple entry filter using EMA trend bias, ATR volatility range, and Bollinger Band exhaustion confirmation. ATR-dynamic grid spacing recalculated each cycle from H4 data. Mild lot multiplier with three preset risk profiles scaling automatically from account equity. Per-level take profit built into every grid order. Cycle-level drawdown kill switch. Account-level hard stop with alert and EA halt. Automatic Friday close and Monday resume. Automatic December to January holiday pause. Live chart panel with pause toggle. Single-file MQL5 build with no external dependencies. Hedging and netting account compatible. Global variable state persistence with position recovery on restart.
Risk profile reference
Low Risk deploys 0.01 lot per 3,000 in account equity. Medium Risk deploys 0.01 lot per 1,500. High Risk deploys 0.01 lot per 600. All profiles cap at 5.0 lots per position. Start with Low Risk during your initial forward-test period regardless of account size.
Recommended configuration
Run on XAUUSD M1 chart. Set the max account drawdown to no more than 20 percent. Use Medium Risk for accounts between 2,000 and 10,000. Use Low Risk for accounts below 2,000. The EA is optimised for standard ECN execution with spreads below 30 points on gold.
