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
- MT4 → "File" → "Open Data Folder" →
MQL4\Experts\folder - Copy
TrackRecordPublisher.ex4there (no compilation needed) - Right-click the MT4 Navigator → "Refresh"
3. Allow WebRequest (required — most important)
MT4 → Tools → Options → Expert Advisors →
- Check "Allow WebRequest for listed URL"
- Add
https://track-record.atoz-gm.net(no leading/trailing spaces) → OK
4. Attach the EA to a chart
- Drag
TrackRecordPublisheronto any chart - Set InpApiKey to the key from step 1 (required)
- On the "Common" tab, check "Allow live trading" → OK
- 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:
- In the MT4 "Account History" tab at the bottom, right-click → "All History"
- In the EA properties (F7), set InpForceBackfillNow = true → OK
- 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
- "send error err=…" → check the allowed URL in step 3 (watch for spaces)
- Not showing up → check that the account is set to "Public" in the admin page
- This EA does not trade (it only reads and sends performance).