FXSUPPORT

All servicesAboutContact
Plugins and APIs

MetaTrader plugin development for MT4 and MT5 brokers

We build server plugins and Manager API tools for brokerages that need rules the standard platform does not offer. We also install, test and maintain plugins you already run.

For brokerages and companies. Replies come from an engineer, not a call centre.

Server plugins
MetaQuotes Server API, C++
External tools
Manager API and Web API
Delivery
Compiled plugin and documentation
Testing
Demo server first, then a pilot group

Updated 22 October 2026By the FXSUPPORT engineering team

In short

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.

MetaQuotes interfaces for brokers
InterfacePlatformWhere the code runsTypical use
Server APIMT4, MT5Inside the trade server (MT5 also history server)Leverage, margin and stop-out rules, trade request handling
Manager APIMT4 (C++), MT5 (C++, ASP.Net, PHP)External program with manager rightsCRM sync, account creation, deposits, exposure tools
Web APIMT5External web servicesClient portal, registration, account data on websites
WebServices APIMT4External web servicesUser accounts and quotes on a website
Gateway APIMT5Gateway between MT5 and other systemsLinks to other trading systems and custom data feeds
DataFeed APIMT4Feed moduleNews and quote feeds
Report APIMT4, MT5Reporting moduleCustom 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.

Common MetaTrader plugin categories
CategoryTypical functionsUsual interface
Risk and marginDynamic leverage, negative balance handling, custom stop-out rules, position limitsServer API
Dealing and executionMarkups, virtual dealer rules, request filtering, custom routingServer API, Gateway API on MT5
Symbols and sessionsSwap updates, futures rollovers, holiday and DST changesServer API or Manager API
Money managementMAM, PAMM, trade copiersServer API with Manager or Web API
Fees and partnersCommission conversion, IB and agent payoutsServer API or Manager API
Feeds and reportingCustom feeds, end-of-day and regulator reports, dealer alertsGateway 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.

Automations, ready-made plugin or custom plugin
QuestionMT5 AutomationsReady-made pluginCustom plugin
Best forAlerts, group moves, routine eventsCommon needs like swaps or copy tradingRules unique to your model
PlatformsMT5 onlyDepends on the vendorMT4 or MT5
Source codePart of MT5Stays with the vendorStays with FXSUPPORT; you get the compiled plugin
After a build updateHandled by MetaQuotesVendor releases a new versionYour developer retests and rebuilds
Main riskLimits of the workflowsLock-in and conflicts with other pluginsQuality 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.

  1. 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.

  2. 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.

  3. Development with weekly builds

    Your team sees working builds every week, so a misunderstanding shows up early instead of in the final demo.

  4. Demo server testing

    Functional, edge-case, load and failure tests on a server that mirrors your live set-up.

  5. Pilot and rollout

    The plugin goes live on a pilot group first. A rollback plan is agreed before it starts.

  6. Monitoring and warranty

    We review logs and results after go-live and fix bugs found during the warranty period.

  7. 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 plan for a MetaTrader server plugin
TestWhat it provesExample pass condition
FunctionalThe rule does what the specification saysEach scenario gives the expected leverage, margin or price
Edge casesBehaviour at limitsZero balances, partial fills and closed sessions cause no errors
CoexistenceNo conflict with installed pluginsBridge and copy-trading plugins behave as before
LoadNo slowdown at peakProcessing stays within agreed limits during a simulated news spike
FailureSafe behaviour when something breaksA lost CRM link or bad setting leaves trading in a safe, logged state
Build upgradeWorks on the next MetaTrader buildRetested 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
FXSUPPORT is independent and is not affiliated with MetaQuotes or with any plugin or bridge vendor. For custom plugins we build, you receive the compiled plugin and its documentation. The source code stays with us.

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

  1. MetaQuotes, MetaTrader 4 API (Server, Manager, DataFeed, Report and WebServices API), accessed October 2026
  2. MetaQuotes, MetaTrader 5 for brokers (Server, Manager, Web, Gateway and Report API), accessed October 2026
  3. MetaQuotes, Comparison of MetaTrader 5 and MetaTrader 4 for brokers, accessed October 2026
  4. MetaQuotes, MetaTrader 5 Automations, accessed October 2026
  5. MetaQuotes, MetaTrader 4 integration, plugins and feeds, accessed October 2026
  6. 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.

Talk to FXSUPPORT

Not sure if you need a plugin, an API tool or Automations?

Describe the rule you want and your MT4 or MT5 set-up. We work with brokerages and companies only, and we will tell you which route fits before any code is written.

We work with brokerages, prop firms and companies setting up a brokerage. We do not provide support to individual traders; if you trade with a broker, please contact your broker directly.

TelegramEmail
WhatsApp