SesTrading

SesTrading · Answers

Forex robots (EAs): what they are, and what simple rules did on gold

By Saad El Soussi, UAE-authorized finfluencer · Updated 2026-11-24

Key fact (our test, COMEX gold daily bars, 30 January to 20 November 2026): While gold fell from its record to a close 33.9% lower, a holder lost 1,895 points per ounce. The textbook 50/200-day moving-average robot lost 828: it stayed long for 105 trading days and only turned short at the open of 2 July. The RSI dip-buying robot, which had won 77% of its trades over ten years, lost 486 buying the dips. Only the 20-day breakout robot gained (+630), and 70% of its trades over ten years were losers. One fall is one case, not a ranking.

A forex robot, or Expert Advisor (EA), is a program that runs inside MetaTrader and places and manages trades by fixed rules, 24 hours a day, without you watching the screen. It automates a strategy; it does not create an edge. We tested three textbook rules on ten years of daily gold (November 2016 to 20 November 2026), with trading costs: a 50/200-day moving-average cross, a 20-day breakout and an RSI dip-buyer. The first gained 2,064 points (about $2,064 per ounce traded) but won only 3 of its 13 closed trades, lost money in 5 of 10 calendar years and had a larger worst drawdown (2,034 points) than simply holding gold (1,900 points). When gold fell 34% from its January 2026 record, that rule stayed long for 105 trading days before it turned short and lost 828 points where a holder lost 1,895; the RSI dip-buyer lost 486 points; only the breakout rule gained (+630), although 70% of its trades over the decade lost. If someone sells you a robot with a smooth profit curve, ask for the losing years. An EA is also not the only way to automate: how it compares with copy trading is further down.

See how we trade gold, losing weeks includedAsk our Telegram bot. It answers in English and shows the weekly results.

What an Expert Advisor is

The SesTrading lesson puts it simply: automation is something banks and institutions have used for many years, and retail traders reach it through EAs, “Expert Advisors”: bots uploaded to MetaTrader that run your trading automatically around the clock “based on predefined criteria”, following a strategy built from technical indicators, timeframes and risk-management rules such as take profit and stop loss. A trailing stop, which moves the stop as the trade goes into profit, is one such rule.

The platform side is documented by MetaQuotes. MetaTrader 5 has its own language, MQL5 (syntax similar to C++), and a built-in development environment, MetaEditor. According to the MetaTrader 5 help, with the MQL5 Wizard a trader without programming skills can create an Expert Advisor by selecting signals, money management and a trailing-stop method, and the platform links to a code base of free automated trading programs. So building a simple robot is within reach; building a good one is a different matter.

What the lesson says about using one

What regulators warn about

The US Commodity Futures Trading Commission (CFTC) issued a customer advisory on 25 January 2024, “AI Won’t Turn Trading Bots into Money Machines”. Its press release says scammers claim that bots, trade-signal algorithms and similar technology generate huge returns, that claims of high or guaranteed returns are red flags of fraud, and that AI technology cannot predict the future. The advisory also lists points to check before trusting a trading bot or signal provider, including the background of the company or trader. The practical rules that follow:

Our test: three textbook EAs on ten years of daily gold

To see what “simple automation” means in numbers, we coded three rules exactly as a beginner's EA would and ran them on COMEX gold futures (GC=F) daily bars from 9 November 2016 to 20 November 2026 (2,523 bars, Yahoo Finance). Signals are read at the close, trades are made at the next day's open, and every change of position pays $0.31 per ounce per side, half the median $0.62 spread we measured on XAU/USD in 2026 (Dukascopy quotes, September-October 2026; see also our gold strategy page for the session pattern). We assume no slippage and no overnight financing, both of which cost real accounts more. The first 200 days are needed to warm up the averages, so results run from 30 August 2017 to 20 November 2026 (2,322 trading days), and a position still open at the end is valued at the 20 November close of $3,515.40. Results are in gold points ($1 per ounce): on a 0.01 lot (1 ounce) one point is $1; on 0.10 lot, $10.

RuleNet resultWorst drawdownTradesWinners
Buy and hold (for comparison)+2,207 pts1,900 pts1-
50/200-day moving-average cross, long and short+2,064 pts2,034 pts13 closed, 1 open3 of 13 (23%)
Same, long only (flat when the fast average is below)+2,136 pts1,397 pts--
20-day breakout, exit on a 10-day low/high, long and short+606 pts1,315 pts104 closed, 1 open31 of 104 (30%)
Same, long only+887 pts725 pts--
RSI(14) below 30: buy; sell when RSI passes 50 (long only)+55 pts954 pts30 closed, 1 open23 of 30 (77%)

