MT4 Integration
Setup guide — 5 minutes
Install two files, tick one checkbox in MT4, drag the EA onto a chart. No Node.js. No local server. No command line. It just works.
MT4 ChartBUY / SELL click
→
EA + DLLSends trade intent
→
SupabaseCloud relay
→
EdgeGuardChecklist opens
→
PASS / BLOCKEA executes or cancels
0
What's in the package
EdgeGuardHTTP.dll
Pre-compiled Windows DLL. Gives the EA direct HTTPS access to Supabase — bypasses MT4's WebRequest restrictions entirely. Works on every broker build.
EdgeGuardBridge_DLL.ex4
Compiled MT4 Expert Advisor. Adds BUY / SELL buttons to your chart. Sends trade intents to Supabase and waits for the checklist result before placing the order.
1
Download the package
⬇ Download MT4 Plugin
Extract the ZIP. You should have two files: EdgeGuardHTTP.dll and EdgeGuardBridge_DLL.ex4.
2
Copy the DLL into MT4's Libraries folder
Inside MT4, go to File → Open Data Folder. A Windows Explorer window opens.
Navigate to MQL4 → Libraries and paste EdgeGuardHTTP.dll there.
Navigate to MQL4 → Libraries and paste EdgeGuardHTTP.dll there.
…\MetaTrader 4\MQL4\Libraries\EdgeGuardHTTP.dll
The file is already named correctly — no renaming needed.
3
Copy the EA into MT4's Experts folder
Still in the Data Folder window, navigate to MQL4 → Experts and paste EdgeGuardBridge_DLL.ex4 there.
…\MetaTrader 4\MQL4\Experts\EdgeGuardBridge_DLL.ex4
Then in MT4's Navigator panel, right-click Expert Advisors → Refresh. EdgeGuardBridge_DLL should appear in the list.
Can't find the Navigator? Press Ctrl+N or go to View → Navigator.
4
Allow DLL imports in MT4
Go to Tools → Options → Expert Advisors tab.
Tick: ☑ Allow DLL imports
Also confirm the AutoTrading button in the MT4 toolbar is green. Without it, no EA can place orders.
Tick: ☑ Allow DLL imports
Also confirm the AutoTrading button in the MT4 toolbar is green. Without it, no EA can place orders.
Most commonly missed step. The panel appears on the chart but trades will fail without this.
5
Attach the EA to a chart
In the Navigator, double-click EdgeGuardBridge_DLL (or drag it onto a chart).
The settings dialog opens — all inputs are correct by default, just click OK.
A panel appears on the right side of the chart with BUY / SELL buttons and the status:
The settings dialog opens — all inputs are correct by default, just click OK.
A panel appears on the right side of the chart with BUY / SELL buttons and the status:
EG: Cloud — ready ← this means it's installed correctly.
6
Sign up and link your MT4 account
Open edgeguard.trading and create a free account.
Go to Settings → MT4 Bridge. Enter your MT4 account number — it's in the top-left of your MT4 terminal. Click Save.
The MT4 badge in EdgeGuard turns green. You're live.
Go to Settings → MT4 Bridge. Enter your MT4 account number — it's in the top-left of your MT4 terminal. Click Save.
The MT4 badge in EdgeGuard turns green. You're live.
The account number routes your trade intents to your checklist only — no one else's.
You're set up when:
- EA panel shows "EG: Cloud — ready" on the chart
- MT4 badge in EdgeGuard is green
- Clicking BUY opens the checklist in your browser
- Completing the checklist places the order with the correct lot size and stop loss
Troubleshooting
Clicking BUY does nothing / "OrderSend failed. Error 4109"
AutoTrading is off. Click the AutoTrading button in the MT4 toolbar — it must be green. Also check Tools → Options → Expert Advisors → "Allow DLL imports" is ticked.
"Supabase insert failed. HTTP -1" alert
The DLL is not loading. Confirm EdgeGuardHTTP.dll is in MQL4\Libraries\ (not Experts), "Allow DLL imports" is ticked, and MT4 was restarted after copying the DLL.
MT4 badge in EdgeGuard stays grey
Go to Settings → MT4 Bridge. Confirm your account number is saved. The badge reconnects automatically when you save.
BUY is clicked but checklist doesn't open in EdgeGuard
The MT4 account number in Settings must match the number shown in your MT4 terminal exactly. A mismatch causes the Realtime filter to miss the intent.
EA not appearing in Navigator after copying
Right-click Expert Advisors → Refresh. Confirm the file is in MQL4\Experts\ and the extension is .ex4.