To see the ping to your broker in MetaTrader 4 or 5, click the connection indicator in the bottom-right corner of the terminal: a list opens with each access point of your broker's server and its ping in milliseconds. In the same menu, Rescan servers makes the terminal test the access points again, and clicking one switches to it. Do this on the machine that runs your EA, because the ping is measured from wherever the terminal is running.
Read the ping in MT4 and MT5
The steps are the same in both platforms.
- Open the terminal on the machine that will run the EA. On a VPS, connect to it (with Remote Desktop on a Windows VPS) and work in the terminal there; a reading on your home PC measures your home connection.
- Look at the bottom-right corner of the status bar. If the terminal is not connected, a message such as No connection or Invalid account appears there, as IG's MT5 help notes. A figure in kb next to the connection bars is the traffic of the current session, not the ping.
- Left-click the indicator. A list of the broker's access points appears, each with its ping in milliseconds, as the Admirals and BlackBull Markets help pages describe. An access point is an entry address of the same trade server; a broker can have several, in different cities.
- Read two things for each access point: the ping, and the bars. Admirals advises judging stability too, with more green bars meaning a steadier connection, and choosing on both.
- To switch, click the access point you want. The terminal reconnects through it. Open the list again to see which one is now in use.
Rescan servers
The list shows what the terminal found the last time it tested the access points. After a move, a broker change of servers or a long run, it can be out of date.
- Click the connection indicator in the bottom-right corner.
- Choose Rescan servers (RoboMarkets, OANDA and Axi describe the same option).
- Wait for the list to refresh, then open it again and read the ping.
- If the terminal stayed on a slow access point, click a faster one with steady bars.
Rescan when:
- you have just installed the terminal on a new VPS or moved the VPS to another city,
- the ping is far above what you expected for that city,
- the status shows No connection while the machine is online,
- your broker has announced new servers or addresses.
Switching access point makes the terminal reconnect. Do it when your EA is not about to send or change an order.
When your server is missing from the list
If the server name of your account is not offered at login, ask the terminal to search for it.
| Platform | What to do |
|---|---|
| MetaTrader 5 | Open the File menu and choose to open an account. Type the company name and click Find your broker, or type the server address instead, as the MetaTrader 5 help explains. Select the server and log in with your existing account |
| MetaTrader 4 | Open the File menu and choose to open an account. In the server list, click the green (+) entry, type the broker's name or server name as your broker writes it, click Scan, choose the server and log in with your existing account, as Axi's help centre describes |
Use the server name your broker gave you for this account, not one that looks similar. If the server is found and the login still fails, check the account number, password and server name before the network: see MT4 says Invalid account or No connection.
What the ping is, and what it is not
| The ping is | The ping is not |
|---|---|
| One network round trip from the machine running the terminal to an access point of the broker's server | The time the broker takes to execute your order, which happens inside the broker after the order arrives |
| A reading at one moment | A permanent value: routes and broker servers change |
| Measured to the access point, the entry door | Always the distance to the trade server: access servers can sit in other cities and pass the data on to the trading servers, and a relay network answers from near wherever you are |
| Comparable between access points of the same server | A ranking of brokers |
A very low ping can still hide a long path behind the door; why a very low broker latency figure can mislead explains when.
How the ping relates to the measured table
The broker latency table gives, for each measured server name, the round trip from one Dipgate server in each of London, New York, Frankfurt and Paris to that server's fastest access point, taken on 26 November 2026. It answers the question before you order: which city is closest to my server. The ping in your terminal answers the question after: what does this machine get right now.
Both are one network round trip to an access point, so for a terminal running in the same city they should be close, but not identical: a different moment, perhaps a different access point, and a different way of timing it (the table times the opening of a TCP connection and keeps the middle value of seven tries; the terminal uses its own ping). Use them like this:
| What you see in the terminal on the VPS | What it can mean | What to do |
|---|---|---|
| Close to the table figure for your city | The terminal uses a nearby access point | Nothing |
| Far above the table figure for your city | The terminal is on a distant access point | Rescan, then pick the fastest access point with steady bars |
| High, and every city in the table row is high too | The server is far from all four cities | No city brings it close; see London or New York VPS for how to choose |
| Low from terminals in cities far apart, such as London and New York | A relay network in front of the server | Ask the broker where the server is hosted |
| No figure on any access point | No answer at all | A connection or login problem; see MT4 keeps disconnecting on a VPS |
Reading the ping from code in MT5
If an EA should log its own connection, MQL5 has a terminal property for it: TERMINAL_PING_LAST, which the MQL5 reference describes as the last known ping to a trade server, in microseconds. In an MT5 script or EA:
Print("Last ping: ", TerminalInfoInteger(TERMINAL_PING_LAST) / 1000.0, " milliseconds");
Dividing by 1,000 turns the value into milliseconds. Like the figures in the list, it is measured from the machine that runs the terminal.
When the ping is not your problem
- Your EA reacts late although the ping is low. The delay may be on the machine, for example a terminal short of CPU or memory. See why a trading VPS gets slow.
- Your EA trades on H1 bars or slower. Differences of a few milliseconds or a few dozen are small next to an hour-long bar.
- Your slippage happens at news time. Spreads and liquidity change then, and the ping does not.
How this works on Dipgate
- On a Trading VPS you connect with Remote Desktop and read the ping in the terminal on the VPS; closing the Remote Desktop connection leaves the terminals running. The location is chosen at order among Paris, London, Frankfurt, New York and Chicago; the measured table was taken from one Dipgate server in each of London, New York, Frankfurt and Paris (Chicago was not measured).
- On Metatrader In Cloud the MetaTrader runs on the server and opens in your browser, so the ping in its status bar is read from the server, not from your PC. Its locations at order are Europe, United Kingdom and New York.
- Trading Servers are offered in London and New York.