Read this table carefully, because it cuts both ways. The rules did make money, in a decade when gold rose 176% (from 1,272.60 to 3,515.40), even after the 2026 fall. A trend rule that is long gold most of the time inevitably does; the long-only versions beat the long-and-short ones. But none of the three beat buying and holding, the moving-average rule had a worse drawdown than holding, and the trade statistics are the opposite of what a smooth equity curve suggests:

How fragile are the settings?

Robots are usually sold with “optimised” settings. We ran the moving-average rule on 15 combinations of fast average (10, 20, 30, 50 days) and slow average (50, 100, 150, 200): all 15 made money in this gold market, from +1,827 to +3,781 points, but the best result is 2.1 times the worst. 11 of the 15 beat buy-and-hold at the 20 November close; on 6 November, before the last leg of the fall, only 4 did, so even the comparison with holding depends on the day the test stops. The 50/200 pair everyone quotes was in the bottom three each time. Choosing the best of 15 after seeing the result tells you nothing about the next ten years; it only tells you which setting happened to suit this one.

Why we do not read this as a recommendation

What the three robots did in the 2026 fall

Gold closed at a record $5,318.40 on 29 January 2026 and at $3,515.40 on 20 November, 33.9% lower (every fall of 10% or more since 2000). It is the first long fall in our ten-year sample, so it is the first chance to see what these rules do when the market stops rising. From the open of 30 January ($5,410.00) to the 20 November close, 205 trading days, with the same costs:

RuleResult, 30 Jan to 20 Nov 2026Days long / short / flatWhat happened
Buy and hold-1,895 pts205 / 0 / 0Held through the whole fall
50/200-day cross, long and short-828 pts105 / 100 / 0Long until the open of 2 July at 4,049.20 (-1,361), short since (+534)
50/200-day cross, long only-1,361 pts105 / 0 / 100Out of the market since 2 July
20-day breakout, long and short+630 pts55 / 116 / 34Lost 400 on the long it held over the top; shorts of 30 April-23 July (+430), 15 September-6 November (+241) and one open since 13 November (+368) made the result
20-day breakout, long only-446 pts55 / 0 / 150Mostly flat; lost on the longs it took
RSI below 30, long only-486 pts84 / 0 / 121Bought five dips: +136, +211, -267, -191, and one bought on 2 November at 3,890.00 that was 375 points down at the 20 November close

None of this ranks the rules. It is one fall, and the next one will have a different shape: a fall made of sharp drops and fast recoveries would punish the breakout rule and reward the dip-buyer. What it shows is that a robot's back-test describes the market it was tested on. Before trusting any robot, find out what kind of market its test period was, and ask to see it in the other kind.

Gold EA or copy trading: two ways to automate, compared

People who want gold traded for them usually end up choosing between two things: buying or renting an EA and running it themselves, or copying a strategy that someone else runs. Both place trades without you. They differ in where the program runs, who is responsible for the rules, and what you can check before you start.

An EA you run yourselfCopy trading
Where it runsInside your own MetaTrader terminal. The MetaTrader 5 help says a trading robot needs a “constant connection to a trade server and uninterrupted power supply”, which is why the platform rents out virtual serversIt depends on the service. With a copy-trading platform that runs on the provider's own servers there is normally nothing to install on your side. MetaTrader's own Signals service copies inside your terminal: its help says the account “must always be on and connected to the server”, on your computer or on a rented virtual server
Who owns the rulesYou. You choose the settings and the lot size, and nobody watches it for youThe provider. You choose whom to copy, how much of your account follows, and when to stop
What you can check firstA back-test, which describes the market it was tested on (the tables above), and a live statement if the seller has oneThe live history of the strategy: every trade, the worst stretch and how long it has run. Ask for it if it is not shown
How the trade size is setA lot size or a risk setting you type inScaled to your account, then rounded to the smallest lot allowed. On a small account the rounding changes the risk (measured on 406 real signals)
What you usually payA purchase price or a rental, often a virtual server, and the spread on every tradeA subscription or a share of the profits, and the spread on every trade
What goes wrong firstThe terminal goes offline, the settings were fitted to the past, or the market changes: the 50/200 rule above stayed long for 105 trading days of the fallThe strategy has a bad run and you copy every loss; copies arrive late or in a different size from the provider's
StoppingYou switch it off. Decide beforehand what happens to a trade that is open at that momentYou stop copying. Ask what happens to open trades: with MetaTrader Signals the help says positions opened by copying “will not be closed after subscription cancellation” and you manage them yourself

