Automated trading bot for MetaTrader 4
An MT4 trading bot places and manages trades inside MetaTrader 4 using a defined strategy. XAUBOT builds the bot for you as a ready-to-install .ex4 file, so you can automate gold and forex on the terminal almost every broker supports, without writing code or watching the charts all day.
Order routing on MT4
LiveSignal to filled order, compiled MQL4 execution
What Is MetaTrader 4 (MT4)?
MetaTrader 4, also known as MT4, is a trading platform released by MetaQuotes in 2005. It remains the most widely offered retail trading terminal, and it is still the default choice at most forex brokers.
Supported almost everywhere
Nearly every retail broker offers an MT4 account, so you rarely have to change broker to run a bot.
9 built-in timeframes
M1 through to monthly charts, covering every timeframe a standard strategy needs.
Hedging by default
Every MT4 account allows opposite positions on the same symbol, so grid and recovery logic behaves predictably.
Runs on minimal hardware
The terminal is light on CPU and RAM, which keeps monthly VPS costs down when a bot runs around the clock.
How does it works – Step by Step
Select a market
Open the Market Watch panel and choose the instrument you want to trade, such as EUR/USD, GBP/JPY or XAU/USD.
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.
Attach the bot
Drag your .ex4 file from the Navigator onto the chart, switch AutoTrading on, and let it manage the trading process for you. You can also trade manually: pick your lot size and set your Stop Loss and Take Profit levels.
Review your results
Open the Account 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 |
|---|---|---|---|
| Broker availability | Offered by almost every retail broker | Widely offered, but not everywhere | MT4You can usually keep the broker and account you already have. |
| Order management | Hedging on every account | Hedging or netting, set by the broker | MT4No account-mode surprises for strategies that scale into a position. |
| Programming core | MQL4 — lightweight, stable, simple | MQL5 — object-oriented, high-speed | MT4Lower CPU and RAM use. MT5Supports more complex logic. |
| Market access | Forex, gold, indices | Forex, gold, indices, stocks, crypto | MT5Needed only if you want to automate stocks, indices or crypto. |
| Timeframes | 9 standard | 21, including 2m, 3m, 12m | MT5Only matters for scalping on non-standard intervals. |
| Pending orders | 4 types | 6 types, adding stop-limit orders | MT5Extra entry types for more complex order logic. |
| Backtesting precision | Up to 90% modelling quality from M1 data | Real-tick data simulation | MT5Closer to live conditions. Forward-test on demo either way. |
XAUBOT as your MT4 trading bot
XAUBOT is an automated trading platform that offers MT4 expert advisors (EA), and also provides customisation of trading bots based on trading styles and preferences
Every XAUBOT bot runs on MetaTrader 4
Build your own bot
Set the settings yourself and let XAUBOT compile it into a working bot file.
- ✓Choose the market, strategy and risk settings that suit how you trade.
- ✓No coding. The builder compiles the strategy for you.
- ✓Download it for MT4 or MT5, whichever platform you already use.
Use the ready-made bots
Choose from the popular ready-made strategies, each supported by verified performance results.
- ✓Download the whole bot files for MT4.
- ✓Each bot is tuned to one market.
- ✓Track records are published on Myfxbook, drawdown included.
Questions?
Answers to the most common questions about MetaTrader 4 and running a bot on it.
Still have questions?
Our team answers via live chat and email — usually within 2 business hours.
Contact support →Looking for the MetaTrader 5 details?
Explore MT5 requirements, timeframes, features, and how XAUBOT supports automated trading on MetaTrader 5
Build a bot for your terminal
Generate an .ex4 file for MT4 or download a ready-made MT4 bot, test it on a demo account, and move to live trading only when you feel ready