Home / Wiki / A / Algorithmic Trading

Algorithmic Trading

Trading and SpeculationUpdated 13 Nov 2026

Algorithmic trading is the practice of using computer programs to decide, place and manage orders in financial markets according to rules written in advance. The rules can be as simple as "buy 10,000 shares spread evenly through the day" or as complex as statistical models that react to price moves in microseconds. Banks, asset managers, hedge funds, proprietary trading firms and, increasingly, retail traders all use it. In crypto markets the same idea is sold to retail users as crypto trading bots, and every strategy rests on an algorithm and indicators such as the golden cross.

The term covers two broad uses. Execution algorithms help a large investor buy or sell without moving the price, while strategy algorithms try to make a profit on their own. A fast subset of the second group is high-frequency trading. Algorithmic trading is now the normal way orders reach equity, futures and foreign-exchange venues, and it is supervised by securities regulators such as the US Securities and Exchange Commission and, in the European Union, under MiFID II.

01

Algorithmic trading in plain terms

Think of a shopping list with instructions attached. Instead of standing in the shop deciding what to buy, you hand a helper a note: "Buy bread only if it is under two dollars, and never buy more than five loaves at once." The helper follows the note exactly, all day, without getting tired or emotional.

An algorithm is that note, and the computer is the helper. It watches prices, checks the rules and sends orders far faster than a person could. The benefit is speed and discipline. The danger is that the helper never questions the note, so a badly written rule can be followed thousands of times before anyone notices.

02

How algorithmic trading works

A trading system has a few common parts. A data feed delivers prices and the state of the order book. A strategy engine applies the rules and decides what to do. An order manager sends instructions to an exchange or broker, usually through an application programming interface, and a risk layer checks every order against limits on size, price and total exposure before it leaves the firm.

Strategies are usually tested first on historical data, a step called backtesting, and then run with small amounts of capital. Firms that compete on speed place their servers in the same data centre as the exchange, known as co-location, to shave time off each message.

03

Common strategies

  • Execution algorithms. These split a large parent order into many small child orders, for example by following the day's typical volume pattern, to reduce market impact and slippage.
  • Market making. Programs post buy and sell quotes at the same time and earn the spread, a role traditionally played by a market maker and important for liquidity.
  • Arbitrage. Systems look for the same asset priced differently in two places and trade both sides; see arbitrage.
  • Trend and mean-reversion models. These bet that recent moves will either continue or reverse, using signals from price, volume or news.
  • Index and fund flows. Algorithms handle the regular trading needed for ETF rebalancing and for tracking benchmarks.

The same tools are used outside stocks. In foreign exchange, banks stream prices on every currency pair by algorithm. In crypto, bots trade on each centralized exchange and against the pricing formulas of automated market makers on decentralized venues, often in perpetual futures.

04

Risks and notable failures

Speed magnifies mistakes. On 6 May 2010 US stock indexes fell sharply and recovered within minutes in what became known as the Flash Crash; the joint SEC and CFTC report pointed to a large automated sell order in futures meeting thin liquidity. On 1 August 2012 Knight Capital, a US broker, lost about $440 million in under an hour after old code was accidentally switched on during a software update. Both events are standard examples of operational risk in automated trading.

Algorithms can also be used to break the rules. Practices such as spoofing (placing orders meant to be cancelled) and wash trading are forms of market manipulation, and regulators use their own surveillance software to detect them. Critics add that the race for speed favours large firms and that some trading moves into dark pools, away from public prices.

05

Regulation

In the United States, SEC Rule 15c3-5, the Market Access Rule adopted in 2010, requires brokers that give clients access to exchanges to have pre-trade risk controls, such as credit and order-size limits. In the EU, Article 17 of MiFID II requires firms engaged in algorithmic trading to have resilient systems, trading thresholds, kill switches and testing, to notify their national regulator and to keep records that supervisors can request. High-frequency traders face extra record-keeping duties. Many crypto venues have no equivalent rules, which is one reason bot activity there is harder to supervise.

For individual investors, simpler forms of automation include copy trading and broker-supplied order types. These do not change the basic point: an algorithm only follows the rules it is given.

Last updated 13 Nov 2026