Risk warning: trading carries a high risk of loss. Our tools are software: they work only while MetaTrader 5 runs, and they can stop. Risk disclosure
Start free

Home/Learn/XAUUSD scalping bot

XAUUSD scalping bot for MT5: what to check before you run one

A gold scalping bot takes many small trades a day, often for just a few pips each. That makes it the most cost-sensitive and execution-sensitive kind of trading robot there is. Before you run one, it pays to understand the numbers that decide whether it can work at all, and the semi-automatic alternative many gold scalpers prefer.

Key points

  • On a 10-pip gold scalp, spread, commission and slippage can take more than a third of the target. With a much larger stop loss, the bot then needs a win rate near 90% just to break even.
  • Scalping bots depend on things a backtest rarely shows: live spreads, fill speed, slippage and your broker's execution.
  • Test with real ticks and a random delay, forward test on demo at your own broker, and compare the live results with the test.
  • Many scalpers get better results by keeping the entry and automating only the exits: stop loss at once, profit every few pips, break-even after the first target.

What an XAUUSD scalping bot does

A scalping bot, or expert advisor for scalping, is an MT5 program that opens and closes many short trades, usually holding each for seconds to minutes. On gold it typically aims for 5 to 30 pips per trade (1 pip = 0.10 in price), during the busiest hours of the London and New York sessions, or sometimes in the quiet Asian hours when price moves in small ranges.

The appeal is easy to see: many trades, small risk per trade, and results that look steady on a chart. The catch is that every trade pays the same costs, whether it targets 5 pips or 500.

The cost math that decides everything

Take a simple example: a spread of 2.5 pips, a commission of 7 USD per lot for a round turn (0.7 pips) and an average slippage of 0.5 pips. Together that is 3.7 pips per trade, paid before the trade can earn anything.

Infographic: on gold, costs of 3.7 pips take 37% of a 10-pip target, 19% of a 20-pip target and 7% of a 50-pip target; with a 50-pip stop loss the break-even win rate is 90%, 77% and 54%
The same costs weigh very differently on small and large targets. Tap to enlarge.

Two things follow. First, the smaller the target, the larger the share that goes to costs: 37% of a 10-pip target, but only 7% of a 50-pip target. Second, many scalping bots pair small targets with a much larger stop loss. With a 10-pip target and a 50-pip stop, the bot must win about 9 trades out of 10 just to break even. A few extra pips of spread around news, and the strategy is underwater.

This is also why scalping bots so often show a very high win rate. The win rate is not the point; the size of the losses is.

Execution: the part a backtest rarely shows

  • Spread changes. Gold spreads widen at the session open, around US data and at the daily rollover. A bot that trades in those moments pays much more than its test assumed.
  • Slippage and delay. In a fast market, orders fill at the next price. The further your MT5 is from the broker's server, the larger the delay. Many scalpers run MT5 on a VPS close to their broker for this reason.
  • Broker limits. Minimum stop distance, freeze levels, minimum lot and lot step can stop a scalper from placing the stop or target it wants.
  • Account type. Raw-spread accounts with commission and standard accounts with a wider spread give different results for the same bot. Test on the type you will use.

How to test a gold scalping bot honestly

  1. Backtest with "Every tick based on real ticks" and a random delay in the MT5 Strategy Tester. Generated ticks and zero delay make scalpers look far better than they are. Our Strategy Tester guide shows every setting.
  2. Include all costs: your real commission, your account type's spread.
  3. Look at the average win against the average loss, the largest loss and the longest losing run, not only the win rate and the net profit.
  4. Forward test on demo at your broker for several weeks and compare each week with the backtest of the same days. Big differences mean the test was too kind.
  5. Start live with the smallest lot and watch the Experts log for errors such as requotes or invalid stops.

Red flags specific to scalping bots

  • Results shown only with "every tick" generated data or with zero delay.
  • A target of a few pips with a stop loss many times larger, or no stop loss at all.
  • "Works only with broker X" or "needs a special server": a sign the edge lives in one broker's execution.
  • Trades mainly at the rollover hour, when spreads are widest and tests are least realistic.
  • A win rate above 90% without the size of the losses next to it.

