MQL Lock – EA Licensing and Account Lock for MT4 & MT5

MQL Lock is 4x Engineer’s licensing service for MetaTrader 4 and MetaTrader 5 Expert Advisors. EA sellers add their clients’ MT4/MT5 account numbers in a web panel, and the EA runs only on those accounts. On any other account the EA shows “You are not allowed.” and removes itself from the chart.

  • MetaTrader 4 and MetaTrader 5
  • Up to 50 accounts and 5 EAs
  • Start and end date per account

Who it is for

Who uses the MQL Lock EA license system

MQL Lock is for people who sell or distribute their own Expert Advisor and want to control which client accounts it runs on.

  • EA sellers

    Sell your own MT4/MT5 EA and let it run only on the accounts of the clients you add in the panel.

  • Signal providers

    Give your clients an EA and decide which of their accounts it runs on, from a start date to an end date.

  • Developers distributing EAs to clients

    Deliver the EA file to a client and still control the accounts it runs on, without sending a new build for every change.

How it works

How to lock an EA to an account number with MQL Lock

Four steps, all done in the 4x Engineer user panel.

  1. Upload your EA in the user panel

    Upload your EA source file (MQL4 or MQL5). The website adds the MQL Lock locking code to it and gives the file back.

  2. Add your clients’ account numbers

    Add each client’s MT4/MT5 account number with a start date and an end date, and choose which of your EAs may run on it.

  3. Distribute the EA

    Compile the returned file and send the EA to your clients. They enable “Allow DLL imports” in MetaTrader; no WebRequest URL is needed.

  4. Monitor and control from the panel

    See each client account’s name, balance, profits and currency, change its dates, or remove it to stop the EA at its next check.

Features

EA licensing for MT4/MT5: MQL Lock features

Every MQL Lock plan includes all of these features.

  • Lock EA to account number

    The EA runs only on the MT4/MT5 account numbers you add in the panel.

  • Up to 50 accounts and 5 EAs

    Manage up to 50 MT4/MT5 accounts in total, across all your EAs, and up to 5 EAs.

  • Start and expiry date for EA licenses

    Set a start date and an end date for each account. Before the start date and after the end date the EA does not run on that account.

  • Remove an account to stop the EA

    Remove an account from the panel and the EA stops on it at its next check. The locking code checks every 5 minutes.

  • Protect your EA from unauthorized sharing

    On any account that is not in your panel, the EA shows “You are not allowed.” and removes itself from the chart.

  • Live account dashboard

    When a client attaches the EA to a chart, the EA license management panel shows that account’s name, balance, today’s, weekly and monthly profit, and account currency.

  • Choose which EAs run on each account

    For every client account, pick which of your EAs may run on it.

  • White label: no WebRequest URL

    The server address is built into the locking code through a DLL, so your clients add no URL to MetaTrader’s WebRequest list. The EA needs “Allow DLL imports” enabled.

  • MT4 and MT5 support

    Works with Expert Advisors for MetaTrader 4 and MetaTrader 5: upload the MQL4 or MQL5 source file.

Comparison

MQL Lock vs hardcoding account numbers inside the EA

Some sellers write their clients’ account numbers directly into the EA code. This is how that compares with managing the accounts in MQL Lock.

MQL Lock compared with hardcoding account numbers inside the EA
Task MQL Lock Hardcoding account numbers inside the EA
Add or remove a client Add or remove the account number in the panel Edit the code, recompile and resend the file
Expiry dates A start date and an end date per account, changed in the panel Written into the code; every change needs a new build and a new file
Stopping a client Remove the account; the EA stops at its next check (every 5 minutes) Not possible for a file the client already has
Visibility of client accounts Account name, balance, today’s, weekly and monthly profit, and currency in the panel None

Plans & pricing

MQL Lock plans and pricing

