マイページEA導入手順

MT4 導入手順

あなたの口座の成績を TrackRecord へ自動連携する EA のセットアップ手順です。
MT5 MT4 ⬇ EA本体 (.ex4) をダウンロード

Place TrackRecordPublisher.ex4 (a compiled executable) into MT4 to automatically send your account performance to https://track-record.atoz-gm.net. No compilation needed.

(The destination and API key are shared with the MT5 version. MT4 aggregates on an order basis.)

1. Issue an API key

Log in at https://track-record.atoz-gm.net/mypage → click "+ Add EA", enter a slug, a display name and the platform (MT4) → copy the API key (48 characters) from each EA card.

(If you create it as a separate EA from the MT5 version, you can list MT4/MT5 separately in the ranking.)

2. Install the EA in MT4

  1. MT4 → "File" → "Open Data Folder" → MQL4\Experts\ folder
  2. Copy TrackRecordPublisher.ex4 there (no compilation needed)
  3. Right-click the MT4 Navigator → "Refresh"

3. Allow WebRequest (required — most important)

MT4 → Tools → Options → Expert Advisors

4. Attach the EA to a chart

  1. Drag TrackRecordPublisher onto any chart
  2. Set InpApiKey to the key from step 1 (required)
  3. On the "Common" tab, check "Allow live trading" → OK
  4. Turn "AutoTrading" ON on the toolbar

If "TrackRecord: sent OK …" appears at the top-left of the chart, it works.

Backfilling the full history

The EA can only send the history loaded in the terminal. To reflect the entire period:

  1. In the MT4 "Account History" tab at the bottom, right-click → "All History"
  2. In the EA properties (F7), set InpForceBackfillNow = true → OK
  3. When "Backfill complete" appears, set InpForceBackfillNow = false
Even with many trades, it is sent in batches of InpBatchSize, so all records are included reliably.
The baseline (starting balance) is computed automatically as "current balance − net P/L of all trades".

Troubleshooting