The quotations are from the MetaTrader 5 help pages “Virtual Hosting” and “How to Subscribe to a Signal” (metatrader5.com, read on 23 November 2026). Other copy-trading services have their own rules; read them before you connect an account.

The same seven months, five ways of being in the market

How fast a strategy trades decides which of the two routes can carry it. We put the three textbook robots from the test above next to our own hand-posted gold signals over the same period, 17 April to 20 November 2026 (152 trading days). The signals are placed by a person, not by a robot, and they are not the record of any automated product. They are here because they are the fast strategy we have complete data for.

Orders in the periodHow long a position lastedTime in the marketResult per ounce
50/200-day cross, long and short1: it turned from long to short on 2 July52 and 100 trading daysEvery day-229 pts
20-day breakout, long and short9: five entries, four exits6 to 57 trading days126 of 152 days (83%)+994 pts
RSI dip-buyer, long only7: four buys, three sells5 to 25 trading days70 of 152 days (46%)-622 pts
Buy and holdNoneThe whole periodEvery day-1,296 pts
Our hand-posted gold signals406 signals on 140 days, three on a median dayMedian 19.5 minutes from the signal to the posted result; 377 of 403 were over before 17:00 New York time the same dayAt most 623 hours, about 12% of the 5,232 hours in those 218 daysCounted in pips, not comparable here: see the full record, losing weeks included

Read across the rows. The three robots ended the same seven months at -622, -229 and +994 points per ounce, against -1,296 for holding, so “an EA” is not one thing. A daily-bar robot acts at most once a day, at the open: in seven months the moving-average rule sent one order. If its terminal is offline for an hour, almost nothing happens, unless it is the one hour that matters (the short it opened on 2 July was 534 points per ounce ahead by 20 November). A fast strategy is the opposite: 406 decisions, most of them over within the hour. It cannot be followed late. On our own signals, entering five minutes after the post cut the share of trades that reached the first target before the stop from 69.8% to 65.4%, and fifteen minutes cut it to 57.0% (305 signals, 20 July to 13 November 2026; the delay test). A slow rule can live in an EA on a home computer. A fast strategy needs every order placed within seconds, which is what automatic copying is for, and it is why the first question to any copy-trading provider is how late and in what size the copies arrive.

Which one fits

Our own automated gold strategy, the SesTrading Gold Algo, uses the copy-trading route. It trades gold (XAUUSD) in a trading account opened in your own name; you connect it by choosing the strategy named SesTrading Gold in copy trading, and a Telegram assistant guides the set-up. It risks at most 1% per trade. There is no sign-up or monthly fee; SesTrading earns a share of the profits only. Trading gold is high risk and you can lose money.

A checklist before you trust any robot

  1. Can you state its rules in two sentences? If the seller cannot or will not, it is a black box.
  2. Has it been tested on at least ten years and more than one market regime, with realistic spreads, slippage and swaps? The backtesting guide explains how to avoid fooling yourself.
  3. What is the worst drawdown, and could you hold through it with real money and real emotions? Size from that, not from the best month; the lot size calculator and risk-reward pages show the arithmetic.
  4. Is there a live statement (not a back-test) from an account you can verify? Does it include the losing periods?
  5. Does it guarantee anything? Then walk away; the CFTC lists that as a red flag.
  6. What does it risk per trade, and does it stop after a bad day? Ask for both numbers. We tested a daily loss limit on our own 406 gold signals (17 April to 20 November 2026, 1% risk per trade): a 2% limit was reached on 10 of 140 days, skipped 7 winners and 3 losers, and cut the worst day from -3% to -2.4%; it limits the bad day, it does not add profit (the test).
  7. Have you run it on a demo account for at least a month first? MetaTrader 5 for beginners shows how to open one.

Key points

