Black Friday50% off TDLab Pro, annual and monthly. Until Sunday 6 December.50% off until 6 Dec

See the codes
All guides
Accounts & data

Connecting MetaTrader 4 for FTP auto-sync

Updated Nov 2, 20264 min read

MetaTrader 4 can publish your account statement over FTP, and TDLab can read it automatically. Once set up, your closed trades import on a schedule without any manual export.

Using MetaTrader 5?

MetaTrader 5 removed FTP report publishing in build 6060. MT5 accounts sync with the read-only TDLab Sync EA instead: see Connecting MetaTrader 5 with TDLab Sync.

Requirements

FTP sync has to be enabled on the TDLab instance. If it isn’t configured, the option shows a note instead of the enable button. Your MetaTrader terminal also has to stay open and connected to keep publishing.

Enable FTP sync in TDLab

  1. Select your MT4 account.
  2. Open the Auto-sync tab, enter your account number / login and pick the report timezone.
  3. Click Enable FTP sync. TDLab generates the FTP host, username, password and path to use.

Set up publishing in MetaTrader 4

  1. In MetaTrader open Tools → Options → FTP.
  2. Turn on publishing with Enable, select the same account number you entered in TDLab and set the refresh interval (e.g. 5 minutes).
  3. Copy the values from TDLab: FTP host → FTP server, Path → FTP path, Username → Login, Password → Password. Keep Passive mode on; turn it off only if the test fails.
  4. Click Test, then keep the terminal open and logged in to the account.

Report timezone

Report times follow the broker server clock shown in Market Watch. If the offset never changes, pick the matching fixed UTC offset. The most common MetaTrader server runs UTC+2 in winter and UTC+3 in summer: pick Europe/Athens, not Europe/London or America/New_York. Changing the timezone later only affects new imports; delete trades imported with the wrong timezone and they are re-imported from the next published report.

Syncing

Once enabled, TDLab checks for a new report automatically on a short interval (roughly every 15 minutes) and imports only new, non-duplicate trades. You can also click Sync now at any time, or Disconnect to stop.

Report language

The report uses the terminal language. MT4 reports must be in English.

Put the evidence to work.

Connect your real trades with behavior, rules and historical market context. Start free for 14 days.