Automated trading bot for MetaTrader 5

An MT5 trading bot places and manages trades inside MetaTrader 5 using a defined strategy. XAUBOT builds the bot for you as a ready-to-install .ex5 file, so you can automate gold, forex, indices and crypto from one terminal without writing code or watching the charts all day.

Order routing on MT5

Live
Signal
MT5 core
Broker
0ms

Signal to filled order, multi-threaded 64-bit routing

MQL5native build
99.9%tick accuracy
24/7coverage
21
Built-in timeframes
64-bit
Terminal architecture
MQL5
Programming language
2GB
Typical RAM footprint

What Is MetaTrader 5 (MT5)?

MetaTrader 5, also known as MT5, is a trading platform created by MetaQuotes in 2010. It was developed as the next version of MetaTrader 4 (MT4)

More order types

MT5 supports 6 types of pending orders, compared with 4 in MT4.

21 built-in timeframes

Includes 21 built-in timeframes for more flexible market analysis.

Built-in calendar

Includes a built-in calendar for important economic news.

Multi-asset trading

Supports Forex, stocks, indices, commodities, futures, and crypto.

How does it works – Step by Step

01

Select a market

Open the Market Watch panel and choose the instrument you want to trade, such as EUR/USD, XAU/USD, Apple shares, or Bitcoin.

02

Open a chart

Right-click your preferred currency pair and select Chart Window. You can then change the timeframe, add indicators, and use drawing tools for analysis.

03

Place an order

Attach an MT5 trading bot to your chart and let it manage the trading process automatically for you. Alternatively, select your preferred currency pair, choose your lot size, and set your Stop Loss and Take Profit levels and trade manually.

04

Review your results

Open the History tab to review your previous trades, including profits and losses. This can help you evaluate your trading approach and make adjustments over time.

MT4 vs MT5: what changes for your bot

XAUBOT supports both, and which one you use usually comes down to your broker, the markets you want to trade, and your hardware.

Feature MetaTrader 4 MetaTrader 5 Impact on your XAUBOT
Market access Forex, gold, indices Forex, gold, indices, stocks, crypto MT5Multi-asset algorithms inside a single bot instance.
Execution & speed Single-threaded, 32-bit Multi-threaded, 64-bit MT5Up to 5× faster order execution in high volatility.
Timeframes 9 standard 21, including 2m, 3m, 12m MT5Scalping logic can trigger on custom intervals.
Backtesting precision Standard modelling (control points / M1) Real-tick data simulation MT5Up to 99.9% accuracy using real historical spread and ticks.
Order management Hedging only Hedging and netting MT5Room for more complex position logic.
Programming core MQL4 — lightweight, stable, simple MQL5 — object-oriented, high-speed MT4Lower CPU and RAM use. MT5Supports complex machine-learning logic.

XAUBOT as your MT5 trading bot

XAUBOT is an automated trading platform that offers MT5 expert advisors (EA), and also provides customisation of trading bots based on trading styles and preferences

Works with any MT5 broker Customizable risk settings Verified live results
Start Free Trial

Every XAUBOT bot runs on MetaTrader 5

Build your own bot

Set the settings yourself and let XAUBOT compile it into a working bot file.

  • Choose themarket, strategy and risk settings that suit how you trade.
  • No coding. The builder compiles the strategy for you.
  • Download it for MT5 or MT4, whichever platform you already use.
Build your bot

Use the ready-made bots

Choose from the popular ready-made strategies, each supported by verified performance results.

  • Download the whole bot files for MT5.
  • Each bot is tuned to one market.
  • Track records are published on Myfxbook, drawdown included.
Browse the bots

Questions?

Answers to the most common questions about MetaTrader 5 and running a bot on it.

Still have questions?

Our team answers via live chat and email — usually within 2 business hours.

Contact support →
Is MetaTrader 5 a newer version of MetaTrader 4?
No. Despite the name, MT5 is a separate product with its own language, file format and account model. Nothing carries over automatically: bots, indicators, settings and history all have to be set up again on the new terminal.
Which file type does MT5 use?
MT5 runs .ex5 files. An .ex4 file is compiled for MT4 and will not load on MT5.
Where do I put the .ex5 file?
In the MQL5/Experts folder of the terminal's data folder. Open it from the terminal with File → Open Data Folder, drop the file in, then restart MT5 or right-click Expert Advisors in the Navigator and choose Refresh.
Is my account in hedging or netting mode?
The broker sets it when the account is opened, and it is shown in the terminal under Journal or in the account properties. It matters because in netting mode all trades on one symbol merge into a single position, so a strategy that expects separate tickets will behave differently.
What VPS specification does MT5 need?
A single-terminal setup runs on Windows Server 2016/2022 with 2 vCPU, 2 GB RAM, 20 GB SSD and under 100 ms latency to the broker server. Running several terminals, or backtesting and optimising while bots are live, needs more cores and RAM than that.
Does the built-in calendar handle news filtering?
MT5 includes an economic calendar that MQL5 code can read, so a bot can pause around scheduled releases without an external feed. XAUBOT uses its own news filter service for consistency across both terminals, which is why its WebRequest URL still has to be allowed in the terminal options.
My broker offers both MT4 and MT5 — does it matter which I pick?
It matters mainly for instruments and account mode. If you need indices, crypto CFDs or non-standard timeframes, MT5 is the terminal that has them. And bots do not transfer between the two — each terminal needs its own compiled file.
How can I tell a bot is actually running?
MT5 shows a blue Expert Advisor icon in the top-right corner of the chart when the bot is attached and Algo Trading is enabled. The Experts and Journal tabs log the startup lines, and the XAUBOT panel on the chart shows a Live status.

Looking for the MetaTrader 4 details?

Explore MT4 requirements, timeframes, features, and how XAUBOT supports automated trading on MetaTrader 4

MetaTrader 4 overview →

Build a bot for your terminal

Generate an .ex5 file for MT5 or download a ready-made MT5 bot, test it on a demo account, and move to live trading only when you feel ready