Home Installing the EA

Installing the EA

By Thanh
3 articles

Installing the EA on MT5

Connecting MetaTrader 5 to an AI client with MTContext means installing exactly one file: the MTContextBridge.ex5 Expert Advisor. There's no Python, no local server, and no DLL — the EA connects outward to MTContext's cloud over a native WebSocket, so there's nothing to expose on your machine. This guide gets it running in a few minutes. Before you start - An active MTContext account and license key (from your dashboard) - MetaTrader 5 installed and logged in to your broker account - The MTContextBridge.ex5 file, downloaded from your dashboard Step 1 — Download the EA In your MTContext dashboard, download the MT5 Expert Advisor (MTContextBridge.ex5). Step 2 — Put it in the MT5 data folder In MetaTrader 5, open File → Open Data Folder. Navigate into MQL5 → Experts and copy MTContextBridge.ex5 into that folder. Step 3 — Refresh the Navigator Back in MT5, find the Navigator panel (Ctrl+N). Right-click Expert Advisors → Refresh. MTContextBridge now appears in the list. Step 4 — Allow algorithmic trading Go to Tools → Options → Expert Advisors and make sure Allow algorithmic trading is enabled. Also confirm the Algo Trading button in the toolbar is on (green). Step 5 — Attach the EA to a chart Open any chart, then drag MTContextBridge from the Navigator onto it. In the dialog that opens: 1. On the Common tab, make sure Allow Algo Trading is checked. 2. On the Inputs tab, paste your license key into the key field. 3. Click OK. A smiley face in the top-right of the chart means the EA is running. The chart symbol doesn't matter — the EA bridges your whole terminal, not just that chart. Step 6 — Confirm it's connected Within a few seconds the EA should report connected. Check your MTContext dashboard — the terminal should now show as online. Troubleshooting - EA won't attach / no smiley — algorithmic trading is off. Re-check Step 4. - Shows "disconnected" — usually the license key or WebRequest/firewall. See the EA won't connect / shows "disconnected" article. - Terminal not showing online in the dashboard — give it a few seconds, then confirm the key you pasted matches your account. Next steps With the terminal online, connect your AI client: see Connecting Claude Desktop, Connecting Claude Code, or Connecting Cursor. On MT4? Support for MetaTrader 4 is coming soon. Start free at mtcontext.com or see the full setup documentation.

Last updated on Jul 26, 2026

MT4 vs MT5: what's different

MTContext runs on MetaTrader 5 today, and MetaTrader 4 support is coming soon. If you're weighing the two — or you're on MT4 and want to know what to expect — here's the practical picture. The short version: the experience is designed to be nearly identical on both, with one extra setup step planned for MT4. Available today MTContext supports MetaTrader 5 right now. You attach one Expert Advisor, allow algorithmic trading, and connect any MCP client (Claude Desktop, Claude Code, Cursor, and others). If you're on MT5, see Installing the EA on MT5. What will be the same on MT4 When MT4 support lands, using MTContext will feel the same on either platform: the same AI clients, the same kinds of requests (prices, bars, account state, indicators, trades), and the same safety model — trades default to a dry run, and margin and lot size are validated before anything executes. Your broker's rules apply identically either way. How the connection will differ under the hood - MT5 connects to MTContext's cloud over a native WebSocket. Nothing special to configure beyond attaching the EA and allowing algorithmic trading. - MT4 has no native WebSocket, so the planned MT4 bridge uses outbound HTTP long-polling via WebRequest instead. Functionally you won't notice the difference — but it means MT4 will need one extra setup step (adding the MTContext URL to the allowed WebRequest list). Neither approach requires DLLs or Python. Which should I use? If you're on MetaTrader 5, you can start today. If your broker and strategy rely on MetaTrader 4, MTContext isn't live there yet — MT4 support is on the way, so it's worth checking back or starting a free MT5 setup in the meantime. Next steps Ready to install on MT5? Go to Installing the EA on MT5, then connect your AI client with Connecting Claude Desktop. Start free at mtcontext.com — MetaTrader 5 today, MetaTrader 4 coming soon.

Last updated on Jul 26, 2026

EA won't connect / shows "disconnected"

If the MTContext Expert Advisor is on your chart but your dashboard shows the terminal as disconnected — or the EA never went green in the first place — it's almost always one of a handful of things. Work through these in order; they're roughly most-common first. 1. Algorithmic trading is off This is the usual culprit. The EA can't run at all if algo trading is disabled. - Tools → Options → Expert Advisors → Allow algorithmic trading must be enabled. - The Algo Trading button in the toolbar must be on (green). - On the chart's EA dialog, the Common tab's Allow Algo Trading box must be checked. A running EA shows a smiley face in the top-right corner of the chart. A sad face or an "×" means it isn't running — recheck the above. 2. The license key is wrong or missing Open the EA's inputs (right-click the chart → Expert Advisors → Properties → Inputs) and check the key: - It must start with MTMCP- and have no trailing spaces (a stray space from copy-paste is a common cause). - It must be the exact key from your dashboard, not an old or revoked one. A 401-style rejection in the logs means the key is invalid, mistyped, or revoked. 3. The key hasn't been bound yet A brand-new key only becomes usable after a terminal connects with it once. If this is a fresh key, letting the EA connect is the binding step — but if you generated the key and are testing in a client before the EA ever connected, that's the problem. Get the EA connected first. See Activating your license key. 4. Outbound connection is blocked The EA connects outward to MTContext's cloud over a WebSocket — it doesn't open any inbound port, so there's nothing to forward. But an outbound block will still stop it: - A corporate firewall, VPN, or antivirus blocking outbound HTTPS/WebSocket traffic. - A proxy that intercepts TLS. Try the same terminal on a different network (or briefly without the VPN) to isolate this. If it connects elsewhere, the block is on the original network. 5. Check the EA's own logs MetaTrader's Experts and Journal tabs (bottom panel) show what the EA is reporting — connection attempts, auth results, and errors. That's the fastest way to tell a key problem (auth rejected) from a network problem (connection never establishes). Still stuck? If the EA reports connected but your AI client says there's no terminal, that's a different issue — see "No terminal connected" in your AI client. Otherwise, re-run the install from Installing the EA on MT5 to rule out a missing step. Manage your keys and check terminal status at mtcontext.com/dashboard.

Last updated on Jul 25, 2026