Description
Automated XAUUSD trend strategy for MetaTrader 5
QuBot Gold Trend EA follows the gold trend on the 4-hour chart. It buys XAUUSD when the 5-bar average is above the 20-bar average and sells when it is below, so it can trade when gold is rising and when it is falling. Each signal opens a basket of up to 5 positions. The stop loss and take profit come from your account size: if every position hits the stop, the basket loses 1.5% of your equity, and at the target it gains 2%. When all positions are in profit and price has covered 40% of the way to the target, every stop moves to breakeven.
Features
- Moving-average trend filter on closed 4-hour bars: SMA 5/20, long and short, fully adjustable
- 5-position basket per signal, with lots sized from your equity (or a fixed 5 × 0.02 lots if you prefer)
- Stop loss at 1.5% of equity and take profit at 2%, set on every position from the real average fill price
- Breakeven at 40% of the way to the target, once all positions are in profit
- Re-entry after a 3-bar cooldown while the trend holds, so you don’t wait weeks for the next trade
- Skips any trade your account is too small for and shows the reason on screen
- Max-spread filter, magic number, works on hedging and netting accounts
- On-chart info panel: mode, basket size, risk/reward, SL/TP prices, breakeven state and open positions
- 7 presets, including the original Daily 20/100 setting as a conservative option
- Full .mq5 source, README and PDF guide
Lot size that scales with your account
The EA sizes each basket so the stop sits about $15 from entry on gold, whatever your account size:
- $1,000: 1 × 0.01 lot (loss at the stop about $15)
- $5,000: 5 × 0.01 lots (about $75)
- $10,000: 5 × 0.02 lots (about $150)
- $50,000: 5 × 0.10 lots (about $750)
You need about $500 or more on a standard account with 0.01 minimum lots on gold. Between $500 and $1,000 a single 0.01 lot risks 1.5–3% of the account; below about $500 the EA skips trades and tells you why. A cent account works for smaller balances.
Before you start
The default settings trade often (roughly 35–40 baskets a month on recent 4-hour gold data), and many trades end at the stop loss or at breakeven. Losing streaks happen, and several 1.5% losses in a row add up. No profit is promised. Test on a demo account first and only trade money you can afford to lose.
Format: ZIP with the .mq5 source, 7 preset (.set) files, README and PDF guide.
MT5 note: copy the .mq5 file(s) into the MQL5 folder, open them in MetaEditor and press F7 to compile. Always test on a demo account first.
Instant digital download. After your payment is confirmed, your download links appear on the order confirmation page, in your email, and under My Account → Downloads.
Risk disclaimer: Educational tools only, not financial advice. Trading forex, gold, crypto and CFDs involves substantial risk of loss. Past performance and examples do not guarantee future results. Always test on a demo account first.






Reviews
There are no reviews yet.