Trader’s Second Brain
All help articles

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 it in TSB

Settings, MetaTrader: EA status, last heartbeat and a trading account mapped to its Journal account
  1. Open Settings → Connections and choose Set up beside MetaTrader 4 and 5. Download the EA for your terminal.
  2. Choose Create EA token. Copy the token and the Server URL.
  3. Place the download in MQL4/Experts or MQL5/Experts.
  4. In MetaTrader, open Tools → Options → Expert Advisors, enable WebRequest and allow the Server URL.
  5. Attach the EA to one chart, enter your token and Server URL, and keep the terminal running.
  6. After its first heartbeat, the trading account appears under Trading accounts. Choose its Journal account and Save mapping.

What the status means

You seeMeaningWhat to do
EA status: WaitingThe EA has not checked in yet.Attach the EA, allow WebRequest, enter the token.
EA status: Connected, Syncing, SyncedConnected: its heartbeat arrived. Synced: its last import went through.Nothing: closed trades come with its next check.
EA status: ErrorThe EA reported a problem.Open EA activity details for its note.
Last heartbeatThe EA’s last check-in.If it is old, MetaTrader or the EA is not running.
found · received · imported · duplicatesIn 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.

The trading journal you’ll actually keep.

Free · No card required