← All guides

Connect MetaTrader 4

The same recorder, built for MT4. MetaTrader 4 has no trade-transaction event, so the recorder re-checks every open order four times a second — fast enough that a stop move is timestamped to the moment you made it.

About 6 minutes, once.

What gets recorded

  • + Every order opened, closed, reduced and increased
  • + Every stop-loss and take-profit change, detected on a 250 ms scan
  • + A heartbeat every 30 seconds proving the recorder is alive

What it cannot see

  • Anything that happens while the terminal is closed or the recorder is detached
  • A level changed and changed back inside the same quarter-second

Step by step

0 of 7 done

  1. 1.Add the account in TradeMirror

    Connections → Add account → MetaTrader 4. The recorder is generated for this account with its own ingest token inside, so do not share the file.

    The Connections page with the Add account form open and a connection type selected

    Worked if: The new account appears in your list with a Set up button.

  2. 2.Download the recorder

    In the setup panel, MetaTrader tab, press MetaTrader 4 (.mq4).

    Direct download link

    https://trademirror.pro/api/public/ea/YOUR_TOKEN?build=mq4

    Worked if: A file named TradeMirror.mq4 is in your downloads.

  3. 3.Put it in your terminal's data folder

    In MetaTrader: File → Open Data Folder → MQL4 → Experts. Copy the .mq4 file in there.

    The MetaTrader File menu with Open Data Folder highlighted, next to the MQL5 Experts folder

    Worked if: The file sits alongside the other .mq4 files in MQL4/Experts.

  4. 4.Compile it

    Open it in MetaEditor and press F7.

    Worked if: MetaEditor reports 0 errors.

  5. 5.Allow TradeMirror as a web address

    Tools → Options → Expert Advisors → tick 'Allow WebRequest for listed URL' and add the address below exactly, with no trailing slash.

    The MetaTrader Options dialog, Expert Advisors tab, with Allow WebRequest for listed URL ticked

    URL to add to the allowed list

    https://trademirror.pro

    Worked if: The address is listed in the box and the checkbox is ticked.

  6. 6.Attach it to one chart

    Drag TradeMirror onto any chart and make sure the AutoTrading button is green. One chart records the whole account.

    An expert advisor being dragged from the MetaTrader Navigator onto a price chart with Algo Trading enabled

    Worked if: A smiley face appears on the chart and the Experts tab prints a TradeMirror start line.

  7. 7.Check it is arriving

    Move a stop on a demo order. The connection check below should turn green within a few seconds.

    Worked if: Heartbeat seen in the last minute and at least one event recorded.

Test this connection

Sign in and open this walkthrough from an account on the Connections page to watch data arrive in real time.

What a recorded trade looks like

Once the connection is live, a managed trade arrives as a sequence like this. The middle two rows are the point of the platform: without them there is a result but no record of how it was managed.

  1. 09:31:04Position openedLong 1.0 EURUSD at 1.0850, stop 1.0820, target 1.0930.
  2. 09:41:22Stop movedStop raised from 1.0820 to 1.0850 — recorded as a stop_modified event, not inferred.
  3. 10:02:47Partial close0.5 closed at 1.0889; 0.5 still open. Both the size before and after are stored.
  4. 10:26:10Position closedRemaining 0.5 closed at 1.0902, short of the 1.0930 target.

This is an illustrative example, not your data and not a suggestion about how to manage a position.

If something goes wrong

Nothing appears in TradeMirror.

Open the Experts tab at the bottom of the terminal. The recorder prints a line when it starts and when a WebRequest fails; that message names the problem.

I closed my laptop for an hour.

Nothing can be recorded while the connection is down. A heartbeat is sent every 30 seconds, so a gap is shown as a gap rather than filled in with a guess.

Platform disclaimer

TradeMirror is a trade-recording, behavioural analytics and educational self-review tool. It does not provide investment advice, personal recommendations, trading signals, portfolio management or trade execution. Insights are based on historical activity and hypothetical scenarios and should not be treated as recommendations to buy, sell, hold or modify any financial instrument. Trading involves substantial risk. Past performance and simulated results do not guarantee future outcomes.

TradeMirror never places, modifies or closes an order. Every connection above is read-only.