Turn confirmed sales into customer and license records
Automate the order workflow so a confirmed purchase creates the records and delivery steps your business expects.
For independently distributed MetaTrader products
Integrate CML into your MT5 EA, apply supported account and broker-server rules, and connect licenses to your customer and order workflow. Add a storefront and activation portal using starter projects you can adapt to your business.
One product, end to end
Automate the order workflow so a confirmed purchase creates the records and delivery steps your business expects.
Manage releases in CML and make approved versions available automatically to customers who are entitled to receive them.
Give verified customers access to eligible downloads and permitted activation actions without exposing the developer workspace.
Account rules and configuration
Match the account identifier supplied by the integrated EA against a license rule.
Evaluate the reported server value according to the documented host rule.
Read defined values in product code. CML does not arbitrarily change every EA input or an existing EX5.
Implement the documented cache, retry, and failure response intentionally. Do not place a network request on every tick.
Build and test the EA integration
Extend the workflow
Connect a merchant-owned storefront to CML catalog, customer, order, payment-record, and license operations. The merchant connects checkout and validates provider webhooks.
Adapt a verified customer portal for eligible license and activation actions. Server-side authorization—not a client filter—controls access.
Is this the right setup for your product?
The MT4 and MT5 SDKs provide the standard CML integration paths. Indicators require a different design because their WebRequest capabilities differ from EAs.
This page applies to EA editions distributed directly by you. An edition distributed through MQL5 Market must follow the Market rules and must not add external licensing controls or account- and server-dependent restrictions.
| Your product | Recommended path | Why |
|---|---|---|
| MT5 Expert Advisor | Use the MT5 SDK | Integrate the supported SDK into the EA and test the exact compiled build you plan to distribute. |
| MT4 Expert Advisor | Use the MT4 SDK | Integrate the supported SDK into the EA and test the exact compiled build you plan to distribute. |
| MT5 indicator | Use a different design | Indicators cannot call MQL5 WebRequest directly, so the EA integration path does not apply as-is. |
* Your EA can run in Strategy Tester, but CML license verification does not run there because MetaTrader disables WebRequest during testing.
Technical references: How MQL5 WebRequest works and MQL5 Market rules.
Create a developer workspace and keep the MQL5 quickstart as your next destination after verification.