MQLXpert XAU Recovery Pro
- Experts
-
Luke John Smith
I’m a full-time MQL5 developer.
I build Expert Advisors, indicators, dashboards and trading tools for traders who want real automation — not theory.
I specialise in turning manual trading strategies into clean, stable and fully automated systems that can run reliably in real market conditions. - Versione: 1.12
- Attivazioni: 5
Automated Gold Grid & Recovery Trading System | MetaTrader 5
MQLXpert XAU Recovery Pro is a fully automated Expert Advisor developed specifically for Gold (XAUUSD), combining short-term price-action analysis, dynamic entry filters, progressive position sizing and advanced basket management.
XAU Recovery Pro is primarily designed for US Cent (USC) trading accounts with 1:1000 leverage, using compatible Gold instruments such as XAUUSDc.
The system operates using independent Buy and Sell recovery baskets, with configurable grid spacing, entry qualification and automated basket trailing management.
Important Risk Warning
XAU Recovery Pro utilises a high-risk grid and recovery trading strategy with progressive lot sizing. Substantial drawdown and total account loss can occur.
Positions are initially opened without individual stop losses. Exposure can increase significantly during unfavourable market conditions.
The optional risk protection settings are disabled by default and must be configured by the user if required.
Historical performance does not guarantee future results.
Key Features
-
Primarily designed for US Cent (USC) accounts with 1:1000 leverage.
-
Fully automated Buy and Sell execution.
-
Independent Buy and Sell recovery baskets.
-
Progressive recovery-based position sizing.
-
Configurable grid spacing.
-
Advanced price-action entry filters.
-
Dynamic market re-entry qualification.
-
Automatic basket breakeven calculation.
-
Automated basket trailing-stop management.
-
Configurable maximum trades per basket.
-
Optional maximum equity drawdown protection.
-
Optional maximum total lot exposure protection.
-
Emergency position closure and trading lock.
-
Persistent basket and safety-lock state management.
-
Automatic Gold price precision detection.
-
Automatic contract-size normalisation.
-
Minimum lot exposure protection.
-
Broker margin and volume validation.
-
Professional interactive trading dashboard.
-
Pause and Resume functionality.
Recovery Trading System
XAU Recovery Pro monitors market conditions using a combination of price action, volatility, directional movement and internal entry filters.
When an initial entry qualifies, the system establishes a recovery basket. Additional positions may be opened at configured price intervals when market conditions move against the basket.
Position sizes progressively increase according to the internal recovery sequence.
Buy and Sell baskets are managed independently, allowing the system to operate in both market directions.
This approach increases market exposure during adverse price movements and carries significant financial risk, particularly during sustained directional markets.
Automated Basket Management
Each recovery basket is monitored using its combined position volume and volume-weighted breakeven price.
The basket management system includes:
-
Automatic basket breakeven calculation.
-
Configurable trailing activation distance.
-
Adjustable trailing distance.
-
Configurable trailing step.
-
Minimum locked price distance.
-
Automatic basket closure management.
Trailing protection is activated only when the required basket conditions are satisfied.
Until trailing protection becomes active, individual positions may remain without a stop loss.
Risk Management & Protection
XAU Recovery Pro includes configurable controls designed to limit trading exposure.
Maximum Equity Drawdown Protection
When enabled, the system monitors drawdown relative to peak account equity.
If the configured threshold is reached, the EA attempts to close its positions on the configured instrument and activates a trading lock.
Maximum Total Lot Exposure
Allows users to restrict the combined open trading volume across both Buy and Sell recovery baskets.
Additional entries are blocked when they would exceed the configured exposure limit.
Maximum Trades Per Basket
Allows users to restrict the number of positions within each individual recovery basket.
A value of zero permits an unlimited number of recovery entries, subject to broker restrictions and other enabled protections.
Emergency Closure
The integrated emergency button attempts to close all positions belonging to the EA on its configured instrument and prevents further entries until the safety lock is manually reset.
These protections cannot guarantee a maximum financial loss. Market gaps, slippage, connection interruptions and broker execution restrictions may affect their operation.
Cent Account & Broker Compatibility
XAU Recovery Pro is primarily developed for US Cent (USC) accounts with 1:1000 leverage.
On a USC account, a deposit of $1,000 USD is represented as 100,000 USC.
The default position-sizing configuration is designed around a Gold instrument with a contract size of 1.00.
The intended account configuration requires 1:1000 leverage to accommodate the margin requirements associated with multiple recovery positions. Lower leverage may restrict the system's ability to execute recovery entries.
High leverage does not reduce the financial risk of open positions or prevent account losses. Users must also verify the effective leverage applied specifically to Gold by their broker.
XAU Recovery Pro automatically detects the instrument's price precision, tick size and contract size.
The system includes compatibility handling for:
-
Two-digit and three-digit Gold pricing.
-
Broker-specific Gold symbol suffixes.
-
Standard and cent account denominations.
-
Different broker contract sizes.
-
Broker minimum, maximum and incremental lot restrictions.
-
Different account deposit currencies.
Automatic contract-size normalisation adjusts the internal lot sequence according to the instrument's contract specifications.
If the broker's minimum permitted lot size exceeds the calculated position size, new entries are blocked rather than increasing exposure automatically.
Standard USD accounts may require alternative configuration and significantly different capital requirements.
A compatible USC account with 1:1000 leverage is the intended configuration for this Expert Advisor. Users must verify their broker's contract specifications, as not all cent accounts use identical trading conditions.
Interactive Trading Dashboard
The integrated MQLXpert dashboard provides real-time visibility of the Expert Advisor's operational status.
The dashboard displays:
-
Active Buy basket positions and volume.
-
Active Sell basket positions and volume.
-
Combined lot exposure.
-
Floating profit or loss.
-
Current account equity.
-
Maximum equity drawdown protection status.
-
Maximum lot exposure settings.
-
Grid price distance.
-
Broker contract size.
-
Current trading status.
-
Execution messages.
The Pause/Resume button allows users to suspend the creation of new baskets while maintaining recovery and management of existing baskets.
The emergency closure button provides additional manual control over the EA's positions.
Historical Strategy Testing
XAU Recovery Pro has been tested using historical tick data within the MetaTrader 5 Strategy Tester.
Featured historical backtest:
-
Instrument: XAUUSDc.
-
Timeframe: M1.
-
Testing period: 4 November 2026 to 20 November 2026.
-
Initial test deposit: $1,000 USD.
-
Final balance: $1,788.69.
-
Net profit: $788.69.
-
Total return: 78.87%.
-
Relative balance drawdown: 5.38%.
-
Relative equity drawdown: 24.66%.
-
Profit factor: 1.75.
-
Total trades: 26,445.
-
Win rate: 70.88%.
-
History quality: 100%.
The featured test uses a cent-account Gold instrument with a contract size of 1.00 and a USD-denominated test deposit. The optional equity drawdown and total lot exposure protections were disabled.
Although the initial test deposit of $1,000 USD is equivalent in monetary value to 100,000 USC, actual trading performance depends on the broker's contract specifications and execution conditions.
The results represent a limited period of historical market conditions and must not be interpreted as expected future returns or evidence of long-term reliability.
These are historical Strategy Tester results, not live trading results.
Input Parameters
Core Strategy Settings
-
SignalTimeframe: Timeframe used for strategy calculations.
-
EMAPeriod: Moving average calculation period.
-
GridDistancePoints: Distance between recovery entries.
-
RecoveryEntryDelayMs: Minimum delay between recovery entries.
-
InitialReentryDelayMs: Minimum initial re-entry delay.
Basket Trailing Settings
-
TrailingActivationPoints: Required favourable basket price movement before trailing activation.
-
TrailingDistancePoints: Trailing-stop distance.
-
TrailingStepPoints: Minimum trailing-stop adjustment distance.
-
MinimumLockedPoints: Minimum favourable price distance required beyond basket breakeven.
Gold distance settings use normalised three-digit reference points to maintain consistent price distances across different broker price precisions.
Trade Settings
-
AllowBuy: Enable Buy baskets.
-
AllowSell: Enable Sell baskets.
-
MaxTradesPerBasket: Maximum positions permitted per basket.
-
MagicNumber: Unique identifier used to manage the EA's positions.
-
DeviationPoints: Permitted execution deviation.
-
TradeComment: Custom trade identification comment.
Broker Compatibility
-
ReferenceContractSize: Reference contract size used to normalise the internal position-sizing sequence.
Increasing this value increases financial exposure. Users must understand their broker's contract specifications before adjusting this setting.
Optional Risk Protection
-
MaxEquityDrawdownPercent: Maximum permitted peak account equity drawdown before activating the safety lock. Zero disables this protection.
-
MaxTotalLots: Maximum combined open lot exposure. Zero disables this restriction.
Control Panel
-
ShowPanel: Enable or disable the interactive dashboard.
-
PanelX: Horizontal dashboard position.
-
PanelY: Vertical dashboard position.
Advanced Strategy Settings
Additional configurable parameters are included for experienced users, covering:
-
Entry timing filters.
-
Candle reversal qualification.
-
Volatility and ATR filters.
-
Moving average distance filters.
-
Directional slope filters.
-
Price displacement filters.
-
Intrabar confirmation filters.
-
Basket re-entry qualification.
These settings control the internal execution engine and should only be modified following appropriate historical testing.
Recommended Setup
-
Platform: MetaTrader 5.
-
Instrument: XAUUSDc or compatible Gold symbol.
-
Timeframe: M1.
-
Account type: Hedging.
-
Account denomination: US Cent (USC).
-
Required account leverage: 1:1000.
-
Preferred symbol contract size: 1.00.
-
Broker conditions: Competitive spreads, sufficient margin and reliable execution.
-
VPS: Recommended for continuous operation.
Account suitability depends on contract size, minimum lot restrictions, effective instrument leverage and available capital.
Important Information
-
Primarily designed for US Cent (USC) trading accounts with 1:1000 leverage.
-
This is a high-risk grid and recovery Expert Advisor.
-
The strategy uses progressive position sizing.
-
Individual positions initially open without stop losses.
-
Substantial floating drawdown can occur.
-
Recovery baskets are not guaranteed to recover.
-
Total account loss is possible.
-
Optional risk protections are disabled by default.
-
Pausing new baskets does not prevent recovery entries within existing baskets.
-
Historical results do not represent guaranteed or expected future performance.
Users must independently assess their broker compatibility, configure appropriate exposure restrictions and thoroughly test the Expert Advisor on a demo account before considering live trading.
Communication and Support
For product enquiries, configuration assistance or technical support, please contact me directly through MQL5 private messaging.
Developed by MQLXpert
Code for Traders. By Traders.
