Bring your robot. We host the terminal.
The Custom Expert Advisor API lets you upload a compiled MetaTrader EA and attach it to a chart on a hosted MT4/MT5 terminal programmatically — no remote desktop, no manual clicking. You POST the compiled .ex5/.ex4 file, call one endpoint to attach it to a symbol and timeframe with your chosen inputs, and it starts trading on the next reconnect. The terminal runs your EA 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.
From .ex5 file to live trades in three calls.
Upload
POST /EaUpload with your compiled EA as base64. We validate it's a real EA and store it, encrypted, against your account.
Attach
/OpenTerminalChartWithEa picks the symbol, timeframe and input parameters, and stages the EA onto a chart.
Go live
A /Reconnect starts the terminal with your EA attached. Watch /Logs/Experts for its start-up line.
# 1 · upload the compiled EA (returns an eaId) curl -X POST https://hrx.info/EaUpload -H "x-api-key: sk_live_…" \ -H "content-type: application/json" \ -d '{ "fileName":"MyRobot.ex5", "fileBase64":"RVg1AnE…" }' # → { "eaId":"ea_a1b2…", "sizeBytes":37024 } # 2 · attach it to EURUSD H1 with your inputs curl "https://hrx.info/OpenTerminalChartWithEa?id=<acc>&eaId=ea_a1b2…&symbol=EURUSD&timeframe=H1¶ms={\"Risk\":1.0}" \ -H "x-api-key: sk_live_…" # → { "staged":true, "activatesOn":"next-reconnect" }
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 terminal, 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 validation — only genuine compiled EAs accepted, 4 MB cap.
- Encrypted at rest — your strategy file is stored encrypted.
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.
Prop & fund tools
Run each trader's approved EA on its own isolated terminal, provisioned by your platform.
Always-on traders
Your strategy keeps trading through the night on a hosted terminal — no home PC left running.
Frequently asked
Can I run my own Expert Advisor through the API?+
.ex5 (MT5) or .ex4 (MT4) with POST /EaUpload, then attach it to a chart with /OpenTerminalChartWithEa. It runs on a hosted terminal logged into your account.Do I need my own VPS or a MetaTrader install?+
Is it safe to run custom code? What are the limits?+
Can I set the EA's input parameters?+
/GetEaParams. Inputs are written to a .set preset the terminal loads on start-up.When does the EA actually start trading?+
/Reconnect starts the terminal with your EA loaded; you'll see its initialisation line in /Logs/Experts and it begins running on the chart.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.