All guides

Latency and routing

Trading VPS Latency: What Actually Affects Execution?

Latency is several distinct measurements, not one number. What each part means, which parts you can influence, and how to measure them without overreading.

Algo Hosting8 min
Abstract dark schematic of two separate network paths between two endpoints, with a detached indicator ring representing a reported reading rather than a path.
Fig. 01 · Two paths, one readingIllustrative

Latency is not a single number. Several distinct measurements get discussed under that one word, and they answer different questions.

This article separates them, explains what the network metrics actually define, and describes how to measure without drawing more from a reading than it supports. It does not promise an execution outcome.

Latency is the time a packet takes to travel a path. Everything below is a component of that time, a variation in it, or a failure to complete it.

Key takeaways

  • Remote session responsiveness and the broker path are different measurements.
  • A round-trip figure covers both directions and does not reveal how the delay splits.
  • Measure from the VPS, during active hours, and keep the distribution rather than an average.
  • Region selection is a planning decision, not a guaranteed figure.

Two paths and one reading, routinely conflated

User-to-VPS. The path between your own computer and the server. It governs how responsive the remote session feels.

VPS-to-broker. The path between the server and the broker's trading infrastructure. This is the one in the order path.

The platform's reported figure. The number in the terminal's status area. This is a reading the software presents, not a third network path.

Remote session responsiveness is not a direct measurement of the broker path. The two run over different networks and can move independently. They are not fully independent either: pressure on the server's CPU or memory can degrade both at once, so a slow session is weak evidence about the machine and no evidence about the broker path by itself.

What a round-trip number contains

The IETF's round-trip delay metric (RFC 2681, 1999) defines the measurement as the interval from a source sending the first bit of a packet, through the destination receiving it and immediately sending one back, to the source receiving the last bit of the reply.

The consequence is worth holding onto: a round-trip figure covers the forward path and the reverse path, and routing does not guarantee the two are symmetric. As an illustration only, a 40 ms round trip is consistent with 20 ms in each direction and equally consistent with 5 ms out and 35 ms back. An outbound order uses the forward direction, while acknowledgement and execution information come back along the reverse one, so both directions are involved — but a round-trip figure still does not reveal how the total splits between them. These numbers are arithmetic, not measurements of any real route.

RFC 2681 also treats an unanswered packet as undefined delay rather than as a large value, which is why a single unanswered probe should not be averaged into a latency figure.

Size a VPS for this workload

Plans are sized by terminal count. Pick how many terminals you run and the fit is stated in the catalog.

Find my planOr check the broker route fit first

Delay variation

Jitter, in IETF terms, is IP Packet Delay Variation (RFC 3393, 2002): "the difference between the one-way-delay of the selected packets".

Whether variation or average delay matters more depends on what the system does with the timing. A workload sensitive to consistency is affected differently from one sensitive to absolute delay, and which describes yours is a property of your system rather than a general rule. What is safe to say is that an average alone conceals variation, so reporting both is more informative than reporting either.

RFC 3393 notes the metric is relatively robust to clock synchronisation differences between endpoints, because it measures differences rather than absolute times.

Packet loss

Packet loss is a packet failing to arrive within a threshold waiting time. RFC 7680 (2016, obsoleting RFC 2680) defines it as binary: a packet is lost or it is not. The document makes the relationship to delay explicit — loss is 1 exactly when one-way delay is undefined.

RFC 7680 defines a network measurement. It does not describe how any particular application responds to loss. Recovery behaviour depends on the transport and on the application above it, and MetaQuotes does not publish the transport its platforms use, so this article does not assert one. The general point that survives without those details: loss is not a smaller version of latency. It is a separate condition, and the impact on an application cannot be inferred from the loss rate alone.

Route stability

Route stability is whether a path keeps its characteristics over time. A path can show acceptable delay, low variation and no loss, and still change when routing between networks changes. Stability is hard to observe in one test and visible over time, which is an argument for measuring repeatedly rather than once.

