High-frequency trading technology

HFT trading guide

High-Frequency Trading (HFT): Meaning and How It Works

What high-frequency trading means, the six main HFT algorithms, how the HFT cycle works from market data to the fill, where fast quotes come from and why brokers lag behind them, and how HFT works in forex.

Alexander Vinsky

By , Lead Developer and Chief Technical Specialist at Westernpips · Published · Updated · About the author

  • 4 stages of the HFT cycle
  • 1–3 ms inside LD4
  • 6 HFT algorithm types
  • 34–56 ms median broker lag in our study

HFT meaning

What is high-frequency trading? HFT meaning

HFT servers and trading screens in a data centre

High-frequency trading (HFT) is algorithmic trading in which software receives market data, makes decisions and sends orders in milliseconds or faster. Positions are usually held for seconds or less, and the edge comes from speed, data quality and precise execution rather than from predicting where the market goes next week.

In short, HFT means trading by machine at very high speed: the meaning lies less in how many trades are made than in how fast each decision reaches the market. HFT is a family of strategies, not one strategy; the main HFT algorithms are described in the next section.

Every HFT system relies on the same building blocks:

  • market data with accurate timestamps, depth and a high update rate;
  • hosting and network routes close to the execution venue;
  • latency-optimised hardware, software and connections (see low latency trading);
  • algorithms that compare thousands of data points per second and act on them at once.

HFT algorithms

HFT algorithms: six main types

A high-frequency trading algorithm is a set of rules that turns market data into orders within milliseconds. Most HFT algorithms belong to one of six types:

  1. Market making. The algorithm quotes Bid and Ask at the same time, earns the spread and cancels or moves its quotes as soon as the price changes. Its main risk is trading against someone who already knows where the price is going.
  2. Statistical arbitrage. It trades short-lived deviations between related instruments, such as two correlated currency pairs or an index and its components, and closes when the relationship returns to normal. See statistical arbitrage.
  3. Latency arbitrage. It trades a broker quote that has not yet caught up with a faster price source. This is the strategy behind Westernpips Private 7, explained in what is latency arbitrage.
  4. News and event trading. It reacts to scheduled releases, such as rate decisions and employment data, in the first milliseconds after the number is published, when spreads widen and quotes jump. See news trading.
  5. Triangular arbitrage. It looks for a cross rate that does not match the two rates it is built from, for example EUR/GBP against EUR/USD and GBP/USD. At retail brokers these gaps are usually smaller than costs; see triangular arbitrage.
  6. Short-term order-flow signals. It reads order book imbalance and the last few trades to predict the next price tick, and holds positions for seconds or less.

Practices such as spoofing, placing orders with the intent to cancel them in order to move the price, are market manipulation and are prohibited by regulators; they are not an HFT strategy.

How HFT works

How HFT works: the full cycle in milliseconds

How HFT works: receiving market data, real-time analysis, execution, fills and processing

An HFT system runs a closed loop of receiving, comparing, deciding and executing, many times per second. Each stage adds delay, and the whole loop decides whether an opportunity can be traded.

1. Receiving market data: the race begins here

The application receives prices through exchange, liquidity-provider or broker interfaces: direct raw feeds from ECNs, institutional FIX and ITCH streams and tick-by-tick order book changes. The fastest firms receive them over dedicated fibre or microwave links into colocation racks in LD4 (London), NY4 (New York), TY3 (Tokyo) or SG1 (Singapore), on tuned bare-metal servers.

2. Real-time analysis: detecting the gap

The algorithm compares the fastest available price with the slower broker price, looks at spreads across venues, the order book and the last few milliseconds of price movement. For example, EUR/USD may update on a reference feed before the execution broker. A gap is only a candidate signal: spread, commission, quote age and the real fill decide whether it can be traded.

3. Execution: the hardest and most expensive stage

Even a perfect signal is worthless if the order arrives late. Orders go out through FIX or another order-entry interface, low-level TCP gateways or native platform connections, and execution has to be fast, stable and physically close to the broker.

Where the order is sent fromTypical network delay
Server inside LD4, London1–3 ms
Server inside NY4, New York1–5 ms
VPS in another city or region50–120 ms
Home PC150–300 ms

4. Fills and processing

The fill, rejection or requote comes back, positions are updated and the system is ready for the next signal. Good HFT software records every step — quote arrival, signal, order, acknowledgement and fill — so you can see where time is lost. Our Forex VPS guide shows how to bring your own delay down to a few milliseconds.

Fast quotes

