Algorithmic Trading
Algorithmic trading is the use of a computer program, rather than a person deciding in the moment, to place orders according to rules written in advance. The rules can be trivial or elaborate, and the speed can be a millisecond or an hour; what defines the category is only that the decision to send an order is made by code executing a specification, not by a human looking at a screen and choosing.
The single most useful thing to understand about the field is that it splits into two activities that share almost nothing beyond the word. Execution algorithms take a decision that has already been made — buy two million shares — and work out how to carry it out without moving the price against you. A VWAP algorithm slices the order across the day to track the volume-weighted average price; an implementation shortfall algorithm trades faster when the price is favourable and slower when it is not; an iceberg shows only a fraction of the order at a time. None of these has any opinion about whether the stock is worth buying. Strategy algorithms do the opposite: they decide what to trade and when, from signals in price, volume, fundamentals or anything else, and typically hand the resulting order to an execution algorithm to carry out. A fund manager choosing the position and an execution desk filling it are two different jobs, and the software reflects that.
The second thing worth separating is speed from automation. High-frequency trading is a subset of algorithmic trading — the part that competes on latency measured in microseconds, holds positions for fractions of a second, and depends on co-located servers and direct exchange feeds — but the two are routinely treated as synonyms, and that is wrong in a way that matters. A pension fund's VWAP algorithm working an order over six hours is algorithmic trading with no speed component at all. A rebalancing script that runs once a month is algorithmic trading. The overwhelming majority of automated order flow has nothing to do with the latency race, and the arguments about HFT — queue position, order-to-trade ratios, fleeting quotes — simply do not apply to it.
For an individual, the accessible end of this is rule-based automation on a retail platform. A grid bot on a crypto exchange places a ladder of buy orders below the current price and sell orders above it, buying each step down and selling each step up: set a grid on Ethereum between $2,000 and $3,000 in fifty-dollar steps, and the bot mechanically accumulates as it falls and distributes as it rises, without anyone watching a market that never closes. The strategy has a clearly defined failure mode — a sustained move outside the grid leaves it fully invested at the wrong end, or fully out — which is a virtue, because it can be stated in advance. Most retail automation is of this kind: a rule simple enough to describe in a sentence, running continuously so that it does not depend on attention.
The appeal is consistency. A program applies its rules identically at three in the morning after four losing trades, which is exactly when a person applies them worst. The risk is the same property viewed from the other side: a flawed rule is executed just as faithfully, and at machine speed a mistake compounds far faster than a human can intervene. The well-known disasters are all versions of this — a deployment error at Knight Capital in 2012 sent erroneous orders for forty-five minutes and cost the firm roughly $460 million, more than its market value at the time. The mundane version is more common: a strategy fitted to historical data that fails immediately in live trading, or a bot that keeps running after the conditions it was designed for have gone. This is why the boring parts — position limits, a hard maximum loss that halts the system, testing on data the strategy was not built on, and a way to stop everything manually — are not optional extras but the substance of doing it properly.
Algorithms account for the majority of trading volume on major stock exchanges and in forex, and dominate futures markets in commodities such as oil and gold. What differs between markets is infrastructure rather than principle: equities and futures offer central order books, precise timestamps and reliable volume data, forex is fragmented across venues with no consolidated tape, and crypto combines the most open access — public APIs, no approval process, markets that never close — with the least consistent data quality and the weakest protection when a venue fails.