MetaTrader®, MT4® and MT5® are trademarks of MetaQuotes Ltd. This is an independent service and is not affiliated with, authorized by, or endorsed by MetaQuotes. Trustpilot4.0
EN
EA HOSTING · MT5

Run your own Expert Advisor in the cloud — attached over the API.

Upload a compiled .ex5 (MT5 accounts), attach it to any chart with the inputs you choose, and let it trade 24/7 on a hosted MetaTrader environment. No VPS to rent, no MetaTrader window to babysit — and it runs fully sandboxed.

POST /EaUpload · attach to a chart · DLL imports OFF
Any compiled .ex5 (MT5) ~750 KB upload limit Runs on a hosted MetaTrader environment Isolated per account
// what it is

Bring your robot. We host MetaTrader for you.

The Custom Expert Advisor API lets you upload a compiled MetaTrader EA and attach it to a chart on a hosted MT5 environment programmatically — no remote desktop, no manual clicking. You upload the compiled .ex5 file, call one endpoint to attach it to a symbol and timeframe with your chosen inputs, and it starts trading on the next reconnect. Your EA runs the same way a desktop MetaTrader would — except it lives in an isolated container with DLL imports disabled, so your strategy can trade but nothing it does can reach the host.

// three steps

From .ex5 file to live trades in three calls.

1

Upload

POST /EaUpload with your compiled EA as base64. Files that are not compiled EAs (executables, archives) are rejected; yours is stored privately for your customer account.

2

Attach

The attach call (Docs › Expert Advisors) picks the symbol, timeframe and input parameters, and stages the EA onto a chart.

3

Go live

A /Reconnect starts MetaTrader with your EA attached. Watch /Logs/Experts for its start-up line.

upload-and-attach.sh
# 1 · upload the compiled EA (returns an eaId)
curl -X POST https://api.metatraderapi.net/EaUpload -H "x-api-key: mt5api_…" \
  -H "content-type: application/json" \
  -d '{ "fileName":"MyRobot.ex5", "fileBase64":"RVg1AnE…" }'
# → { "eaId":"3c9e1a52-…", "fileName":"MyRobot.ex5", "sizeBytes":37024, "sha256":"…" }

# 2 · attach it to EURUSD H1 with your inputs: a GET with
#     id=<account id>&eaId=3c9e1a52-…&symbol=EURUSD&timeframe=H1&params={"Risk":1.0}
#     (exact path: Docs › Expert Advisors)
# → { "staged":true, "activatesOn":"next-reconnect" }
# 3 · start it
curl "https://api.metatraderapi.net/Reconnect?id=<account id>" -H "x-api-key: mt5api_…"
// safety by design

Customer code runs — but it stays in its box.

Sandboxed, every time.

Running arbitrary trading code safely is the hard part. Every account gets its own locked-down MetaTrader environment, and uploads are checked before they ever run.

  • DLL imports disabled — the EA can't call arbitrary Win32.
  • One container per account — isolated, no shared state.
  • Upload checks — compiled .ex5 files (MT5) run; executables and archives are rejected; ~750 KB file cap.
  • Stored privately — your strategy file is kept per customer, readable only by the service.
// who it's for

For everyone who has a robot but no place to run it.

EA developers

Deploy and demo your product to clients over an API instead of shipping a VPS setup guide.

→ MQL5 authors & vendors

Prop & fund tools

Run each trader's approved EA on its own isolated MetaTrader environment, provisioned by your platform.

→ Prop firms & SaaS

Always-on strategies

Your strategy keeps trading through the night on a hosted MetaTrader environment — no office PC left running.

→ Trading firms & algo desks
// questions

Frequently asked

Can I run my own Expert Advisor through the API?+
Yes, on MT5 accounts. Upload your compiled .ex5 with POST /EaUpload, then attach it to a chart with the attach call (see Docs › Expert Advisors). It runs on a hosted MetaTrader environment logged into your account.
Do I need my own VPS or a MetaTrader install?+
No. MetaTrader is hosted for you. There's no remote desktop, no VPS to rent and no MetaTrader window to keep open — the EA runs server-side and you control it over the API.
Is it safe to run custom code? What are the limits?+
Each account runs in its own isolated container with DLL imports disabled, so an EA can place trades but cannot reach the host or other accounts. Uploads must be compiled .ex5 files for MT5 (executables and archives are rejected), are capped at about 750 KB per file, and are stored privately per customer.
Can I set the EA's input parameters?+
Yes. Pass them as JSON when you attach the EA, and read an EA's inputs back with /GetEaParams. Inputs are written to a .set preset MetaTrader loads on start-up.
When does the EA actually start trading?+
On the next MetaTrader launch. After attaching, a /Reconnect starts MetaTrader with your EA loaded; you'll see its initialisation line in /Logs/Experts and it begins running on the chart.
Create account

Upload your EA. We'll run it.

Connect an account, upload your compiled Expert Advisor, and attach it to a chart in three API calls.