Where fast quotes come from and why brokers are slower

Price chain from tier-1 banks and HFT firms through ECNs and fast feeds to retail brokers

FX prices are born at tier-1 banks such as UBS, Citi, JP Morgan, Goldman Sachs and Morgan Stanley, and at non-bank liquidity providers and HFT firms such as XTX Markets, Virtu Financial and Jump Trading. They stream prices into institutional ECNs — LMAX, Cboe FX, Currenex, Euronext FX, Integral — which aggregate liquidity and form the “real” market price. Ultra-fast feeds deliver that price to HFT systems through ITCH, FIX market data and TCP streams.

Retail brokers sit at the end of this chain. They are built for safety and for many clients at once, not for speed. They:

  • aggregate prices from several liquidity providers;
  • smooth volatility and filter sharp movements;
  • add their own internal processing and risk checks;
  • sometimes update their quotes later on purpose.

Each step adds a few to a few hundred milliseconds. That delay is the window latency arbitrage works with, and the reason Westernpips Private 7 compares a fast source with the broker’s own quote in real time. More on the sources in fast quote providers and quote providers compared.

HFT in forex

High-frequency trading in forex

Forex has no single exchange. Prices are formed by banks and non-bank liquidity providers and spread through ECNs, aggregators and brokers, so the same currency pair can show slightly different prices in different places at the same moment. That is why high-frequency forex trading looks different from HFT on a stock exchange.

  • At the top of the chain, non-bank liquidity providers use market-making algorithms to stream prices to ECNs and brokers.
  • At retail level, HFT in forex usually means trading the delay between a fast price and a broker’s quote: latency arbitrage, its two-leg lock and hedge versions, and news trading.
  • The windows are milliseconds, not microseconds. In our XAUUSD recordings the median stale-quote window at three retail brokers was 34–56 ms (data study), so a VPS next to the broker’s server is fast enough.
  • Broker terms decide what is possible. Many retail brokers restrict very short trades or latency arbitrage in their client agreements; see broker arbitrage restrictions.

Leverage makes the same speed edge riskier: a fast entry does not protect against a bad fill, a rejected close or a widened spread at a news release.

Platforms and software

Tools for high-frequency trading

Every HFT setup needs software that runs the algorithm, a broker or venue that executes the orders, fast data and hosting close to the server. Two separate guides cover the software side in detail:

For broker-based latency arbitrage, Westernpips builds HFT trading software Private 7. Hosting and data costs are compared in HFT infrastructure cost, and retail arbitrage tools side by side in Best Forex Arbitrage Software 2026.

HFT facts

Fascinating facts about HFT

  • Milliseconds matter

    A single millisecond can decide whether an order is filled at the old price or misses it.

  • Colocation is a business

    Exchanges and data centres earn millions renting rack space next to their matching engines.

  • Microwave beats fibre

    Some institutional networks send prices by microwave because it travels faster through air than light through glass.

  • Custom everything

    Some HFT firms write their own network drivers and operating system tweaks to save microseconds.

  • Distance is time

    The route length between two cities sets a hard limit on how fast a price can travel.

  • Share of the market

    HFT activity makes up a large part of trading in many markets, measured by orders, trades or volume.

HFT combines financial research, engineering and operational discipline. Speed is one part of the system: strategy quality, costs, fill probability and risk control decide whether a fast signal becomes a profitable trade.

Videos

Technology videos: HFT in practice

Short videos from the Westernpips team on the multi-terminal, backtesting, gaps and FIX connections.

  • Westernpips Private 7: installation, activation, menus, settings and strategies

    Westernpips Private 7: installation, activation, menus, settings and strategies

    A full walk-through of the multi-terminal: installation and activation, menus, connections and strategy settings.

  • Westernpips new algorithms: Strategy Back Tester

    Westernpips new algorithms: Strategy Back Tester

    How the Back Tester replays recorded ticks so you can compare algorithms and parameters before trading live.

  • Westernpips Private 7 Analyser and BackTester guide

    Westernpips Private 7 Analyser and BackTester guide

    Test OneLegMulti, OneLegHidden, TwoLegStandard and other strategies on real recorded quotes with simulated slippage.

  • What are gap and slippage in latency arbitrage?

    What are gap and slippage in latency arbitrage?

    The gap is the difference between the fast feed and the broker quote; slippage is the difference between the requested and the filled price.

  • Westernpips Private 7: PrimeXM FIX connection guide and common errors

    Westernpips Private 7: PrimeXM FIX connection guide and common errors

    Connecting to a liquidity provider through PrimeXM FIX and fixing authorization errors, session drops and slow routing.

