A forex trading bot trades for you by rules you set. The guides below cover each part in MetaTrader 5: set up the platform, get a ready-made robot or build your own, and test it before it trades a live account.
Open a demo accountWhat do you want to do?
- Set up MetaTrader 5 Install the platform and let a robot trade on your account 3 guides
- Get and run a ready-made robot Get a robot, attach it to a chart and set its risk 4 guides
- Build your own robot Turn your strategy into a robot with AI or MQL5 4 guides
- Test and keep a robot running Check it on past and unseen prices, keep it running 4 guides + 1 soon
What Is a Forex Trading Bot?
A forex trading bot, also called a forex robot or forex trading robot, is a program that opens and closes trades by fixed rules, with no click from you. In MetaTrader 5 it is called an Expert Advisor, or EA, and is written in MQL5. It runs inside the platform on your computer or on a VPS. The bot follows its rules exactly, so its results depend on how good those rules are and how well they were tested.
How a bot trades in MetaTrader 5
- You set the rules: when to buy, when to sell and how much to risk.
- The robot checks every new price against those rules.
- When the conditions match, it sends the order with its Stop Loss and Take Profit.
Set Up MetaTrader 5 for a Forex Robot
A forex robot runs inside MetaTrader 5, so the platform comes first: install it, log in and switch on Algo Trading so an MT5 trading bot can place orders.
-
MetaTrader 5 features What MT5 adds over MT4, from MQL5 to the Strategy Tester. Read the guide -
MT5 download and setup Install MT5 on Windows or Mac and log in to your account. Read the guide -
Turn on automated trading The Algo Trading button and Expert Advisor permissions in Options. Read the guide Demo account
Connect MetaTrader 5 to live quotes and practise with virtual money.
Open a demo account
Get a Ready-Made Forex Robot and Run It
Where to get a robot, how to attach it to a chart and how to set its risk. The sample robot that comes with MetaTrader 5 is the quickest start.
-
Expert Advisor download Free, paid and rented robots, and how to test a paid one free. Read the guide -
Install an EA in MT5 Attach the built-in MACD Sample to a chart on a demo account. Read the guide -
Trading robot settings Lot and Stop Loss set the risk, the magic number separates robots. Read the guide -
Trading robot checklist Fifteen checks from installed to the first trade, each linked to its guide. Read the guide
Don’t want to set up a robot yourself? Copy a strategy. In Copy Trading you pick a trader’s strategy by its track record, and your account repeats its trades.
Browse top strategiesBuild Your Own Robot With AI or MQL5
Write the rules down first. Then an AI forex trading bot builder such as ChatGPT can write the MQL5 code for you, or you edit a working robot by hand.
-
Automated trading strategies Turn a trend, mean reversion or breakout idea into exact rules. Read the guide -
Build an AI trading robot From a strategy in plain words to a tested robot, no coding. Read the guide -
Your first MQL5 Expert Advisor Copy a complete robot, compile it in MetaEditor, change it. Read the guide -
ChatGPT trading bot prompts Prompts for a trailing stop, a trading-hours filter and compile errors. Read the guide
Test Your Forex Bot and Keep It Running
Past prices first, then prices the robot has never seen, then a month on live quotes. A test describes the past and promises nothing about the future.
-
A 15-minute backtest Run the robot on past prices in the Strategy Tester. Read the guide - Profit factor in the report Which report numbers matter and what good values look like. Coming soon
-
Walk forward optimisation Optimise on one period, then check the settings on the next. Read the guide -
Forward testing: a 30-day plan Three weeks on demo, then a week on a cent account. Read the guide -
MT5 VPS for a robot Keep MetaTrader 5 and the robot running with your PC off. Read the guide Real trades in small size for the robot’s first live week.
See the cent accountVPS at RoboForex
Free with equity above 300 USD, bonuses excluded, and 3 standard lots a month on instruments other than CFDs. Otherwise 5 USD a month.
Get a VPS
Forex Trading Bot FAQ
Do forex trading bots work?
Which strategies do forex robots use?
How much does a forex trading bot cost?
How do you set up a demo account for a forex robot?
Can you run an MT4 robot in MetaTrader 5?
Can you run a forex trading bot on a phone?
What is the best forex trading bot?
Does RoboForex provide forex trading bots?
Run Your First Robot on a RoboForex Demo Account
Open a demo account, log in to MetaTrader 5 and attach the sample robot. It trades virtual money on live quotes, so you watch a robot at work before any real deposit.
Open a demo account
