MetaTrader 5 Automation: EAs, Python and Copiers

MetaTrader 5 automation has two ways in. An Expert Advisor written in MQL5 trades from inside your terminal, while a Python script can work with the same terminal from outside. We build both, and we also ship five ready-made copiers that run on MT5 today.

Your MetaTrader 5 automation runs on your own PC or VPS, at your broker, under your own login. Orders go from your terminal to your broker, and we never hold your broker password. Message text is the exception: our Telegram, WhatsApp and Discord copiers send the text of messages from the chats you select to the AI service set in the app and a copy to our server at algodevelop.com, as our privacy policy explains.

Copiers that already run on MT5

If someone else makes the trading decision, a finished copier may be all you need. Each of these places its orders through an EA inside your terminal:

All five work with MetaTrader 5 and MetaTrader 4 alike, so a later move between them keeps your tools. If you would rather not keep a PC or VPS on all day, TPcopier is our cloud version for Telegram and Discord calls.

Install EA page of the WhatsApp to MT4/MT5 copier finding two terminals, with its EA installed in MetaTrader 5 and an Install button for MetaTrader 4
A copier screen, not MetaTrader itself: the WhatsApp copier found two terminals on this PC and has already put its EA into MetaTrader 5.

Expert Advisors in MQL5

According to the official MetaTrader 5 algo trading help, Expert Advisors are mechanical trading systems. They automate both the analysis and the trading. You write them in MQL5, a language with C++-like syntax, which also covers custom indicators, scripts and libraries.

Code lives in MetaEditor, the built-in editor with a debugger and profiler. Its MQL5 Wizard can even generate a simple EA with little or no coding. Indicators cannot trade at all, so anything that should place orders has to be an EA, even when an indicator supplies the signal.

Like any EA, it trades only while the terminal runs with algo trading on. A VPS keeps it going when your own PC is off.

Netting or hedging: check your account first

MetaTrader 5 supports two ways of counting positions, and your broker sets which one your account uses:

The netting or hedging choice changes how a strategy behaves. For example, an EA that opens a buy and a sell together works on hedging, but on netting the two trades cancel out. We confirm your account type before writing a line of code.

Netting versus hedging in MT5: one position per symbol, or several positions including opposite ones
The same two trades on two account types. Ask your broker which one you have before ordering an EA.

The Strategy Tester

The terminal’s tester is a multi-currency tool, so it can test a strategy that trades several symbols at once. It also offers several ways to model prices, among them:

Optimisation runs the strategy many times with different settings, on agents installed on your own computer. The MQL5 Cloud Network can add more agents from around the world. Forward testing then holds back the latest part of your date range, such as a half, a third or a quarter. The settings meet that data only after tuning, which helps catch settings that only fit the past.

A strong backtest is not a forecast. It proves the EA follows your rules, and we tell you when a result looks like curve fitting.

MT5 Strategy Tester stages: real-tick backtest, optimisation, forward test on later data, then a demo account
The test path for every MT5 build. The forward test and the demo run carry the most weight.

Python and MetaTrader 5

MetaQuotes also publishes a Python package called MetaTrader5, installed with pip. It connects a Python script to the terminal on the same machine. Then the script can read bars and ticks, check positions and history, and send orders.

Python can do what MQL5 makes hard: a model trained with pandas or scikit-learn can send its decisions straight to your account. A script can also pull data out for research while the terminal keeps trading.

You still need the terminal installed on that machine, because the script works through it. We build these bridges as custom work, usually alongside an EA or a dashboard. For alerts that start on a chart instead, see this TradingView webhook example for MT5.

MetaTrader 5 automation with Python: your script, the MetaTrader5 package, your terminal and your broker's server
How a Python script reaches your account. The terminal does the trading; the script makes the decisions.

Custom MetaTrader 5 automation

When the decision is yours rather than a channel’s, we build it to your rules. Three pages cover the details:

Many MT5 brokers also list stocks, indices or futures next to forex, depending on the broker. A strategy can trade any of them, so tell us what your account offers. To change an existing EA, we need its .mq5 source; nobody can edit a compiled .ex5.

Before an MT5 EA goes live: account type confirmed, suffix mapped, real-tick test, forward test, demo run, loss cap
Our checklist before any EA we build trades real money.

Coming from MetaTrader 4

MT4 code does not run on MT5. MT4 works in orders, whereas MT5 works in positions, and the order functions differ too. Moving means rewriting the code, while the strategy itself carries over.

We cover that as MT4 to MT5 conversion, and the MT4 vs MT5 guide helps you decide. If you are staying on the older platform, see our MetaTrader 4 page. For a MetaTrader 5 automation project of your own, ask for a quote.

MetaTrader 5 automation: frequently asked questions

Does MetaTrader 5 automation have to be custom?

No. When the trades come from a channel, an alert or another account, one of our five copiers places them through an EA in your terminal. Our guide shows how to copy Telegram signals to MT4 and MT5.

Can Python trade on MetaTrader 5?

Python can trade on MetaTrader 5 through the official MetaTrader5 package. The script connects to your installed terminal and sends orders through it.

Does my account type matter for an EA?

A lot. Netting allows one position per symbol, while hedging allows several. We confirm yours before we build.

Can you convert my MT4 EA to MT5?

Yes, if you have the .mq4 source. It is a rewrite rather than a copy, and we compare trades on the same history.

Why does my EA not trade?

First check that algo trading is on in the terminal and allowed for that EA. Then read the Experts and Journal tabs for the reason.

Can one EA trade several symbols?

Yes. An EA attached to one chart can open and manage trades on other symbols. Our copier EAs, for example, sit on a single chart and trade every symbol a signal names.

Do I need a VPS?

Only if trading must go on while your PC is off. The terminal has to stay open and connected for an EA to trade.

Will an EA make a profit?

Nobody honest can promise that. We build your rules correctly, test them properly and say when a backtest looks too good.

Do I get the source code?

For custom builds, yes: you receive the .mq5 source and the compiled .ex5, so the work stays yours. Ready-made copiers come with a licence instead.

How much does MetaTrader 5 automation cost?

The price depends on the route: a ready-made copier with setup help, or a custom build priced on the strategy. Typical starting ranges are on our pricing page. Tell us what you need: ask for a quote.

WhatsApp