TradeStats

MetaTrader

Connect MT5 with the TradeStats EA: Step-by-Step Live Setup

Published Updated 6 min readBy the TradeStats team

Install the read-only TradeStats Monitor EA in MetaTrader 5: allow WebRequest, enable Algo Trading, paste your token and see closed trades within seconds.

Key takeaways

  • MT5 must allow WebRequest for https://fxtradestats.com, or the EA is blocked with error 4014.
  • Turn on Algo Trading as part of the standard EA setup; TradeStats Monitor still never opens, changes or closes trades.
  • One chart per MT5 terminal and account is enough; closed trades reach TradeStats within seconds while MT5 stays online.

To connect MetaTrader 5 with the TradeStats EA, download TradeStats Monitor, allow WebRequest for https://fxtradestats.com, enable Algo Trading, create a connection token on the Connect page, and attach the EA to one chart with that token. Closed trades then reach TradeStats within seconds while MT5 stays online.

What the TradeStats EA does

TradeStats Monitor is a read-only Expert Advisor. It sends a heartbeat every 2 minutes, pushes a snapshot shortly after each deal (a fill, a close, or a balance or credit change), and sends a full snapshot every hour. It never places, modifies or closes orders, and TradeStats never receives your broker password.

Compared with Hosted Sync, which signs in with an investor password and syncs on a schedule, the EA gives near real-time stats. The trade-off is that MT5 must be running for the EA to report.

Before you start

  • MT5 desktop only: Windows, or a Mac through the official MT5 app. The EA does not run in MT4 or on the mobile apps; use Hosted Sync for those.
  • Keep MT5 running: stats update only while the terminal is online. A Windows VPS is recommended if you want 24/7 stats.
  • If the Live EA option is not shown on your Connect page yet, it is not enabled for your account; use Hosted Sync in the meantime.

1. Download and install the EA

  1. On the Connect page, choose Live EA and download TradeStatsMonitor.ex5.
  2. In MT5, open File → Open Data Folder, then go to MQL5 → Experts and paste the file there.
  3. Back in MT5, right-click Expert Advisors in the Navigator and choose Refresh. TradeStatsMonitor now appears in the list.

2. Allow WebRequest for TradeStats

MT5 only lets an EA contact addresses you approve. Open Tools → Options → Expert Advisors, tick Allow WebRequest for listed URL, and add this address exactly, with no trailing slash or path:

https://fxtradestats.com

Without this entry, MT5 blocks every request from the EA with error 4014.

3. Enable Algo Trading

The Algo Trading button in the MT5 toolbar must be green. In the same Expert Advisors tab of Options, also tick Allow algorithmic trading. Enabling it does not let TradeStats trade: TradeStats Monitor only reads data and never opens, changes or closes orders.

4. Create your connection token

On the Connect page, give the MT5 account a name you will recognise and select Create installation token. Copy the token or download the setup note. The token is shown only in that page session and TradeStats stores only a hash of it, so keep it private. If you lose it before the first heartbeat, revoke the pending install in Health and create a new one.

5. Attach the EA to a chart

  1. Drag TradeStatsMonitor from the Navigator onto any one chart. One chart per MT5 terminal and account is enough; the symbol and timeframe do not matter.
  2. In the Inputs tab, paste your token into InstallationToken.
  3. In the Common tab, tick Allow Algo Trading, then select OK.

A smiley or hat icon in the top-right corner of the chart confirms that the EA is running.

6. Wait for the first data

Keep the Connect page open. It listens for the EA and moves you to your dashboard as soon as the first snapshot arrives, usually within a minute of attaching the EA. Older history keeps importing in the background.

Troubleshooting

  • WebRequest blocked (error 4014): add https://fxtradestats.com exactly as in step 2, then attach the EA again.
  • Algo Trading off: make the toolbar button green and tick Allow Algo Trading in the EA's Common tab (steps 3 and 5).
  • Token rejected: copy the token again with no extra spaces, or create a new one.
  • Nothing after 5 minutes: open the MT5 Toolbox (Ctrl+T) and read the Experts and Journal tabs for TradeStatsMonitor messages.

Frequently asked questions

Can the TradeStats EA place or close trades?

No. TradeStats Monitor contains no order, position or account mutation calls. It only reads account data and sends it to TradeStats.

How fast does the EA update my stats?

The EA sends a heartbeat every 2 minutes and pushes a snapshot within seconds of every deal, such as a closed trade or a balance change. It also sends a full snapshot every hour. Updates only happen while MT5 is running and online.

Does the EA work with MT4 or the MT5 mobile app?

No. The EA runs only in MetaTrader 5 desktop on Windows, or on a Mac through the official MT5 app. For MT4 accounts, use Hosted Sync with a read-only investor password instead.