Updated 22 October 2026By the FXSUPPORT engineering team
MetaTrader plugin development is the building of code that changes how an MT4 or MT5 server behaves, such as dynamic leverage, custom stop-out rules or commission logic. Server plugins use the MetaQuotes Server API and run inside the trade server. Manager API and Web API tools run outside it and connect systems like a CRM. Expert Advisors are a different, trader-side product.
What are MetaTrader plugins?
In the broker sense, MetaTrader plugins are code that runs inside the MT4 or MT5 trade server and adds rules the standard platform lacks. MetaTrader plugin development usually means writing that code against the MetaQuotes Server API. For MT5, MetaQuotes says the Server API adds functions to the Trade Server and the History Server.
A server plugin sits in the server’s own processing path. It applies to every group and account it is set up for, and a trader cannot switch it off. A fault in it can affect the whole server, which is why testing matters so much.
The word plugin is used loosely online, so it helps to separate three kinds of code. Server plugins run on the trade server. External integrations built on the Manager API or Web API are separate programs that log in to read and change data. A CRM is the classic example. Expert Advisors and indicators written in MQL run in a trader’s terminal for one account. Many searches for a plugin for MetaTrader 4 are really about this last, retail kind.
“Server API makes it possible for you to develop various server plugins with unlimited possibilities, including management of server parameters, order and customer base, processing trade requests and more.”
MetaQuotes, MetaTrader 4 API
Server API, Manager API or Web API: which one does what?
Use the Server API when a rule must run inside the trade server. Use the Manager API when a back-office program needs to manage accounts, groups and trades. Use the Web API when your website or portal needs to talk to MT5. MetaQuotes publishes a different set of interfaces for each platform, and most real projects combine two of them.
A dynamic leverage rule, for example, runs as a server plugin. Its settings screen and reports often live in a Manager API tool or in the CRM. For integration-only work, see MetaTrader API integration.
MetaQuotes gives two useful examples on its MT4 integration page. One is a Report API plugin that builds reports for your regulator automatically. The other is a module that connects to an online payment system and credits deposits to traders’ accounts. Both show the same idea: the platform does the trading, and plugins or API tools fit it to the rest of your business.
| Interface | Platform | Where the code runs | Typical use |
|---|---|---|---|
| Server API | MT4, MT5 | Inside the trade server (MT5 also history server) | Leverage, margin and stop-out rules, trade request handling |
| Manager API | MT4 (C++), MT5 (C++, ASP.Net, PHP) | External program with manager rights | CRM sync, account creation, deposits, exposure tools |
| Web API | MT5 | External web services | Client portal, registration, account data on websites |
| WebServices API | MT4 | External web services | User accounts and quotes on a website |
| Gateway API | MT5 | Gateway between MT5 and other systems | Links to other trading systems and custom data feeds |
| DataFeed API | MT4 | Feed module | News and quote feeds |
| Report API | MT4, MT5 | Reporting module | Custom reports, including reports for a regulator |
Interface names and languages from MetaQuotes’ MT4 API page, MT5 broker page and MT5 versus MT4 comparison.
MT5 plugins for brokers: what brokers usually run
Most MT5 plugins for brokers fall into a handful of groups. Risk and margin controls come first, followed by dealing and execution rules. Then come symbol and swap management, copy trading and money management, commissions and IB payouts, and feeds or reporting. MT4 plugins cover the same ground on the older platform.
Before ordering custom code, check whether a supported ready-made plugin already does the job. Custom MT5 plugin development pays off when the rule is specific to your business and no ready-made product handles it the way you need. For money management products see our MAM and PAMM setup page.
| Category | Typical functions | Usual interface |
|---|---|---|
| Risk and margin | Dynamic leverage, negative balance handling, custom stop-out rules, position limits | Server API |
| Dealing and execution | Markups, virtual dealer rules, request filtering, custom routing | Server API, Gateway API on MT5 |
| Symbols and sessions | Swap updates, futures rollovers, holiday and DST changes | Server API or Manager API |
| Money management | MAM, PAMM, trade copiers | Server API with Manager or Web API |
| Fees and partners | Commission conversion, IB and agent payouts | Server API or Manager API |
| Feeds and reporting | Custom feeds, end-of-day and regulator reports, dealer alerts | Gateway or DataFeed API, Report API |
Build, buy or use MT5 Automations?
MT5 brokers now have three options: buy a ready-made plugin, commission a custom one, or set up MetaQuotes’ built-in Automations. MetaQuotes markets Automations as a way to replace some plugins. Its page lists more than 100 ready-to-use workflows built from 70+ triggers, 160+ conditions and 50+ actions, with no coding required. MT4 has no equivalent.
Our rule of thumb is simple. If the task reads like “when this happens, notify someone or move the account”, try Automations first. If it changes how a trade is accepted, priced, margined or executed, it needs server code.
| Question | MT5 Automations | Ready-made plugin | Custom plugin |
|---|---|---|---|
| Best for | Alerts, group moves, routine events | Common needs like swaps or copy trading | Rules unique to your model |
| Platforms | MT5 only | Depends on the vendor | MT4 or MT5 |
| Source code | Part of MT5 | Stays with the vendor | Stays with FXSUPPORT; you get the compiled plugin |
| After a build update | Handled by MetaQuotes | Vendor releases a new version | Your developer retests and rebuilds |
| Main risk | Limits of the workflows | Lock-in and conflicts with other plugins | Quality of the specification and testing |
“Fewer plugins, fewer compatibility issues. Automation helps reduce costs associated with purchasing expensive plugins. At the same time, you no longer need to worry about plugin compatibility after MetaTrader 5 updates.”
MetaQuotes, MetaTrader 5 Automations
How does a MetaTrader plugin project run?
A plugin project moves through a fixed order, and no code is written until the business rule is clear enough to test. These are the steps we follow.
Requirements workshop
We agree the rule with your dealing and risk staff: which groups and symbols it covers, what triggers it, what should happen and the exceptions.
Written specification
A specification, an architecture diagram and a timeline. It names the interface, the settings, the logging and what the plugin does when something fails.
Development with weekly builds
Your team sees working builds every week, so a misunderstanding shows up early instead of in the final demo.
Demo server testing
Functional, edge-case, load and failure tests on a server that mirrors your live set-up.
Pilot and rollout
The plugin goes live on a pilot group first. A rollback plan is agreed before it starts.
Monitoring and warranty
We review logs and results after go-live and fix bugs found during the warranty period.
Maintenance
Optional cover for new MetaTrader builds, tuning and new features.
How should an MT5 server plugin be tested?
Every MT5 server plugin should be tested on a separate demo server that copies your live groups, symbols, sessions and other plugins. Testing on live accounts puts clients’ trades at risk. Expert Advisors can be backtested on history, but a server plugin cannot be tested that way, so scripted scenarios on the demo server take that role.
Keep the demo server in step with production. Many go-live surprises come from a group setting or plugin that existed live but not in testing. We check this drift as part of our MT5 server configuration work.
| Test | What it proves | Example pass condition |
|---|---|---|
| Functional | The rule does what the specification says | Each scenario gives the expected leverage, margin or price |
| Edge cases | Behaviour at limits | Zero balances, partial fills and closed sessions cause no errors |
| Coexistence | No conflict with installed plugins | Bridge and copy-trading plugins behave as before |
| Load | No slowdown at peak | Processing stays within agreed limits during a simulated news spike |
| Failure | Safe behaviour when something breaks | A lost CRM link or bad setting leaves trading in a safe, logged state |
| Build upgrade | Works on the next MetaTrader build | Retested on the new build before live is upgraded |
Maintenance and the risks of running plugins
The main plugin risks are stability, compatibility, security and dependence on one vendor. Server code can slow or stop the server. A new MetaTrader build can break a plugin nobody maintains. Manager and Web API logins can carry wide rights, and without source code you cannot change supplier.
The controls are plain. Test every new build on demo with your plugins before upgrading live. Keep a list of installed plugins, their versions and settings. Give API logins only the rights they need and restrict them by IP address. For custom work, insist on full documentation and a maintenance agreement that covers new builds.
Our maintenance agreements cover the work that keeps a plugin healthy after launch. We follow MetaQuotes build releases, retest your plugins on demo before each upgrade and rebuild them when an API changes. We also tune performance if a plugin starts to show up in processing times, and add small features as your rules change. Plugins from other developers can be brought under the same cover once we have reviewed their code or behaviour.
Outsourcing development does not move responsibility. For UK firms, the FCA Handbook says a firm that outsources critical or important functions remains fully responsible for its regulatory obligations. Keep the specification, test evidence and change records where your compliance team can find them. This is general information, not legal advice.
Plugin for MetaTrader 4: what changes on MT5
New plugin work is mostly MT5 now, because MetaQuotes no longer sells MT4 licences. Existing MT4 servers still need their plugins maintained, and we do that work too.
Moving a plugin from MT4 to MT5 is a rewrite, not a recompile, in our experience. MetaQuotes publishes the two platforms’ APIs separately. MT5 also adds netting accounts, unlimited groups and a distributed server design, so the logic needs review as well. Plugin inventory should be part of any MT4 to MT5 migration plan from day one.
White-label and grey-label brokers work on a server they do not control. The server owner decides whether a plugin may be installed. Manager API or Web API tools limited to your own groups are often the practical alternative. See MT5 white label for how the models differ.
What to send us for a plugin assessment
A short, concrete brief gets you an accurate answer fast. We reply with the route we would take, what it involves and a written quote. We do not publish fixed prices because the cost depends on the interface, the complexity of the logic, the systems involved and the testing effort.
- MT4 or MT5, own licence or white label, and who controls the server
- The business rule in plain words, with two or three worked examples
- The groups, symbols and account types in scope
- Plugins and bridges already installed, and whether you have a demo server
Frequently asked questions
What is the difference between an MT4 plugin and an Expert Advisor?
A server plugin runs inside the broker’s trade server and applies to every group it is set up for. An Expert Advisor is an MQL4 or MQL5 program that runs in one trader’s terminal and trades one account.
What is the difference between the MT5 Server API and the Manager API?
The Server API adds functions to the MT5 Trade Server and History Server, so the code runs on the server. The Manager API is used by outside programs, such as a CRM or your own manager tool, to manage accounts, groups and trades.
Which language are MetaTrader server plugins written in?
We write server plugins in C++. MetaQuotes lists C++, ASP.Net and PHP for the MT5 Manager API and C++ for MT4. Expert Advisors use MQL4 or MQL5.
Can a plugin crash my trade server?
Yes. A server plugin runs in the server’s processing path, so an unhandled error or heavy processing can affect every client. That is why we load-test on demo, roll out to a pilot group and keep a tested way to switch the plugin off.
Do plugins keep working after a MetaTrader update?
Not automatically. Test every new server build on a demo server with your plugins before upgrading the live server. Our maintenance agreements cover this retesting.
Can MT5 Automations replace my plugins?
Some of them. MetaQuotes offers over 100 no-code workflows that suit alerts, bonuses and group moves. Rules that change how a trade is priced, margined or executed still need a server plugin. Automations is not available on MT4.
Can you move our MT4 plugins to MT5?
Yes, by rewriting them against the MT5 Server API. In our experience a straight copy does not work. We also review the logic for MT5 features such as netting accounts and test both versions side by side.
Can a white-label broker install server plugins?
Only if the server owner allows it, because the plugin runs on their server and affects their other clients. Manager API or Web API tools limited to your own groups are the usual alternative.
How long does MetaTrader plugin development take?
From our past projects, simple tools take one to two weeks and complex server plugins or Manager API integrations three to six weeks. We confirm the timeline in the written specification.
Do I get the source code of a custom plugin?
No. We deliver the compiled plugin with its documentation and keep the source code ourselves, so we can maintain it and rebuild it for new MetaTrader builds. We are happy to sign your NDA.
Sources
- MetaQuotes, MetaTrader 4 API (Server, Manager, DataFeed, Report and WebServices API), accessed October 2026
- MetaQuotes, MetaTrader 5 for brokers (Server, Manager, Web, Gateway and Report API), accessed October 2026
- MetaQuotes, Comparison of MetaTrader 5 and MetaTrader 4 for brokers, accessed October 2026
- MetaQuotes, MetaTrader 5 Automations, accessed October 2026
- MetaQuotes, MetaTrader 4 integration, plugins and feeds, accessed October 2026
- FCA Handbook, SYSC 8.1 General outsourcing requirements, accessed October 2026
FXSUPPORT is not affiliated with MetaQuotes Ltd. or with any vendor or regulator named on this page. This page is general information, not legal or investment advice.