How do I sync MetaTrader 4 or 5?
Install the TSB Expert Advisor on one chart, enter your EA token and Server URL, and every closed trade arrives in Journal.

- Open Settings → Connections and choose Set up beside MetaTrader 4 and 5. Download the EA for your terminal.
- Choose Create EA token. Copy the token and the Server URL.
- Place the download in
MQL4/ExpertsorMQL5/Experts. - In MetaTrader, open Tools → Options → Expert Advisors, enable WebRequest and allow the Server URL.
- Attach the EA to one chart, enter your token and Server URL, and keep the terminal running.
- After its first heartbeat, the trading account appears under Trading accounts. Choose its Journal account and Save mapping.
What the status means
| You see | Meaning | What to do |
|---|---|---|
| EA status: Waiting | The EA has not checked in yet. | Attach the EA, allow WebRequest, enter the token. |
| EA status: Connected, Syncing, Synced | Connected: its heartbeat arrived. Synced: its last import went through. | Nothing: closed trades come with its next check. |
| EA status: Error | The EA reported a problem. | Open EA activity details for its note. |
| Last heartbeat | The EA’s last check-in. | If it is old, MetaTrader or the EA is not running. |
| found · received · imported · duplicates | In EA activity details. | Zero found: load more history in MetaTrader, then backfill. Duplicates are normal. |
Older and deleted trades
Request next EA check asks the running EA to look now. For older history, choose a window under Import older closed trades (7 days up to 10 years) and Request backfill. Trades you deleted stay out: recent ones come back from Recently deleted in Journal, older ones with Bring back deleted MetaTrader trades, then a backfill.
Good to know
- Install one EA in each terminal you want to sync; each login and server is its own trading account to map.
- Regenerate token stops the old token in every terminal: update the EA inputs afterwards.
Free and Pro
Sync from MetaTrader 4 and 5 is in Pro and Max. On Free, upload a statement through Import: in MetaTrader 5, the History tab → right-click → Report → HTML. Export again for newer trades.
Still stuck? Email support@traderssecondbrain.com with your account email and what you see. We reply within 1 business day.