Adestto AI
Guides

How an AI bot trades gold (XAU/USD) automatically in 2026

Order blocks, risk sizing, news filter: how an AI bot decides to open a trade on gold (XAU/USD), step by step. No promise of gain.

Adestto AI6 min read

Gold (XAU/USD) is one of the favourite markets of automated traders: very liquid, volatile and active around sessions and macro announcements. But how does an Expert Advisor "decide" to open a trade on gold? Let's break down the mechanics, step by step.

The steps of a trading decision

  1. Reading structure: the bot identifies key zones (order blocks, liquidity) and the direction of market structure.
  2. Checking context: a signal inconsistent with context (market regime, session) is discarded. Better not to trade than to enter in doubt.
  3. Position sizing: the lot size is computed to risk exactly the chosen percentage (e.g. 1%), per the 1% rule.
  4. Execution: the trade is opened on MetaTrader 5 with a stop-loss and take-profit computed from current volatility.

Risk management, factor #1

A "profitable" bot isn't the one that wins most often, but the one that loses little when it loses. A system can have a win rate below 50% and stay viable if its average gains are larger than its average losses — that's the role of the risk/reward ratio. What magic doesn't fix: no setting guarantees the outcome, and each position risks a controlled fraction of capital.

Why the news filter is indispensable

Gold is extremely sensitive to economic announcements. During the NFP (US jobs report) or a Fed decision, price can move violently in seconds: spreads explode and slippage makes any entry dangerous. A good EA stops automatically around these high-impact events. It's often by NOT trading that a bot best protects capital.

Which broker to trade gold with a bot?

The broker choice matters: low spreads, fast execution, MetaTrader 5 compatibility and EA permission. The non-negotiable criterion remains regulation: a broker overseen by a serious authority, that never touches your capital. Our dedicated guide helps you decide: choosing an MT5 broker.

What AI brings

AI isn't a crystal ball. Its role here is to help filter (discard weak signals) and adapt parameters to the market regime, within a documented framework and with guardrails. To understand this loop, read how our bots learn from their mistakes and the difference between adaptive and static bots.

How much can you make?

Let's be honest: there's no guarantee of profit, and past performance doesn't predict future results. What we can say is that a disciplined bot, with a good risk/reward ratio and a news filter, applies a method without emotion — which many manual traders struggle to do. The outcome itself depends on the market.

To start with the basics, follow the learning resources or the MT5 bots guide.


Educational content. Adestto AI is a software and educational-content publisher — not a broker or an investment adviser. No return is guaranteed; trading involves risk.

Partager

The conversation continues

A reaction, a question about this article?

Join the Adestto community on Telegram — share your take, your test score or your questions.

Join the channel

About the author

Adestto AI

Editorial team

SEO articles and guides produced by the Adestto AI editorial team. Built to answer traders' questions: automated trading, bots, AI, markets.

Go further

Learn to trade step by step with the Academy.

3 structured modules, from beginner to advanced. No promise of returns.

Discover the Academy

More into the tools? Discover the Adestto Autopilot