MQLXpert XAU ATM
- Experten
-
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. - Version: 1.15
- Aktivierungen: 5
Advanced Automated Gold Trading System | MetaTrader 5
MQLXpert XAU ATM is a fully automated Expert Advisor developed specifically for Gold (XAUUSD), incorporating independent Buy and Sell basket management, configurable recovery settings and an interactive trading dashboard.
The system has undergone extensive historical strategy testing covering more than six years of market conditions, alongside previous live-account trading.
XAU ATM is primarily designed for US Cent (USC) hedging accounts with 1:1000 leverage and compatible Gold contract specifications.
Important Risk Warning
XAU ATM utilises a high-risk grid and Martingale-based recovery strategy. Substantial drawdown and total account loss can occur.
Individual positions are opened without conventional stop losses. Trading exposure can increase significantly during unfavourable market conditions.
Historical and previous live performance does not guarantee future results.
Key Features
-
Fully automated Gold trading.
-
Independent Buy and Sell basket management.
-
Automated recovery management.
-
Dynamic basket exit management.
-
Hidden take profit functionality.
-
Configurable position sizing.
-
Maximum equity drawdown protection.
-
Minimum margin-level protection.
-
Maximum basket lot exposure protection.
-
Maximum recovery level restrictions.
-
Optional basket closure protection.
-
Maximum spread filter.
-
Interactive MQLXpert trading dashboard.
-
Pause and Resume functionality.
-
Emergency position closure.
-
Persistent safety lock.
-
Visual protection status notifications.
Automated Trading System
XAU ATM incorporates a proprietary trading and recovery engine developed specifically for Gold.
The system automatically manages independent Buy and Sell baskets, monitoring active positions and adjusting basket management according to its internal trading rules.
All entry, recovery and exit calculations are performed automatically.
The strategy increases position sizes during recovery sequences. Recovery is not guaranteed.
Hidden Take Profit Mode
XAU ATM includes an optional hidden take profit mode.
When enabled, the Expert Advisor manages its exit levels internally rather than displaying take profit levels through the trading server.
MetaTrader 5 must remain operational and connected to the broker for hidden take profit management to function.
Risk Management & Protection
Maximum Equity Drawdown Protection
Monitors account equity relative to the current account balance.
When the configured threshold is reached, the EA attempts to close its positions on the configured instrument and activates a persistent trading lock.
Maximum Basket Lot Exposure
Allows users to restrict trading exposure within each individual recovery basket.
Additional recovery entries are blocked when they would exceed the configured basket lot limit.
Minimum Margin-Level Protection
Restricts additional recovery entries when the account's margin level falls below the configured threshold.
This protection does not automatically close existing positions or prevent initial basket entries.
Maximum Recovery Levels
Allows users to restrict the number of recovery positions permitted within each basket.
An optional basket closure mechanism is also available.
Maximum Spread Protection
Restricts new entries when the current spread exceeds the configured maximum.
Persistent Safety Lock
Following emergency closure or maximum drawdown activation, the trading lock is retained during normal terminal restarts and EA reinitialisation.
Trading remains restricted until the safety lock is manually reset and new baskets are resumed.
Risk protection mechanisms cannot guarantee a maximum financial loss. Market gaps, slippage, connection interruptions and broker execution restrictions may affect their operation.
Interactive Trading Dashboard
The integrated MQLXpert dashboard provides real-time monitoring and manual control of the Expert Advisor.
The dashboard displays:
-
Active Buy basket positions and volume.
-
Active Sell basket positions and volume.
-
Combined EA exposure.
-
Floating profit or loss, including swap.
-
Current account equity.
-
Current balance-based drawdown.
-
Configured drawdown limit.
-
Current margin level.
-
Maximum basket lot exposure.
-
Maximum recovery levels.
-
Current operational status.
-
Active protection notifications.
Pause & Resume
Temporarily suspends the creation of new trading baskets while allowing existing baskets to continue being managed, including additional recovery entries.
Emergency Closure
Attempts to close all positions belonging to the Expert Advisor on the configured instrument and activates a persistent trading lock.
Visual Protection Notifications
The dashboard clearly identifies the following operational conditions:
-
New baskets paused.
-
Emergency trading lock active.
-
Maximum equity drawdown lock active.
-
Maximum basket lot exposure protection active.
-
Minimum margin-level protection active.
Historical Strategy Testing
XAU ATM has undergone historical testing within the MetaTrader 5 Strategy Tester.
Historical Backtest: 0.01 Initial Lot
-
Testing period: 2020–2026.
-
Initial test deposit: 100,000.
-
Final balance: 647,864.11.
-
Net result: 547,864.11.
-
History quality: 100%.
-
Total ticks: 314,390,296.
-
Total trades: 137,531.
-
Win rate: 78.55%.
-
Profit factor: 1.53.
-
Recovery factor: 3.38.
-
Sharpe ratio: 0.60.
-
Maximal equity drawdown: 46.47%.
-
Relative equity drawdown: 51.07%.
Historical Backtest: 0.02 Initial Lot
-
Testing period: 2020–2026.
-
Initial test deposit: 100,000.
-
Final balance: 1,089,167.01.
-
Net result: 989,167.01.
-
History quality: 100%.
-
Total trades: 135,140.
-
Win rate: 78.79%.
-
Profit factor: 1.55.
-
Recovery factor: 5.09.
-
Maximal equity drawdown: 34.85%.
-
Relative equity drawdown: 86.35%.
All monetary figures are expressed in the original Strategy Tester account units.
Both maximal and relative equity drawdown measurements are provided for transparency.
These reports relate to earlier V1.12 testing. An earlier source configuration contained historical date exclusions, and whether these exclusions affected the featured reports has not been established. Reproduction of these results with the current marketplace version remains unconfirmed.
Historical results must not be interpreted as expected future performance.
Previous Live Account Performance
Earlier live-account trading was monitored using FX Blue.
A historical account snapshot covering 120 days reported:
-
Account denomination: USC.
-
Account type: Real.
-
Total return: 213.6%.
-
Monthly return statistic: 32.3%.
-
Weekly return statistic: 6.9%.
-
Closed result: 90,236.48 USC.
-
Trade win rate: 76.9%.
-
Profit factor: 1.57%.
These figures represent a previous account snapshot. They do not establish the complete historical floating equity drawdown or represent expected future returns.
Previous live trading configurations may differ from the current marketplace version.
Configurable Settings
Risk Management
-
Initial position size.
-
Recovery exposure settings.
-
Maximum drawdown threshold.
-
Minimum margin-level threshold.
Trading Management
-
Recovery management settings.
-
Basket management settings.
-
Maximum basket exposure.
-
Maximum recovery levels.
-
Optional basket closure.
General Settings
-
Hidden take profit mode.
-
Maximum spread restriction.
-
Magic number.
Control Panel
-
Enable or disable the dashboard.
-
Horizontal dashboard position.
-
Vertical dashboard position.
Recommended Setup
-
Platform: MetaTrader 5.
-
Instrument: XAUUSD.sc or compatible Gold symbol.
-
Timeframe: M1.
-
Account type: Hedging.
-
Account denomination: US Cent (USC).
-
Required account leverage: 1:1000.
-
Historical reference deposit: 100,000 USC ($1,000 USD).
-
Broker conditions: Competitive spreads and reliable execution.
-
VPS: Recommended for continuous operation.
Users must verify their broker's Gold contract specifications, price precision, minimum trading volume and effective instrument leverage.
Standard USD accounts may create substantially greater financial exposure and require alternative settings.
The historical reference deposit does not represent a guaranteed safe minimum balance.
How to Use
-
Open the compatible Gold instrument in MetaTrader 5.
-
Select the M1 timeframe.
-
Attach MQLXpert XAU ATM to the chart.
-
Configure the trading and risk management settings.
-
Enable algorithmic trading.
-
Monitor the Expert Advisor using the integrated dashboard.
Thoroughly test the Expert Advisor under your broker's trading conditions before considering live deployment.
Important Information
-
Primarily designed for compatible USC accounts with 1:1000 leverage.
-
High-risk grid and Martingale-based recovery strategy.
-
Individual positions are opened without conventional stop losses.
-
Substantial floating drawdown can occur.
-
Recovery is not guaranteed.
-
Total account loss is possible.
-
The default 100% drawdown threshold provides no meaningful early-loss protection.
-
Minimum margin-level protection is disabled when configured to zero.
-
Risk management settings must be configured according to individual account conditions.
-
Historical and previous live performance does not guarantee future results.
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.
