On this pageThe round trip of one order
Latency is the time between deciding to trade and knowing the result. Traders usually reduce it to one number, the ping shown in the platform's status bar, but an order's round trip has several stages, and the network is only one of them. Knowing where the time goes tells you which delays you can remove, which you cannot, and when latency matters at all.
The round trip of one order
Follow a market order from an expert advisor to a fill and back:
- Your side. The terminal receives a quote, your program evaluates it and builds a request. A busy CPU, a heavy indicator or a program waiting on its own calculations adds delay before anything leaves the machine.
- The way out. The request crosses your local network, your provider's network and the internet to the broker's trade server. Distance sets a floor, and routing, queues and Wi-Fi add to it.
- The broker. The trade server checks margin and limits, then fills the order from its own book or passes it through a bridge to liquidity providers. Some providers apply last look, a short window in which they may accept or reject the trade at the quoted price.
- The way back. The confirmation, or a requote or rejection, travels the same path in reverse, and the terminal updates the position.
The ping figure measures roughly stages 2 and 4 for a tiny packet. It says nothing about stage 1 on your machine or stage 3 at the broker, and stage 3 is often the largest part.
Latency, jitter and packet loss
Three network measurements matter, and the average is the least interesting:
| Measure | What it is | Why it matters |
|---|---|---|
| Latency | Time for a round trip | Sets how stale a price is by the time your order lands |
| Jitter | How much that time varies | A path that is usually fast but sometimes slow makes timing unpredictable |
| Packet loss | Packets that never arrive | Trading connections use TCP, so a lost packet is sent again, adding at least one more round trip |
A home connection can show a fine average ping and still suffer spikes when someone starts a video call or the Wi-Fi drops a few frames. Those spikes land at random, including at the moment an order goes out.
What latency changes, order by order
Latency matters differently depending on where an order waits:
- Market orders execute at the price available when they reach the broker. If the price moved during the trip, the fill differs from the quote you saw. That difference, slippage, can go either way.
- Instant execution works differently: the request carries your price, and if the market has moved beyond your allowed deviation, the broker answers with a requote instead of a fill. Longer round trips give the price more time to move.
- Pending orders, stop losses and take profits sit on the broker's server and trigger there, so once they are placed, your connection does not affect when they fire.
- Logic that lives in your terminal depends on your connection and on your terminal being online. In MetaTrader, the built-in trailing stop runs in the terminal, not on the server, as MT4's help states. The same goes for "hidden" stops managed by an expert advisor: if the terminal is offline, nothing moves them.
That last group is the strongest argument for a server that never sleeps. A strategy that reacts once a day barely notices a few extra milliseconds, but if its stops are managed by code in the terminal, it needs a terminal that never goes offline.
Measure each stage
The platform's own figure
MetaTrader shows the ping to the connected trade server at the right end of the status bar. Note it at a quiet hour and a busy one, from each place you might run the terminal.
Request to response, from inside the terminal
To capture the whole round trip, including broker processing, time a request yourself. This MQL5 script sends a minimum-size order and reports how long the response took. Run it on a demo account only, and close the position afterward:
#include <Trade\Trade.mqh>
CTrade trade;
void OnStart()
{
ulong t0 = GetMicrosecondCount();
bool ok = trade.Buy(0.01, _Symbol); // demo account only
ulong t1 = GetMicrosecondCount();
PrintFormat("sent=%s round trip=%.1f ms retcode=%u price=%.5f",
ok ? "yes" : "no", (t1 - t0) / 1000.0, trade.ResultRetcode(), trade.ResultPrice());
}
Repeat it a few times at different hours. The spread between the fastest and slowest results is your jitter, and anything far above the ping figure is time spent on the broker's side or in the terminal.
The network path
Many servers deprioritize or block ICMP, so a TCP connection test to the trade server's address and port is more honest than ping. In PowerShell:
$server = "203.0.113.10"; $port = 443
1..10 | ForEach-Object {
$client = [System.Net.Sockets.TcpClient]::new()
$sw = [System.Diagnostics.Stopwatch]::StartNew()
$client.Connect($server, $port)
$sw.Stop(); $client.Dispose()
"{0:N1} ms" -f $sw.Elapsed.TotalMilliseconds
}
pathping 203.0.113.10 on Windows, or mtr -rwzc 50 -T -P 443 203.0.113.10 on Linux, shows each hop with its loss rate. Loss that starts at one hop and continues to the end points to a real problem; loss at a single middle hop that does not carry on usually means that router simply ignores probe traffic.
Reduce what you can
Work from the cheapest change to the most involved:
- Clean up the terminal. Close charts you do not watch, remove unused symbols from Market Watch and drop indicators nobody reads. In MT4 all indicators share the interface thread; in MT5 all indicators on one symbol share a thread, so one slow indicator delays everything that depends on it.
- Keep heavy work off the live machine. Strategy Tester optimizations and live trading compete for the same cores. Run optimizations elsewhere, or when the market is closed.
- Write programs that do less per tick. Logic that only needs closed bars can skip most ticks.
- Fix the path. Wired beats Wi-Fi, and a VPN adds a hop, so route the terminal outside it if your security setup allows.
- Move the terminal. A server in a data center near the broker's trade server shortens the distance and removes the home connection from the path entirely.
What a VPS changes, and what it cannot
A trading VPS changes stages 1, 2 and 4. It runs the terminal on a machine that does nothing else, close to the trade server, on a data center network instead of a home line. It also keeps the terminal online through power cuts, laptop updates and closed lids, which is what terminal-side logic needs.
It does not change stage 3. Broker processing time, spreads, liquidity, last-look rejections and slippage in fast markets are all on the other side of the connection. Nor does it improve a strategy: lower latency only means the strategy you already have reacts sooner.
CloudSat's Trading RDP servers run on High Frequency Ryzen cores in 13 regions, and hourly billing makes it cheap to measure a few regions against your broker before settling on one. Connection quality also varies through the day, as the market hours guide explains.
FAQ
Is a lower ping always better?
Only up to the point where the network stops being the largest part of the round trip. Once broker processing dominates, shaving the network further changes little.
Does latency matter for swing trading?
Much less. Orders placed hours or days ahead, with stops on the broker's server, barely depend on it. Uptime still matters if the terminal manages stops or trails positions.
Why is my fill slower than my ping?
Ping measures a tiny packet's trip. A fill also includes your terminal's work and the broker's processing, and sometimes a liquidity provider's last look.
Can I measure latency to a crypto exchange the same way?
Yes. Time HTTPS or WebSocket requests to the exchange's API endpoint from the server, as the PowerShell loop does. Many exchanges sit behind content delivery networks, so test from each region you are considering.
Trading involves risk of loss. Nothing in this article is financial advice.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




