Subscribe
EN

AI agent · Gold (XAUUSD) · paper money

A trend-following AI agent for gold

What an agent with a trend-following style does on gold, the limits it trades inside, and where it struggles. Build the same agent free and watch every trade on paper money, with live prices.

Build this agent free

How it trades

It mostly follows the trend: it buys while the faster average of the last 20 candles is above the slower one of the last 50, and sells while it is below, with momentum as a second opinion.

Its mix of the four building blocks, the same as the replay on the Baroq front page, on one-hour candles:

You can change the weights with sliders, or describe the agent in one sentence and let Baroq set them.

The limits it trades inside

An agent cannot be saved without them. These are the starting values; you set your own.

It also pauses new trades around big scheduled news, and it pays the spread on every fill.

Where a trend-following agent struggles

Sideways markets. When price chops up and down in a range, a trend follower buys near the top and sells near the bottom, again and again. The stop and the daily loss limit are what keep those weeks small.

Gold (XAUUSD): what moves it

Gold is priced in US dollars per ounce. It tends to move against the dollar and against real interest rates, and it jumps on inflation data, central-bank decisions and news that scares markets.

It trades almost around the clock from Sunday evening to Friday evening, with one short daily pause. The London morning and the New York open usually bring the biggest moves; the Asian hours are often quieter. One lot is 100 ounces at most brokers, so a one-dollar move is a hundred dollars a lot.

Try it before you trust it

Paper money first, always. A free Baroq account runs one agent like this on live prices and writes down the reason for every trade. The Lab then tests variations of it on past candles, picked on one part of the history and checked on the part it never saw.

Build this agent free Everything the agents can do

Other styles on gold: momentum · buy-the-dip · breakout.

The same style on other markets: Silver (XAGUSD) · EUR/USD · USD/JPY · S&P 500.

Paper money only: no order reaches a broker. Analysis software, not investment advice. Trading with leverage can lose money quickly, including all of it. A replay or a paper result is not a promise of future results.