For the general list, see 8 red flags of gold trading bots.

The semi-automatic way: you scalp, software manages the exits

Most of the scalpers we talk to do not actually want a robot that picks trades. They want to keep their own reading of the chart and stop losing time and money on the exits: typing the stop loss, closing parts by hand, moving to break-even a few seconds too late. That is exactly the part that can be automated without handing over the entry.

This is the idea behind Gold Position Manager, the trade manager we build for XAUUSD. You open the trade from its panel, the MT5 order window or the phone app, and it carries out your scalping plan:

Scalping stepBy hand in MT5With Gold Position Manager
Stop lossType it after the entryPlaced within seconds [401]
Partial profit at 10, 20, 30 pipsWindow, volume, close, three timesUp to 10 steps close by themselves [501] to [610]
Break-even after TP1Watch, modify, type the priceAutomatic, with your buffer [701, 704]
Lot size from riskCalculator, then type the lotWorked out on the panel from % or money
"Book now" or "tighten the stop"Several steps eachOne click: BOOK, SL CLOSER, SL TO BREAK-EVEN
Bad day protectionWillpowerDaily loss and trade limits lock the panel's BUY and SELL buttons
Gold Position Manager PLAN tab showing the stop loss, the take-profit steps with their percentages and the break-even rule in plain words
Your scalping plan in plain words on the PLAN tab. Illustration with example numbers.

The cost math above still applies; a trade manager cannot make spreads smaller. What it changes is the reaction time and consistency of your exits. The first part is booked the moment price reaches TP1, the stop moves to break-even in the same second, and no step is skipped because the market got busy. For three ready-made plans with the money worked out per step, see the gold scalping exit plan.

Honest limits

Gold Position Manager does not give signals or open trades by itself on a live chart. It runs while MT5 runs on your PC or a VPS; while MT5 is off, only the stop loss at your broker protects the trade. It cannot prevent slippage, so break-even is close to risk-free, not completely risk-free.

Bot or semi-automatic: which suits you?

  • A scalping bot may suit you if you cannot or do not want to make the trading decisions, and you are willing to test it thoroughly and accept that its edge can disappear.
  • Semi-automatic scalping suits you if you already have entries you trust, from your own analysis or a signal group, and you lose results in the execution of the exits.

You can try the semi-automatic route without risk: Gold Position Manager's free demo runs in the MT5 Strategy Tester and shows every stop, step and break-even on real gold history. The full version is $30 for 6 months, $50 for a year or $149 to buy on the MQL5 Market.

Questions about gold scalping bots

Do XAUUSD scalping bots work?

Some work for a while under specific conditions, many do not survive real spreads, slippage and changing markets. Because costs take a large share of each small target, a scalping bot's result depends heavily on your broker, account type and server distance. Test it with real ticks and on demo at your own broker before risking money.

What is a good target and stop for a gold scalping EA?

There is no single answer, but compare both with your costs. If your spread, commission and slippage add up to about 3 to 4 pips, a 10-pip target loses over a third to costs. Larger targets, or a stop loss not many times bigger than the target, leave more room for error.

Do I need a VPS for a gold scalping bot?

It helps in two ways: MT5 keeps running when your PC is off, and a VPS close to your broker's server reduces delay. For scalping, lower delay usually means less slippage.

Where can I download an XAUUSD scalping bot for MT5?

The safest source is the MQL5 Market, where most EAs have a free demo for the Strategy Tester. Avoid "free" copies of paid bots from unknown sites; they can contain malware or simply not be what they claim. See how to buy an EA on MQL5 safely.

Can a trade manager scalp for me?

No. A trade manager such as Gold Position Manager does not open trades on a live chart. You choose and open each scalp; it places the stop loss, books profit in steps and moves to break-even by your plan, and gives you one-click control.

Sources

Risk note

This guide is education, not financial advice. Scalping means many trades and many costs and is not suitable for everyone. The cost figures are examples; your broker's differ. Trading gold carries a high risk of loss.