← All platforms
MetaTrader 4 logo

Import · EA connector

MetaTrader 4 Trading Journal

Forex

MetaTrader 4

Overview

MetaTrader 4 (MT4) is the most widely used forex trading platform. Sync your closed orders automatically with the read-only EA connector.

MT4 brokers

See the MT4 broker directory and check which brokers are covered by the read-only MetaTrader 4 connector.

See all MT4 brokers

How to import

  1. 1Generate an API key in Configuration → MetaTrader 5 Connector (the key is shared with MT4).
  2. 2Download TradingJournalSync.ex4 and place it in MQL4/Experts.
  3. 3Authorize WebRequest: Tools → Options → Expert Advisors → tick “Allow WebRequest for listed URL” and add https://xggcqfcddqrxipdcfxpc.supabase.co.
  4. 4Attach the EA to a chart and fill in your API key (mtj_…) — the Supabase URL and anon key are already pre-filled.

What is recognised

  • Read-only EA — never places or modifies trades
  • Automatic sync of closed orders
  • Shared API key with MetaTrader 5

Frequently asked questions

How do I connect MetaTrader 4?+

Download TradingJournalSync.ex4, place it in MQL4/Experts, authorize WebRequest for the Supabase URL (Tools → Options → Expert Advisors), then attach the EA to a chart and enter your mtj_… API key.

Does the EA place or modify trades?+

No. It is strictly read-only — it only reads your closed order history and sends it to your journal.

Do I need a separate API key for MT4?+

No. The mtj_... API key is shared between MT4 and MT5. Generate it once in Configuration.

Does MT4 sync automatically?+

Yes. The EA runs on your MT4 terminal and syncs closed orders every 60 seconds while the terminal is open.

Why do I get WebRequest error 4060?+

The Supabase URL is not authorized in MT4. Open Tools → Options → Expert Advisors, tick “Allow WebRequest for listed URL”, add https://xggcqfcddqrxipdcfxpc.supabase.co, then reload the EA.