Skip to main content
|View as Markdown|

Master Guide: Connecting Your MT4 & MT5 Terminals

Connecting your MetaTrader terminals to TM Pro takes less than 60 seconds. Better yet, TM Pro uses a 100% Zero-DLL architecture—meaning you never have to enable risky "Allow DLL imports" in MetaTrader.


Why "Zero-DLL" Matters for Prop-Firm & Live Traders​

Most third-party trade managers force you to check "Allow DLL imports", which loads an external .dll file with unrestricted access to your Windows PC. Many prop firms flag or prohibit unknown DLLs, and every Windows or MetaTrader update risks breaking them.

TM Pro requires ZERO DLLs:

  • It communicates through MetaTrader's native, sandboxed FileOpen pipe (\\.\pipe\MQL5.Pipe.Server).
  • In your EA settings, Allow DLL imports stays UNCHECKED (OFF).
  • Only standard Allow Algo Trading (MT5) or Allow live trading (MT4) is enabled.

Method A — 1-Click Automatic Install (Standard MT4/MT5 Terminals)​

If you installed MetaTrader normally on Windows, TM Pro can find every terminal on your PC and install the EA for you automatically:

  1. Launch the TM Pro desktop app.
  2. Click the Settings tab (far right of the navigation bar).
  3. Scroll to the Install EA to MetaTrader card and click Scan & install.
  4. TM Pro scans your Windows AppData\Roaming\MetaQuotes\Terminal directories, detects every installed MT4 and MT5 data folder, and copies the compiled TMPro Expert Advisor into each one.
  5. Switch to MetaTrader, right-click Expert Advisors inside the Navigator panel (Ctrl+N), and click Refresh. You will see TMPro ready under Expert Advisors -> TMPro.

Method B — Connecting Portable & Multi-Instance Prop-Firm Terminals​

Many professional traders run 3 to 10 separate portable MetaTrader terminals side by side (for example, D:\MT5-FTMO-1, D:\MT5-FundedNext, D:\MT5-Pepperstone-Live). TM Pro supports an unlimited number of simultaneous terminals:

  1. In any MetaTrader terminal, click File → Open Data Folder.
  2. Open MQL5 → Experts (or MQL4 → Experts on MT4).
  3. Create a subfolder named TMPro and copy TMPro.ex5 (for MT5) or TMPro.ex4 (for MT4) into that folder:
    • MT5 path: <Your-Terminal-Data-Folder>\MQL5\Experts\TMPro\TMPro.ex5
    • MT4 path: <Your-Terminal-Data-Folder>\MQL4\Experts\TMPro\TMPro.ex4
  4. In MetaTrader's Navigator panel (Ctrl+N), right-click Expert Advisors and click Refresh.
Need to Compile from Source?

If you only copied the .mq5 / .mq4 source files and Include\TMPro\*.mqh headers, double-click TMPro.mq5 in Navigator to open MetaEditor and press F7 (Compile)—it compiles with 0 errors, 0 warnings.


Step-by-Step: Attaching TMPro to Your Chart​

Once TMPro appears in your MetaTrader Navigator panel:

1. Turn On the Global "Algo Trading" Button in MetaTrader​

Look at the top toolbar of MetaTrader:

  • In MT5: Make sure the Algo Trading button has a green play icon.
  • In MT4: Make sure the AutoTrading button is green.

2. Drag TMPro Onto Any Chart​

Drag TMPro from Navigator -> Expert Advisors -> TMPro onto the chart you want to trade (for example, EURUSD M15 or XAUUSD M5).

3. Verify the Checkboxes in the Popup Dialog​

In the Common tab of the Expert Advisor popup window:

  • CHECK (ON): Allow Algo Trading (MT5) / Allow live trading (MT4).
  • UNCHECK (OFF): Allow DLL imports (leave this unchecked!).

In the Inputs tab, the defaults work out of the box:

EA Input ParameterDefault ValueWhat It Does
InpMagic20260400Magic number tag stamped on orders placed by TM Pro.
InpSlippagePoints20Maximum allowed slippage in points on market orders.
InpSyncIntervalMs250How often (in milliseconds) the EA streams live prices and positions to TM Pro (4 times per second).
InpPipeName\\.\pipe\MQL5.Pipe.ServerLocal Windows Named Pipe address (do not change unless instructed).

Click OK.

4. Confirm the Live Connection (Takes Under 1 Second)​

Immediately after clicking OK, check two places:

  1. On your MetaTrader chart (top-left corner): The chart comment will read:
    TM Pro: connected (session mt5-62145326-133391509839784522)
  2. In the TM Pro desktop app (top header bar):
    • The status dot on the top-left turns solid green.
    • The terminal dropdown shows EURUSD M15 · MT5 · 62145326 alongside a Demo or Live badge.
    • Your live Balance, Equity, Floating P&L, Margin Level, and live Bid / Spread / Ask begin updating 4 times per second.

Connecting Multiple Charts or Multiple Terminals at Once​

You are not limited to one chart or one broker:

  • Multiple symbols in one terminal: Open EURUSD, XAUUSD, and US100 charts in the same MetaTrader window and attach TMPro to each chart. Use the top dropdown selector in TM Pro to switch between symbols instantly.
  • Multiple accounts across different brokers: Open 2, 5, or 10 different MT4/MT5 terminals (e.g., FTMO, FundedNext, IC Markets, Pepperstone) and attach TMPro to a chart in each terminal.
    • Switch between individual accounts using the top dropdown selector, OR
    • Click the Fund tab to view your combined multi-account equity and copy trades across all terminals simultaneously!

Practicing Without MetaTrader Open (Built-In Demo Broker)​

Want to test TM Pro on a laptop without MetaTrader installed, or practice when forex markets are closed over the weekend?

  1. Open TM Pro → Settings tab.
  2. Check Built-in demo broker (under the Practice card).
  3. Two simulated broker charts (EURUSD M15 on MT5 #100001 and XAUUSD M5 on MT5 #100002) connect immediately over the real pipe so you can test the Order Ticket, AI Quant Radar, Protection Rules, and Fund Manager risk-free.