Skip to content

Forex and CFD · Platform bridge

Build an MT5 trading bot with your AI coding agent.

Super Algo Kit helps you build an MT5 trading bot inside your own AI coding agent. It can be an MQL5 Expert Advisor, or Python code that drives the terminal through the MetaTrader 5 package. Your broker's terminal holds the session, so markets are whatever your broker lists. The kit tests on a broker demo account first, and live trading starts only when you type the authorize command.

MetaTrader 5 (MT5) logo

broker facts

MetaTrader 5 (MT5)

What it is
A bridge from your code to a MetaTrader 5 terminal, which your broker connects to its trade server.
Markets
Whatever your MT5 broker lists, such as forex, CFDs and exchange symbols. The broker sets netting or hedging.
Routes
In the kit's order: the Python package on a Windows terminal, an Expert Advisor calling out, or a hosted bridge.
Login model
Account number, password and server, held by the terminal. No tokens; the terminal reconnects itself.
Paper option
A broker demo account. The Strategy Tester is a backtest and never counts toward the paper stage.
Limits
No rate limit is documented for the Python package. The kit caps itself at 2 to 5 order requests a second.
Costs
The terminal and Python package are free. Spread, commission and swap come from each broker symbol.
India
MT4 and MT5 are on the RBI Alert List (as on 19 November 2025); the kit refuses this route for residents of India.

From the kit's MT5 card, checked 2026-09-30. Confirm current terms on MT5's own site.

Paper first

A MT5 bot, built paper first.

Super Algo Kit runs inside the coding agent you already use. It interviews you, writes the spec with pass marks set first, then builds, backtests and paper-tests. Real money starts only when you type the authorize command.

Type this in your coding agent
Build me an MT5 Expert Advisor for EURUSD with a moving-average trend filter and a daily loss limit. Paper only.

The plan, step by step

Tick them off as you go.

How MT5 access and login work for a bot

You install your broker's MT5 terminal on Windows, log in once by hand and turn Algo Trading on. The Python package works only with a logged-in terminal on the same machine. On Linux or macOS, the terminal and Python run through Wine.

The terminal holds your account number, password and server, so the bot host becomes a credential store. Use the investor password for research and, where your broker offers it, the Trader access level for a bot (reported). The kit treats accounts that log in with Passkey or one-time passwords as needing a human, so the bot waits in an explicit state. These terminal switches can block a bot.

  • Allow Auto Trading on the platform
  • The per-EA trading setting
  • The setting that disables the external Python API
  • Allow WebRequest for listed URLs, off by default

Paper trading an MT5 bot on a demo account

The paper option is a broker demo account, and the bot checks the account's trade mode at start. Features that work only on real accounts are refused on demo. Demo fills, spreads and latency differ from live and between brokers, and the kit could not confirm them per broker.

The Strategy Tester is a simulator, not a broker, so a tester run is a backtest and never counts as paper. A headless tester run uses generated ticks unless set otherwise. The tester does not run network calls, so bridge code needs a test double.

MT5 limits and costs to plan for

The Python package has no documented rate limit, but the server can refuse too many requests. The broker's pacing was not confirmed, and pending orders are capped by an account setting. The MetaQuotes VPS runs EAs only, not Python.

The terminal and the Python package are free, but you need a Windows host. Spread, commission and swap come from each symbol's specification, so the bot reads them at run time. Model the rest from the forex and CFD pack's cost rules.

What Super Algo Kit does with MT5

The mql-builder skill writes MQL5 Expert Advisors, and the kit can port a Pine Script strategy to an MT5 EA with a parity report. MT4 is a legacy lane only, for maintaining or porting an old EA. Every EA is built and tested for both netting and hedging unless your account model is known.

MT5 has no client order id, only a magic number and a 31-character comment, so the kit keeps its own duplicate guard. Before any retry, it searches orders, positions and history by them. At start, it checks that the terminal is connected, trading is allowed and the server-time offset is measured.

An independent risk gate and a kill switch you can run yourself sit outside the strategy. The terminal's own AI agent servers stay off for any bot.

Before you rely on it

Gotchas to plan for.

  • Windows only: every wheel of the Python package is for 64-bit Windows.
  • No client order id: the 31-character comment can be rewritten by the server.
  • Netting and hedging accounts treat positions differently; an EA written for one fails silently on the other.
  • Broker time zones and daylight saving can shift bars by hours; measure the offset against UTC.
  • The kit does not build a TradingView-alert-to-MT5 route; TradingView's terms forbid automated trading from alerts.
  • MT4 has no Python package and brokers are ending it, so new work defaults to MT5.

FAQ

MT5: questions.

Can I build an MT5 trading bot without coding?

Yes. You describe the bot in plain words, and Super Algo Kit's roles in your coding agent write MQL5 or Python code in your project. You approve the brief, idea, spec, risk limits and release. It is not a drag-and-drop EA builder; the output is real code.

How do I paper trade an MT5 bot?

Use a demo account from your MT5 broker and forward-test for the full paper period. Super Algo Kit does not count a Strategy Tester run as paper, because the tester is a backtest. Live trading waits until you type the authorize command.

Is Super Algo Kit affiliated with MetaTrader 5?

No. Super Algo Kit is not affiliated with or endorsed by MetaQuotes, the maker of MetaTrader 5. The MT5 name is used only to say the kit works with it.

Does the MT5 Python package work on Mac or Linux?

Not natively. Every wheel of the MetaTrader 5 Python package is for 64-bit Windows. On Linux or macOS, the terminal and Python run inside Wine, and any community bridge must listen on localhost only.

Can I use an MT5 bot from India?

Super Algo Kit refuses the MT5 route for residents of India. The RBI Alert List, as on 19 November 2025, names MetaTrader 4 and 5. Indian residents use the kit's India pack instead. This is not legal advice.

Keep reading

More guides.

MetaTrader 5 (MT5) and its logo are trademarks of their owner, used here only to say that Super Algo Kit can work with it. Super Algo Kit is not affiliated with or endorsed by MT5. Super Algo Kit is development software. It is not investment advice, a signal service or a promise of performance. Trading involves substantial risk, including the loss of all capital you trade with.