Plans for 1, 3, 6 and 12 months. Every plan includes the same features; only the duration differs. Prices in US dollars ($).

  • 1 month

    $20 for 1 month

    Buy now the 1 month plan
    • Lock your EA to your clients' MT4/MT5 account numbers
    • Up to 50 MT4/MT5 accounts in total
    • Up to 5 EAs
    • Start and end date for every account
    • Choose which EAs run on each account
    • Live account dashboard in your panel
    • White label: no WebRequest URL for your clients
    • MetaTrader 4 and MetaTrader 5
  • 3 months

    $40 for 3 months

    Buy now the 3 months plan
    • Lock your EA to your clients' MT4/MT5 account numbers
    • Up to 50 MT4/MT5 accounts in total
    • Up to 5 EAs
    • Start and end date for every account
    • Choose which EAs run on each account
    • Live account dashboard in your panel
    • White label: no WebRequest URL for your clients
    • MetaTrader 4 and MetaTrader 5
  • 6 months

    $70 for 6 months

    Buy now the 6 months plan
    • Lock your EA to your clients' MT4/MT5 account numbers
    • Up to 50 MT4/MT5 accounts in total
    • Up to 5 EAs
    • Start and end date for every account
    • Choose which EAs run on each account
    • Live account dashboard in your panel
    • White label: no WebRequest URL for your clients
    • MetaTrader 4 and MetaTrader 5
  • Longest plan

    12 months

    $100 for 12 months

    Buy now the 12 months plan
    • Lock your EA to your clients' MT4/MT5 account numbers
    • Up to 50 MT4/MT5 accounts in total
    • Up to 5 EAs
    • Start and end date for every account
    • Choose which EAs run on each account
    • Live account dashboard in your panel
    • White label: no WebRequest URL for your clients
    • MetaTrader 4 and MetaTrader 5
  • Enterprise Plan

    Custom price For more than 50 accounts, agreed by phone

    Contact us
    • Every MQL Lock feature
    • More MT4/MT5 accounts than the 50 of the timed plans
    • Price agreed with 4x Engineer by phone

FAQ

MQL Lock: frequently asked questions

What is MQL Lock?

MQL Lock is a licensing and account-lock service by 4x Engineer for MetaTrader 4 and MetaTrader 5 Expert Advisors. EA sellers add their clients' MT4/MT5 account numbers in a web panel, and the EA runs only on those accounts.

How do I lock my EA to specific MT4/MT5 account numbers?

Upload your EA source file (MQL4 or MQL5) in the user panel on the 4x Engineer website. The website adds the MQL Lock locking code to it and gives the file back. Compile the EA and distribute it to your clients. Then add your clients' MT4/MT5 account numbers in the panel and choose which of your EAs may run on each account. The EA runs only on those accounts.

What happens if someone runs my EA on an unauthorized account?

On any account that is not in your panel, the EA shows the message "You are not allowed." and removes itself from the chart.

Can I stop a client from using my EA after I have given it to them?

Yes. Remove the client's account from the panel. The locking code checks every 5 minutes, so the EA stops on that account at its next check.

Can I set an expiry date for a client's license?

Yes. Set a start date and an end date for each account. Before the start date and after the end date the EA does not run on that account.

How many accounts and EAs can I manage?

Each seller can manage up to 50 MT4/MT5 accounts in total, across all EAs, and up to 5 EAs. For more accounts, ask about the Enterprise Plan.

Does MQL Lock work with both MT4 and MT5?

Yes. MQL Lock works with Expert Advisors for MetaTrader 4 and MetaTrader 5: upload the MQL4 or MQL5 source file of your EA in the user panel.

What can I see about my clients' accounts in the panel?

When a client attaches the EA to a chart, the panel shows for that account: account name, balance, today's profit, weekly profit, monthly profit and account currency.

What data does a locked EA send to the 4x Engineer server?

A locked EA sends the account number, the EA ID, the account name, the balance, today's profit, weekly profit, monthly profit and the account currency. Sellers should inform their clients that this data is sent.

Does my client need to change any MT4/MT5 settings?

Your clients do not add any URL to MetaTrader's WebRequest list: the server address is built into the locking code through a DLL. The EA needs "Allow DLL imports" enabled in MetaTrader.

What happens when my plan expires?

When your MQL Lock plan expires, the EA stops on all of your client accounts.

Do I need to share my EA source code with 4x Engineer?

Yes. To add the locking code, you upload your EA source file (MQL4 or MQL5) in the user panel. The website adds the MQL Lock locking code to it and gives the file back, and you compile and distribute the EA yourself.

Start licensing your EA with MQL Lock

Choose a plan, or contact 4x Engineer for the Enterprise Plan and any question about MQL Lock.