XAUUSD · TradingView / OANDA

Spot gold in USD, not COMEX MGC futures. Quotes may be delayed, unavailable or show the last market price when closed. Informational only. View the XAUUSD quote and chart.

How to Build Your Own AI Trading Copilot for Gold

AI IN PRACTICE / BUILD YOUR OWN

Start with the craft. Then give AI a job.

An AI trading copilot is a conversational assistant that helps a trader prepare, challenge an idea, manage risk and learn from actual decisions. You do not need to build a bot or write code to begin. I use ChatGPT alongside my gold charts, with The Barcelona Playbook supplying the methodology and the human making the decisions.

This guide is a practical starting configuration, not a downloadable automated trading system. You can adapt the instructions to your own strategy or use them to study mine. Start in simulation, not with real money. An AI is not a substitute for market knowledge or a verified trading platform.

01 / DESIGN THE WORKFLOW

Separate the three jobs.

Two gold chart views and an AI assistant, illustrating the distinction between market context and execution.
Illustration: analyze context separately from execution. The charts are conceptual, not actual market data.
PhaseWhat the copilot receivesWhat it should do
PreparationTimestamped charts, instrument, session, macro calendar, relevant levelsMap context and opposing scenarios; identify missing data.
Execution and managementProposed setup, confirmation, actual execution chart, risk limits or stated open positionChallenge premature entry and assess original invalidation; never execute an order.
ReviewComplete trade log, screenshots and original rulesReconcile results and grade adherence; propose one measurable improvement.

Keep these roles distinct. When you are managing an open trade, the assistant should not keep searching for exciting new ideas. When a session has ended, it should not rewrite the plan to match the outcome.

02 / SUPPLY YOUR RULES

The copilot needs a playbook, not a personality.

Create a short written ruleset. State the instrument you analyze, the instrument you execute, your allowed setups, entry confirmation, stop rules, session limits, and what tells you not to trade. You can paste it into a dedicated conversation in your preferred AI or use a persistent workspace that supports your instructions. Check that the current conversation actually contains the correct version of your rules.

RuleExample from The Barcelona Playbook
Context1-hour and 15-minute XAUUSD for direction and levels; 1-minute for structure.
ExecutionTypically a 10-second MGC futures chart; use the actual futures contract and order prices.
SetupsAragó, Barceloneta, Tibidabo, Diagonal, Montjuïc and Sants. Each has different confirmation.
No tradeRaval: chop, unclear structure or inadequate room to the next obstacle.
RiskDefine invalidation before entry; choose size and session limits in advance; do not widen the stop.
BehaviorNo chasing, revenge trades or impulsive reversal ping-pong. Pause when your rules call for it.

Read the complete Playbook and worked examples. Your own risk limits must be stated explicitly. Do not borrow someone else’s size or assume their risk tolerance applies to you.

03 / COPY AND ADAPT

A starter instruction set for your AI copilot.

A question passes through evidence checking and filtering before a human decision.
Illustration: a good prompt asks for evidence, applies a filter and leaves the decision to the trader.

Copy the following into the assistant you use for trading. Replace the method and risk parameters with your own verified rules where appropriate. Keep the full version in a reference note and use shorter prompts during sessions.

You are my AI trading copilot, not an order execution system or an oracle. My goal is disciplined, independent decision-making. Follow my supplied playbook and session rules, not your own invented strategy.

DATA: Identify the instrument, source and timestamp of all observations. Anchor technical analysis to XAUUSD spot; use the separate COMEX MGC chart and actual contract for execution and P&L. Do not claim to see live charts, a broker account or orders unless the relevant data has actually been provided or connected. Never invent missing prices, fills, news or confirmation. Mark unknowns.

BEFORE ENTRY: Assess context, candidate setup, location, confirmation, room to the next obstacle, and structural invalidation. Challenge my bias. If a required condition is absent, say WAIT. If the session risk or trade limit is reached, say STOP. Do not turn an interesting scenario into a signal.