Alexander Vinsky

About the author:

Lead Developer and Chief Technical Specialist at Westernpips. He works on Westernpips Private 7 and its BackTester and studies how long price gaps between fast feeds and broker quotes really last. The numbers in this guide on delays, broker differences and testing come from that work.

His working paper How Long Do Stale Quotes Last? measured stale-quote windows on XAUUSD at three retail brokers: median 34–56 ms, with the result depending on the broker and the order delay. It is a vendor study on our own recordings, with the full method published so anyone can repeat it.

Published on: SSRN · SocArXiv (OSF) · Zenodo · Code on GitHub

Profiles: · ORCID · Google Scholar · SSRN · OSF

Westernpips Private 7 multi-terminal: fast and broker quotes for latency arbitrage

HFT software for traders

Westernpips Private 7

HFT latency arbitrage software: a multi-terminal that connects fast data feeds, finds the moments when the broker price lags and trades them in milliseconds. Fast feeds, direct connections and 10+ HFT algorithms in one multi-terminal.

  • Fast data feeds and direct TCP, FIX and API connections
  • Many broker accounts from one multi-terminal
  • Built-in Back Tester on recorded ticks
  • Lifetime licence, free updates and 24/7 support

from $777 lifetime licence · one-time payment

Risk warning. Fast software and infrastructure improve execution but do not guarantee profit. Results depend on the broker, its execution and rules, market conditions and settings, and you can lose money. Client results are published on the trading statements page with the clients’ permission; they are past results of specific accounts. Read the Risk Warning.

FAQ

Questions about HFT

More answers in the Westernpips FAQ.

What does HFT mean?

HFT stands for high-frequency trading: algorithmic trading in which software receives market data, decides and sends orders in milliseconds or faster, and usually holds positions for seconds or less.

What are HFT algorithms?

Rules that turn market data into orders within milliseconds. The main types are market making, statistical arbitrage, latency arbitrage, news and event trading, triangular arbitrage and short-term order-flow signals.

Is HFT used in forex?

Yes. Liquidity providers use market-making algorithms to stream forex prices, and at retail level HFT mostly means latency arbitrage and news trading against broker quotes, where windows are measured in milliseconds.

What software is used for high-frequency trading?

An HFT setup includes market-data handlers, a strategy engine, order routing, pre-trade risk controls and monitoring. Westernpips Private 7 packs these into one platform for broker-based latency arbitrage; exchange HFT firms usually build their own stacks. The types of HFT software are compared in HFT software for retail traders.

Can retail traders use HFT software?

Yes. Retail traders use Westernpips Private 7 with brokers on M4, M5, cTrader and FIX accounts, running it on a VPS near the broker. It does not give exchange colocation, but it brings the HFT approach of fast data and fast execution to broker trading.

Does an HFT platform need FIX API?

Not always. FIX is one option; Westernpips Private 7 also connects to M4 and M5 brokers directly over TCP and to other platforms through the EA connector. FIX, API and ITCH connections are available on WP Platinum.

What is the difference between HFT and latency arbitrage?

HFT is the broad family of fast algorithmic strategies. Latency arbitrage is one of them: it trades a broker quote that has not yet caught up with a faster price source.

How fast does HFT need to be?

For broker-based latency arbitrage, a ping below 5 ms from your VPS to the broker and execution in a few to tens of milliseconds is a good target. Exchange HFT firms work in microseconds with colocation.

How much does an HFT platform cost?

The Westernpips Private 7 licence starts at $777 as a one-time payment, plus the VPS and the WP Fast Sources subscription. Institutional exchange HFT costs far more; see the HFT infrastructure cost guide.

Do I need a VPS for HFT?

Yes. A home connection adds 150–300 ms, longer than most price windows. A VPS in the broker’s data centre brings the delay down to a few milliseconds.

Bring the HFT approach to your broker trading

Westernpips Private 7 gives you fast feeds, direct connections and 10+ algorithms in one multi-terminal. Our team answers 24/7: Telegram @westernpips, e-mail westernpips@gmail.com or all official contacts.

Trading Forex, CFDs and crypto involves a high risk of losing money. Read the Risk Warning.

Online Support 24/7

If you have questions about Westernpips Software products please Contact Us.

WhatsApp: +15165847654 WhatsApp: +6282177564757 westernpips.group@gmail.com WeChat Id: wp_globalsupport Subscribe To Our Social Media Pages For Get Latest News