A trading robot on MetaTrader 5 applies your strategy to the second, without fatigue or hesitation. Before you pay for one to be built, insist on seven things: a written specification, the source code (.mq5), a test report on historical data (backtest), several weeks on a demo account, risk limits written into the code (stop loss, position size), a log of its decisions and planned maintenance.
What a trading robot on MetaTrader 5 is
On MetaTrader 5, a robot is called an expert advisor. It is a program written in MQL5, the platform’s language, that runs in your terminal, on your account. It watches prices, applies your entry and exit rules, places orders and can send you alerts.
A robot invents nothing: it executes a strategy. Its value therefore depends entirely on two things: the quality of your strategy, and how rigorously it has been turned into code and tested.
Why have one built to measure?
Off-the-shelf robots apply someone else’s strategy, often without saying which. You know neither why it enters a position nor how it behaves when the market changes. A custom robot applies your rules, with your risk limits, and you can make it evolve.
The specification: what it must contain
Everything starts with a written document, approved before the first line of code. It sets out:
- The markets and timeframes followed: currency pairs, indices, commodities; charts in minutes, hours or days.
- The entry conditions, without ambiguity: which indicators, which thresholds, in which order.
- The exit conditions: profit target, protective stop, exit after a set time.
- Risk management: size of each position, maximum daily loss beyond which the robot stops, number of positions open at once.
- Trading hours: operating hours, pauses around certain economic announcements.
- Alerts: which events are reported to you, and through which channel.
- Difficult cases: lost connection, unusual price gaps, terminal restart.

Seven points to insist on before paying
- A written specification approved by you, which serves as the reference in case of disagreement.
- The source code, the .mq5 file, not just the compiled .ex5 file. Without the source, nobody else can fix or improve your robot if the developer disappears.
- A backtest report on historical data, stating the period, the market, the fees and the spreads taken into account.
- A test on a demo account for several weeks, in real market conditions, with no money at stake.
- Risk limits written into the code, not left to your goodwill.
- A journal of every decision the robot makes, to understand its results.
- Planned maintenance: platform updates, changes in your broker’s conditions, adjustments.
Warning signs
- A seller who promises a monthly or yearly return.
- A robot delivered without source code or a test report.
- A request to hand over your money, or withdrawal access, to anyone other than your broker.
Testing before committing money
MetaTrader 5 includes a strategy tester that replays the robot on historical prices, before any live use. It is the most instructive step, with one condition: be wary of a curve that looks too good. A robot tuned to fit the past perfectly often fails in the future; this is called over-optimisation.
Next comes the demo account, which tests the robot against the real market without risk, then a start with small position sizes, increased only if results match what the tests suggested.
Getting the robot’s alerts on Telegram
A robot can notify you on Telegram at every opening, closing or incident. In MetaTrader 5, the service’s address must be allowed in the terminal options, on the expert advisors tab; without it, sending fails. These requests do not work in the strategy tester, so alerts are checked on the demo account.
Where should the robot run?
A robot only works while the terminal stays on and connected. Rather than a desktop computer, traders usually use a remote server (VPS), always on and close to their broker’s servers. Include its monthly cost in your budget.
What never to believe
No robot guarantees a gain. In March 2023, the French financial markets authority (AMF) warned against trading robot offers promising returns of 5% to 15% per month, or up to 400% per year. Trading involves a risk of capital loss, and results on historical data do not guarantee future results. A serious robot gives you discipline and time; it replaces neither your judgement nor investment advice.
To go further, read what an AI trading agent can do for you, and what it never will.
Key takeaways
- An MT5 robot executes your strategy: its value depends on the strategy and on how rigorously it was tested.
- Insist on a written specification, the source code (.mq5), a backtest report and several weeks on a demo account.
- Risk limits must be in the code, and the robot must keep a journal.
- A promised return is a warning sign; trading involves a risk of capital loss.
Your strategy, your robot
Tell us how you trade: we will tell you what a robot can execute, test and monitor. You receive a written quote, and the source code (.mq5) is handed over to you on delivery.
Frequently asked questions
How much does a custom MT5 robot cost?
The price depends on the complexity of the strategy, the number of markets, the alerts and the level of testing required. It is set in a quote, after a conversation about how you trade. Also plan for the monthly cost of a remote server and, depending on the markets, data.
Can the robot run on MetaTrader 4?
MetaTrader 4 uses a different language, MQL4. A robot written for MetaTrader 5 does not run as is on MetaTrader 4: state your broker’s platform in the specification.
Will I be able to change the settings myself?
Yes. Useful settings (risk per position, trading hours, thresholds) are set up as parameters, adjustable without touching the code. The source code is yours to go further.
Can a TradingView strategy be turned into an MT5 robot?
Yes: the logic of a strategy written on TradingView, in Pine Script, can be rewritten in MQL5 for MetaTrader 5. It is not an automatic conversion: each rule is rebuilt, then the robot is tested on historical data to check it behaves like the original strategy.
Article updated on 20 November 2026.
Written by the Orsel Studio team. We design websites and custom tools for businesses across West Africa, with a dedicated contact, a written quote and written timelines. See how we work
Sources
- MetaTrader 5: official help, strategy testing, accessed 12 November 2026
- MQL5: WebRequest function documentation (allowed addresses, strategy tester), accessed 12 November 2026
- AMF: warning on fraudulent investment offers through trading robots (in French), 2 March 2023