IN A TRADE: When I say ‘I’m in,’ prioritize management of the stated position. Check the original thesis, loss of follow-through, invalidation and risk. Do not widen stops or suggest an immediate revenge or reversal trade.

AFTER THE SESSION: Use actual execution records. Distinguish setup validity, timing, risk, rule adherence, fees and net P&L. Identify one measurable improvement. Keep live, simulated and evaluation accounts separate.

STYLE: In a live session, be concise. Use the sequence: status (WAIT / REVIEW / MANAGE / STOP), evidence, missing information, risk or invalidation. Never pretend certainty; I decide and place every order.

Treat the instructions as a working agreement, not a safety guarantee. A model can misunderstand or fail to follow them. Broker-side controls and the trader remain responsible for actual risk.

04 / SHARE THE RIGHT INFORMATION

A chart needs a timestamp and an instrument.

At the start of a session, provide the date and time zone, the relevant XAUUSD charts, visible pivots or order blocks, and the current economic calendar. When assessing an entry, share the actual execution chart with the futures contract clearly labeled. If you are already in a position, give the entry, size, direction, current known conditions and original invalidation. Do not assume your copilot knows your account or the latest fill.

A concise pre-session message

Session: [date, time, time zone]. Here are the 1h and 15m XAUUSD charts and verified economic calendar. Identify trend, key levels, conditional bull and bear scenarios, invalidation and no-trade conditions. Distinguish what is visible from inference. Ask for the 1m XAUUSD or MGC execution view when necessary.

A concise candidate-entry message

Candidate: [setup, direction]. XAUUSD level: [reference]. MGC contract and proposed order: [details]. Here are the latest charts. Is this qualified, premature or chop? What confirmation is missing? What would invalidate it? Check my session rules. WAIT if the evidence is incomplete.

05 / TEST BEFORE TRUSTING

Make it prove it can say no.

Charts and playbook rules pass through a risk-control filter before a human decision.
Illustration: a copilot checks the rules; the human retains control of orders and risk.

Before using a copilot in a live decision, test it on replay or simulated sessions. Include ambiguous charts, missing timestamps, spot/futures mismatches, a loss-limit scenario and a situation where you deliberately present a biased trade thesis. Don’t test only the obvious winners.

TestWhat a useful response does
Missing execution chartRequests it instead of inventing a futures order price.
Strong price move into resistanceDistinguishes momentum from a qualified continuation or reversal.
Session loss or trade limit reachedFlags the rule and does not manufacture another entry.
Existing position invalidatedReturns to the original exit rule; no stop widening.
Incomplete journal exportMarks unknowns and asks for missing records rather than inventing performance.

Track the rate of correct rule checks, unsupported claims and situations where the model encouraged a marginal trade. Compare with a manual checklist using the same scenarios. This tests decision support, not proof of profitability. If the copilot adds noise or delay, simplify the workflow or stop using it for live decisions.

06 / LEARN FROM ACTUAL EXECUTIONS

Your journal is the feedback loop.

After the session, export the actual trading records and review them against the plan. A good copilot should help you distinguish an incorrect analysis from a premature entry, poor location, weak risk control or a behavioral mistake. Refine one instruction at a time and save versions so you can evaluate whether changes actually help.

Use the AI trading journal guide for a repeatable review and the ten common AI trading mistakes as a checklist. The free prompt pack provides more short prompts.

THE BARCELONA TRADER / KEEP LEARNING

AI is a copilot. You are still the trader.

Watch free public sessions to see how preparation, market structure, decision-making and risk fit together. Learn the craft before you rely on the technology. Trade with seny.

Choose your preferred blog language when you subscribe. Market briefs are optional.

Education and illustrative examples, not live trade recommendations. Leveraged gold trading can cause substantial losses; an AI tool does not remove that risk.

Explore the free AI trading library

Follow the full learning path, with practical exercises for each module, in the free AI Trading Academy. All of these guides are available without a paid membership.

AI-assisted gold trading: my workflow

Seven free AI trading prompts

How to journal gold trades with AI

Ten AI trading mistakes to avoid