BotEdge
← All exchanges

Connect MetaTrader 5

MetaTrader 5 is included in the Pro plan.

1. Install the connector EA

There is no API key: the connector EA runs in your MetaTrader 5 terminal, receives your alerts and places the orders with your broker. It works with any broker or prop firm that offers MetaTrader 5.

  1. Download the EA: BotEdge-Connector-MT5.ex5.
  2. In MetaTrader, open File → Open Data Folder and copy the file into MQL5/Experts.
  3. In the Navigator, right-click Expert Advisors and choose Refresh: the BotEdge Connector appears in the list.
  4. In MetaTrader, open Tools → Options → Expert Advisors, tick Allow WebRequest for listed URL and add https://hooks.botedge.net. Turn on Algo Trading in the toolbar.

Prefer to read or compile it yourself? Download the source code.

2. Connect it to BotEdge

  1. In the dashboard, click Add connection, choose MetaTrader 5 and save.
  2. Copy the pointer from the connection card.
  3. Drag the EA onto any chart, open its Inputs tab and paste the pointer. Keep the chart open.

3. Set up the alert

  • Chart and ticker: A chart of the same symbol your broker uses, so that {{ticker}} matches the MetaTrader symbol. If your broker adds a suffix (EURUSD.m), put the full name in the message instead of {{ticker}}.
  • Quantity: Forex pairs in units: 100000 is 1 lot and 1000 is 0.01 lot. Other symbols (indices, metals, crypto CFDs) in lots.

Then follow the TradingView guide to create the alert.

Good to know

  • A BotEdge panel at the top of the chart shows the EA's state: green when it is connected, red when the pointer is missing.
  • The terminal must stay open and connected for orders to execute: use a VPS for round-the-clock trading.
  • Positions the EA opens carry the magic number from its inputs (2611 by default), and closing alerts close only those positions: trades you open by hand stay open. This needs connector version 2.10 or later; download it again if you installed it before 18 November 2026.

Order rejected?

The error email explains what MetaTrader 5 answered. The error guide covers the most common causes.