MT4 & MT5 EA Licensing Features

Everything you need to protect your MetaTrader Expert Advisors and indicators from unauthorized use and sell them as licenses: serial keys, activation limits, expiry dates, client management and Stripe payments.

  • Home
  • MT4 & MT5 EA Licensing Features

An EA licensing system built for MetaTrader sellers

If you sell or share an Expert Advisor (EA) or indicator, a leaked .ex4 or .ex5 file can be copied to any number of accounts. License My Bot locks each copy of your EA to a license you control. Your client gets a serial key; the EA checks it every time it starts and while it runs, and stops working when the license is invalid, over its activation limit or expired.

You manage everything from one dashboard: create licenses, see users and activations, change expiry dates, and connect Stripe to get paid. It works the same way for MT4 and MT5 EAs and indicators.

Licensing features

Secure Licensing icon

Secure Licensing

Safeguard your intellectual property by creating custom licenses to control access and usage of your EAs and indicators.

Flexible Activation icon

Flexible Activation

Define the number of activations allowed per license, ensuring that your products are used only by authorized users

Time-Limited Usage icon

Time-Limited Usage

Set expiration dates for licenses, granting users access to your products for a specified duration and preventing unauthorized long-term usage

Easy Integration icon

Easy Integration

Seamlessly integrate our licensing system with Metatrader, streamlining the distribution process and minimizing setup time

User Management icon

User Management

Efficiently manage and track users, licenses, and activations through a user-friendly interface, giving you full control over your product distribution

Payment Integration icon

Payment Integration

Add payment method for your trading strategies and custom indicators by integrating our licensing system with Stripe, allowing you to securely receive payments from your clients directly through Stripe's trusted payment gateway

How MT4 and MT5 EA licensing works

  1. 1

    Create a product and get its Product Code

    Add your Expert Advisor or indicator in the License My Bot dashboard. It gets a unique Product Code that identifies it.

  2. 2

    Add the license code to your MQL4 or MQL5 source

    Copy the MetatraderValidation library into the MQL4/MQL5 Libraries folder and paste the short License My Bot snippet into OnInit, OnTick and OnDeinit, with your Product Code.

  3. 3

    Compile and send the .ex4 or .ex5 file

    Compile in MetaEditor and give your client the compiled EA or indicator together with the MetatraderValidation library. Your source code never leaves your computer.

  4. 4

    Issue a serial key to each client

    Create a license for each client with the activation limit and expiry date you want. The client enters the serial key in the EA's inputs when attaching it to a chart.

  5. 5

    The EA validates itself

    On start-up and while it runs, the EA checks the serial key against your Product Code. A valid license shows "Active"; an invalid or expired one shows "Inactive. Contact Provider to Activate" and the EA stops trading.

Full step-by-step guides with screenshots are in the License My Bot documentation.

What you can license

License My Bot works with MetaTrader 4 and MetaTrader 5, for both Expert Advisors (trading robots) and custom indicators. Each has its own integration guide:

Who it is for

  • EA developers who sell trading robots and want to stop file sharing and piracy.
  • Indicator sellers who offer monthly or yearly access and need licenses to expire automatically.
  • Trading educators and communities who give an EA to students or members and need to control who can use it.

Not sure where to start? Read common mistakes in Expert Advisor licensing or what software licensing is.

How's this gonna work

License My Bot introduction video

EA licensing FAQ

What is License My Bot?
License My Bot is a licensing system for MetaTrader 4 and MetaTrader 5 Expert Advisors (EAs) and indicators. You add a short license check to your EA, issue a serial key to each client, and control who can use it, on how many activations and until when, from a web dashboard.
Does it work with both MT4 and MT5?
Yes. The documentation has step-by-step guides for MT4 Expert Advisors, MT4 indicators, MT5 Expert Advisors and MT5 indicators.
How does it protect my EA from piracy and unauthorized sharing?
Your client only receives the compiled .ex4 or .ex5 file, and it will only run with a valid serial key for your Product Code. You set how many activations each license allows and when it expires, so a copied file without a valid license shows "Inactive. Contact Provider to Activate" and stops working.
How do I add licensing to my Expert Advisor?
Copy the MetatraderValidation library into your MQL4 or MQL5 Libraries folder, paste the License My Bot code above and inside OnInit, OnTick and OnDeinit, replace the sample Product Code with yours, and compile. The full guide with screenshots is on docs.licensemybot.com.
Can I sell time-limited or subscription licenses?
Yes. Each license can have an expiry date, so you can sell monthly, yearly or trial access. You can also connect Stripe to receive payments from your clients.
Does it work on a Mac or on MetaTrader's VPS?
Yes. The docs include special instructions for Mac and MetaTrader VPS: add https://api.licensemybot.com/ to the allowed WebRequest URLs in Tools > Options > Expert Advisors.

Start licensing your EA today

Every plan comes with a free trial, email support and free updates. Compare the plans to find the right number of licenses for you.