How to sync your Mt5 account with Trademetria
September 2026 Update
If you’re running the latest version of MetaTrader 5, the FTP option is no longer available. MetaTrader has replaced it with a new method that is more complicated and requires several additional steps.
Unfortunately, this is the only option MetaTrader currently provides in its latest version.
How to Automatically Sync Your MetaTrader 5 Trades with Trademetria
Connecting your MetaTrader 5 (MT5) platform to Trademetria in real-time allows your executions, commissions, and profits to sync automatically the moment a trade happens. Follow this step-by-step guide to set up your automated sync manager.
Step 1: Access the MT5 Sync Manager
To get started, log into your Trademetria account and navigate to the MT5 Sync Manager. This page serves as your control center for generating your secure credentials and downloading the official bridge tool.
Step 2: Get Your Sync Password
Inside the MT5 Sync Manager, locate your generated password or sync key. This unique password securely links your MetaTrader platform communications directly to your Trademetria profile. Tip: Add an account if you don't see your password.
Step 3: Add Your Trading Account
On the same sync manager page, register your MT5 account details (ensure the account number or account name matches your broker configuration). This ensures incoming webhook data is mapped precisely to the correct portfolio inside Trademetria.
Step 4: Download the Expert Advisor (.ex5 File)
Download the compiled .ex5 Expert Advisor file directly from the MT5 Sync Manager. Once downloaded, install it into your MetaTrader 5 platform:
- Open MT5 and go to File > Open Data Folder.
- Navigate to
MQL5 > Experts. - Paste your downloaded
.ex5file into this folder. - Restart MT5 or right-click the Expert Advisors tree in your Navigator panel and click Refresh.
Step 5: Whitelist the WebRequest URL in MT5
For MetaTrader to communicate with external APIs securely, you must whitelist the Trademetria webhook endpoint:
- In MT5, go to Tools > Options (or press
Ctrl + O). - Select the Expert Advisors tab.
- Check the box labeled "Allow WebRequest for listed URL".
- Add the following URL to the list:
https://app.trademetria.com - Click OK.
Step 6: Attach the EA to a Chart
To start tracking your executions in real-time:
- Open any chart (e.g., EURUSD or your preferred asset, on any timeframe—it runs globally for the account).
- Drag and drop the Trademetria Expert Advisor from your Navigator panel onto the chart.
- A settings popup window will appear. Paste your Trademetria password into the inp_password field.
- Under the Common tab of the popup window, make sure "Allow DLL imports" (if required) and "Allow automated trading" are both checked.
- Click OK. You should see a smiley face icon appear in the top-right corner of the chart, indicating the EA is active.
Frequently Asked Questions (FAQ)
Does this bridge fetch my old or historical trades?
No. The MT5 Expert Advisor only listens for live trade executions (entries, exits, and modifications) happening from the moment it is attached to the chart forward. It will not pull past trading history from your broker.
If you need to import past trades into Trademetria, you can easily do so via the history tab:
- Log into your MT5 platform and go to the Toolbox > History tab.
- Right-click anywhere inside the history window and select Reports > HTML (or save the history report file).
- Go to Trademetria, navigate to your file import section, and upload that HTML file to populate your past history instantly.
What happens if my internet drops or the server is down?
The custom MT5 script features a built-in fail-safe queue system. If a trade executes while your connection is unstable or if the server temporarily fails to respond, the EA will store the execution locally and automatically retry sending it at regular intervals until it is successfully recorded.
How often does it sync?
Nearly in real-time.
Is the expert advisor safe to run?
This software is provided "as is" without warranty of any kind, express or implied. Use entirely at your own risk. If you need a copy of the source code to review it and compile it, feel free to ask us.
Troubleshooting: What if trades don't appear?
If your live trades are not showing up in Trademetria, use these steps to diagnose the connection:
- Check the Experts Tab for Logs: Go to your MT5 Toolbox window at the bottom of the screen (or press
Ctrl + T) and click on the Experts tab. This log window will show real-time error messages, successful transmissions, or critical error codes. - Watch for Error 4060: If the Experts tab displays an error code
4060, it means MetaTrader blocked the web request because the URL isn't whitelisted. Return to Tools > Options > Expert Advisors and verify thathttps://app.trademetria.comis correctly added to your allowed URL list. - Confirm AutoTrading is Enabled: Make sure the main AutoTrading button on the top toolbar of MetaTrader 5 is toggled on (displaying a green icon).
- Verify Your Password: Double-check that you entered the correct sync password from your Trademetria account into the EA inputs window.
- Make sure our ea is attached to chart: Make sure the name of the ea appears on top of the chart you are trading.
Older versions of Mt5:
To sync your MT5 account with trademetria, you must have a pro plan. You can still sync via file uploads using your free or basic plan.
- Contact us via our contact page to get your sync credentials.
- Go to Tools, then options.
- Select the FTP tab
- Fill out the FTP server, username and password that our support team has provided.
- Check the box "Passive Mode".
- Check the box "Enable auto publishing of reports via FTP."
- Enter the account number you wish to sync.
- Set it to refresh it to whatever time you like. If you choose to refresh every 10 minutes, that means MT5 must be running for at least 10 minutes for a file transfer. From our end, we process trades within 15-minute intervals.
- Click on the Test button.

If everything goes well, you should see a message under your journal tab that the report was sent to our server successfully.

Important
- The sync works with demo and real accounts.
- The sync only fetches trades for the current month. If you want to sync past trades, you can upload the .html file via the import option that we already offer. The system will only upload new trades and will skip duplicates.
- Wait at least 1 hour for the first fetch to occur.
- If the sync shows it's sending files to our server, but you don't see your trades, make sure your file is uploadable. Generate a report and upload to your account to make sure the same file is compatible with our system.
- Your MT5 software must be open in order to sync.
- This sync is still in BETA mode. We'll update this page regularly until it has been fully tested.
Security
- Don't share these credentials with anyone.
- Your access will be revoked automatically upon subscription cancelation or downgrade.
- This is the safest way to sync mt5 accounts with third-party vendors because you don't share your own mt5 account credentials with us, unlike other syncing methods that ask you to install advisors that can run unsafe/unknown code within your account and without your permission.
- MT5 is only sending us an HTML file with your transactions. Safe and simple.