Related: gold trading bots: the three kinds and what a daily loss limit did on 406 real signals, XAUUSD copy trading: lot rounding and the profit share on the same signals, building a trading plan, trading mistakes, technical analysis for beginners. All guides are on the learn page.

See how we trade gold, with the results

The Telegram bot answers in English, explains the VIP gold trades (each with entry, stop loss and targets) and shows where the weekly results are published, losing trades included. Trading is risky; most retail accounts lose money.

Questions people ask

What is an Expert Advisor (EA) in forex?

A program that runs inside MetaTrader and opens, manages and closes trades automatically according to rules you or a developer have coded: indicators, timeframes, stop loss, take profit, trailing stop. It can run 24 hours a day without you at the screen.

Can I build my own forex robot without coding?

MetaTrader 5's MQL5 Wizard, according to the MetaTrader 5 help, lets a trader without programming skills create an Expert Advisor by choosing trading signals, money management and a trailing-stop method; the code is generated automatically. A useful strategy still has to come first, and the Wizard does not provide one.

Are forex robots profitable?

It depends entirely on the rules, the market and the costs. Three simple textbook rules were profitable on ten years of rising gold in our test but none beat buy-and-hold, the best-known one lost money in 5 of 10 years, and results varied 2.1-fold with the settings. Robots sold with guaranteed or very smooth returns are a warning sign, according to the CFTC.

Do trading robots work when the market falls?

It depends on the rule. In our test of gold's 2026 fall (30 January to the 20 November close, when a holder lost 1,895 points per ounce), the 50/200-day moving-average robot lost 828 points because it stayed long for 105 trading days before turning short, an RSI dip-buying robot lost 486 points, and a 20-day breakout robot gained 630. One fall is a single case: a robot that can only buy, or that reacts slowly, will lose in a long fall.

Are trading robots a scam?

The technology is not, but many sales pitches are. The CFTC warned in January 2024 that scammers use bots and AI to promise huge or guaranteed returns. Check who is behind the seller, ask for live account statements with the losing periods, and never hand over your account credentials.

Is an EA better than trading manually?

The SesTrading lesson prefers manual trading and suggests an EA only on a small separate account while you learn. An EA removes emotion and fatigue but also judgment; it will follow a rule through a news spike or a broken market exactly as coded.

What is the difference between an EA and copy trading?

An EA is a program you run yourself inside MetaTrader, with your own settings; the terminal has to stay online, usually on a rented virtual server. Copy trading copies the trades of another trader or of a strategy into your account, scaled to your account size, and you can stop copying. With a provider's own copy-trading platform there is normally nothing to install; MetaTrader's own Signals service copies inside your terminal, which must stay on and connected. Both reduce the time you spend on analysis; neither removes the risk of loss, and with copy trading the result depends on what you copy. Our own automated gold strategy, the SesTrading Gold Algo, uses the second route (copy trading, in a trading account in your own name); the three kinds of gold bot are compared on our gold trading bots page.

Is a gold EA better than copy trading?

Neither is better in general; they suit different strategies and different people. A slow rule on daily bars sends few orders (the 50/200-day moving-average rule sent one between 17 April and 20 November 2026) and can run as an EA you look after yourself. A fast gold strategy (our own hand-posted signals: 406 in the same period, median length 19.5 minutes) has to be copied within seconds, which is what copy trading is for. With an EA you judge a back-test and own the settings; with copy trading you judge a live record and a provider.

Do I need a VPS for an EA or for copy trading?

For an EA, in practice yes: the MetaTrader 5 help says trading robots and signal subscriptions require a constant connection to the trade server and uninterrupted power, and offers virtual hosting for that. MetaTrader's own Signals copying needs the same. A copy-trading platform that the provider runs on its own servers normally needs nothing on your side; ask the provider to confirm it.

Does an EA work on MetaTrader 4 and 5?

Both platforms run Expert Advisors, written in MQL4 and MQL5 respectively, and a robot built for one will not run on the other without being rewritten. This page uses the MetaTrader 5 documentation.

Authorized in the UAESaad Nizar El Soussi, founder of SesTrading, is listed by the UAE Capital Market Authority as an authorized finfluencer (entry 193, added 24 September 2026). Check the official list.

SesTrading Gold Algo: automated gold trading in your own accountIt trades gold (XAUUSD) for you through copy trading, in a trading account in your own name, with at most 1% at risk per trade. Trading gold is high risk and you can lose money.

SesTrading on Telegram

More answers