MT5 Setup Guide (Webhook Trading)

Use this checklist when you want to execute TradingView webhook alerts on MetaTrader 5 (MT5) with our Expert Advisor (EA) running on your own MT5 terminal. It includes the exact WebRequest URL to whitelist and the Account ID for the EA inputs.

Don't want to keep MT5 running? Add a MetaTrader Direct route instead: no EA and no terminal, we hold the MT5 session and place the orders for you.

Tip: Click “Print / Save PDF”

Quick Details (copy/paste)

WebRequest URL
EA Input: Account ID
TradingView Webhook URL
If you want a PDF: click Print / Save PDF and choose Save as PDF.

1) Add an MT5 route (in the portal)

  1. Dashboard → Automations → Webhooks & routes (click New webhook if you don't have one yet)
  2. On your webhook click + Add route and choose MetaTrader (EA on your terminal)
  3. Enter your MT5 account number and save
  4. Copy the webhook URL (Copy URL): this is what you paste into your TradingView alert

2) Download & install the EA

  1. Download the EA: TradingViewBridgeEA_Optimized.ex5 (button above, or Download EA under your webhook)
  2. In MT5: File → Open Data Folder → MQL5 → Experts, copy the file there, then right-click Expert Advisors in the Navigator and choose Refresh
  3. Drag the EA onto any one chart (one chart per account is enough)
  4. EA Inputs: set AccountID to (or leave it at 0 to use the logged-in account)

3) Enable Algo Trading + WebRequest (MT5)

  1. MT5 toolbar: turn Algo Trading ON
  2. Tools → Options → Expert Advisors
  3. Enable: Allow algorithmic trading
  4. Enable: Allow WebRequest for listed URL and add:

4) Verify the connection

  1. Keep MT5 running with the EA attached (a VPS keeps it running 24/7)
  2. In the portal: Automations → Webhooks & routes, click Test on your MT5 route. It shows connected when the EA is polling.
  3. If it isn't connected, check the MT5 Experts tab: the usual causes are Algo Trading off, the WebRequest URL missing, or a different account number
  4. Send a small test alert, e.g. Buy XAUUSD Q=0.01 R=MT5, and check the result under Alert log