How to Set Up Automated Gold
Trading with an EA
From zero to first live trade. This guide covers the complete setup process for automating XAUUSD trading with a MetaTrader 5 Expert Advisor — including the steps most beginners skip that cause avoidable losses.
Quick Answer
To set up automated gold trading: choose an EA whose strategy type matches your goals, open an ECN MT5 broker account with XAUUSD available, set up a Windows VPS for 24/5 operation, install the EA on a demo chart and verify configuration for 4 weeks, then go live at 0.01 micro lot for 2 weeks before scaling. Total time from start to confident live trading: 6–8 weeks.
Zero to Live Trade: 6 Milestones
Click any milestone to expand the full guide for that step. Check each off as you complete it.
Your Setup Progress
0%
Milestone 1
Choose Your EA
Pick a strategy type that matches your goals and risk tolerance
Milestone 2
Open the Right Broker Account
ECN account, MT5, XAUUSD available with acceptable spreads
Milestone 3
Set Up Your VPS
Windows VPS, 24/5 uptime, same region as broker
Milestone 4
Install and Configure the EA
Copy file, set lot size, enable live trading
Milestone 5
Demo Test (4 Weeks Minimum)
Verify behaviour before risking real money
Milestone 6
Go Live — Micro Lots First
Start at 0.01 lot for 2 weeks, scale only after consistent results
EA Types for XAUUSD: Choosing the Right Strategy
Most first-time EA buyers focus on the EA's claimed profit performance and skip the strategy analysis. This is backwards. Strategy type determines the conditions under which the EA works — and understanding this is more important than any specific backtest number.
Session breakout
Enters at range breaks around session opens (London, NY). Works well in directional markets, underperforms during extended consolidation. Typically 5–15 trades/day. Most consistent across market regimes for XAUUSD.
Suitable for: Most EA traders — predictable behavior, clear logic
Scalping
Very short holds (seconds to minutes), tight targets (5–15 pips), requires ultra-tight spreads and low latency. Very sensitive to broker conditions — works on some brokers, fails on others. 15–50 trades/day.
Suitable for: Traders with ECN broker and VPS <30ms latency
Trend following
Holds positions hours to days based on directional momentum. Fewer trades (2–5/week), larger targets, larger stop losses. Performs well in trending years, flat in ranging years.
Suitable for: Traders who can accept longer periods between trades
Grid / martingale
Opens multiple positions as price moves against the initial entry, averaging down. Appears to work in ranging markets, can produce catastrophic losses in strongly trending markets. High risk, often misrepresented.
Suitable for: Not recommended for most retail traders
What to Monitor in the First Month of Live Trading
The first month on a live account is a verification period, not a profit period. The numbers to track are not about making money — they are about confirming the EA is behaving as expected. If any of these diverge significantly from expectations, pause and investigate before scaling.
Average spread on executed trades
Target: Within 2 pips of broker's stated London session spread
Why: Confirms spread filter is working and broker is executing as published
Trade count per week
Target: Within ±30% of backtest average for the same period
Why: Large divergence indicates session filter misconfiguration or broker symbol differences
Win rate (rolling 20 trades)
Target: Within ±10% of backtest win rate
Why: Persistent divergence after 50+ trades suggests changed market conditions or parameter mismatch
Stop loss execution
Target: Every closed losing trade has SL recorded in MT5 history
Why: Confirms SL is active on every trade — the fundamental safety check
Session compliance
Target: No trades outside your configured session window
Why: Session filter misconfiguration can cause trades at wrong hours, often with poor results
Goldie Razor V2.8.4 as a Setup Reference
For traders following the roadmap above with a session breakout strategy as the target, Goldie Razor V2.8.4 illustrates how the milestones translate into practice. It operates on M15 XAUUSD using a range breakout with H4 200 EMA confirmation, requires MT5 only (not MT4), and is designed for ECN brokers — making Milestones 1 through 3 straightforward: M15 chart, ECN broker, VPS with MT5 installed.
The EA's parameter set is relatively compact, which simplifies Milestone 4 — fewer parameters mean fewer configuration errors. The six-level trailing stop handles position management automatically after entry, which means Milestone 5 (demo monitoring) focuses primarily on verifying session filter timing and spread filter behavior rather than complex exit logic. This makes it a useful benchmark for understanding what a well-scoped EA setup looks like.
Frequently Asked Questions
Related Guides
How to Connect Your Trading EA to the Right Broker
Deep dive on Milestones 2–4 — the broker connection and verification process
How to Set Up a Gold Scalping Bot
Scalping-specific setup guide with stricter requirements than general EAs
How to Set Up Risk Management in Your Trading EA
Risk management configuration detail for Milestone 4
Demo Account Testing Before Risking Real Money
Milestone 5 expanded — what to check and how long to run demo
Best MT5 Broker Setup for Goldie Razor
Broker and platform setup specifics for XAUUSD breakout EAs
Goldie Razor V2.8.4
M15 breakout + H4 EMA filter — built for XAUUSD on MT5