Measuring without overreading

  1. Measure from the VPS. A test from your own machine measures your own connection.
  2. Measure during your workload's active periods. Sample the hours your automation actually runs, and repeat across days. A reading from a period when your instruments are quiet describes that period only.
  3. Record the distribution. Keep minimum, median and high percentiles. The tail is what an average hides.
  4. Measure to the endpoint you use. A probe to a broker's website measures the path to a web server, which may be hosted separately from trading infrastructure.
  5. Separate the paths before concluding. If the remote session feels slow, check server-side CPU and memory at the same timestamps before attributing it to the network.

ping and tracert are reasonable first tools with a caveat. Both rely on ICMP, which routers may deprioritise, rate-limit or answer differently from forwarded traffic. A response from an intermediate hop describes that hop's willingness to reply to ICMP; it does not establish end-to-end loss or delay for your actual traffic. Treat a poor ICMP result as a prompt to investigate rather than a finding.

For anything beyond a first look, a scheduled task that logs a timestamp and a round-trip figure answers the question that matters later: was this always like this, or did it change?

What the platform's own figure is

The status area reports a connection state and a figure. MetaQuotes does not publish which endpoint that figure is measured against or how it is computed, so this article will not assert either.

What it supports is a comparison against itself. A figure that is stable across hours is consistent with a stable path. A figure that changes markedly is worth investigating. What it does not support is comparison against a number published elsewhere, because the endpoints and methods are unknown on both sides.

Why one measurement is rarely enough

Each metric above answers a different question, and a single figure taken once answers none of them well.

Delay tells you how long a path took at that moment. Variation tells you how consistent it was across a sample. Loss tells you whether packets completed at all. A path can look acceptable on one and poor on another, which is why they are defined separately in the first place.

The practical consequence is that a decision made on one probe is a decision made on one sample of one metric. Recording all three over a period covering your workload's active hours costs little and produces something you can compare against later, which a single reading never provides.

What you can influence

FactorDetermined byPractically changeable
Distance between server and broker infrastructureThe region you select and the broker endpoint actually usedRegion is chosen at deployment; available endpoint options are defined by the broker and account, so measure the endpoint actually used
Transit and peering between themIntermediate networksNot directly
Congestion en routeIntermediate networksNot directly
Resource pressure on the VPSYour workload and sizingYes
Your own connection to the VPSYour access networkOnly by changing it
Broker-side processingThe brokerNo

Region selection is a planning decision, not a guaranteed figure. That is the reasoning behind describing regions as route-fit zones rather than publishing millisecond numbers: the region is knowable in advance, and end-to-end behaviour still has to be measured after deployment. The broker route-fit planning tool exists to make that first decision on evidence.

The second lever is easy to overlook. A machine under memory or CPU pressure can add delay in the application before a packet is sent. Sizing that properly is covered in how many MT5 terminals can run on a VPS.

What none of this determines

Lower latency alone does not establish a durable strategy edge or guarantee a better result. Timing can affect how a strategy operates — a system built around reacting quickly behaves differently on a slower path — but that is a statement about operation, not about profitability.

Latency is one input to what you are filled at, not the determinant. MetaQuotes documents several execution modes — Instant, Request, Market and Exchange — which differ in whether a price is confirmed before execution and whether a requote can be returned. Order type, available liquidity, market movement between submission and matching, broker-side processing and the moment an order arrives all bear on the result as well. MetaQuotes states in its hosting documentation that lower network latency provides better conditions for execution; that is their statement about a contributing factor, and it is not a promise this provider makes.

No hosting provider controls all of those inputs. A provider can influence the available regions, server resources and parts of the network path; it does not control broker processing, liquidity, market movement or execution policy. Algo Hosting cannot promise a fill, a level of slippage, or any execution outcome.

What hosting can offer is a path you can measure and re-measure, and a region chosen deliberately. Whether that path is shorter or steadier than your current one is a question your own measurements answer, not a claim to accept in advance. If you are weighing this against a local machine, the operational comparison with a home PC covers the differences that are easier to establish.