How to Make Money in Microseconds
by Donald Mackenzie (excerpt)
Human beings can, and still do, send orders from their computers to the matching engines, but this accounts for less than half of all US share trading. The remainder is algorithmic: it results from share-trading computer programs. Some of these programs are used by big institutions such as mutual funds, pension funds and insurance companies, or by brokers acting on their behalf. The drawback of being big is that when you try to buy or sell a large block of shares, the order typically canât be executed straightaway (if itâs a large order to buy, for example, it will usually exceed the number of sell orders in the matching engine that are close to the current market price), and if traders spot a large order that has been only partly executed they will change their own orders and their price quotes in order to exploit the knowledge. The result is what market participants call âslippageâ: prices rise as you try to buy, and fall as you try to sell.
In an attempt to get around this problem, big institutions often use âexecution algorithmsâ, which take large orders, break them up into smaller slices, and choose the size of those slices and the times at which they send them to the market in such a way as to minimise slippage. For example, âvolume participationâ algorithms calculate the number of a companyâs shares bought and sold in a given period â the previous minute, say â and then send in a slice of the institutionâs overall order whose size is proportional to that number, the rationale being that there will be less slippage when markets are busy than when they are quiet. The most common execution algorithm, known as a volume-weighted average price or VWAP algorithm (itâs pronounced âveewapâ), does its slicing in a slightly different way, using statistical data on the volumes of shares that have traded in the equivalent time periods on previous days. The clock-time periodicities found by Hasbrouck and Saar almost certainly result from the way VWAPs and other execution algorithms chop up time into intervals of fixed length.
The goal of execution algorithms is to avoid losing money while trading. The other major classes of algorithm are designed to make money by trading, and it is their operation that gives rise to the spasms found by Hasbrouck and Saar. âElectronic market-makingâ algorithms replicate what human market makers have always tried to do â continuously post a price at which they will sell a corporationâs shares and a lower price at which they will buy them, in the hope of earning the âspreadâ between the two prices â but they revise prices as market conditions change far faster than any human being can. Their doing so is almost certainly the main component of the flood of orders and cancellations that follows even minor changes in supply and demand.
âStatistical arbitrageâ algorithms search for transient disturbances in price patterns from which to profit. For example, the price of a corporationâs shares often seems to fluctuate around a relatively slow-moving average. A big order to buy will cause a short-term increase in price, and a sell order will lead to a temporary fall. Some statistical arbitrage algorithms simply calculate a moving average price; they buy if prices are more than a certain amount below it and sell if they are above it, thus betting on prices reverting to the average. More complicated algorithms search for disturbances in price patterns involving more than one companyâs shares. One example of such a pattern, explained to me by a former statistical arbitrageur, involved the shares of Southwest Airlines, Delta and ExxonMobil. A rise in the price of oil would benefit Exxonâs shares and hurt Deltaâs, while having little effect on Southwestâs (because market participants knew that, unlike Delta, Southwest entered into hedging trades to offset its exposure to changes in the price of oil). In consequence, there was normally what was in effect a rough equation among relative changes in the three corporationsâ stock prices: Delta + ExxonMobil = Southwest Airlines. If that equation temporarily broke down, statistical arbitrageurs would dive in and bet (usually successfully) on its reasserting itself.
No one in the markets contests the legitimacy of electronic market making or statistical arbitrage. Far more controversial are algorithms that effectively prey on other algorithms. Some algorithms, for example, can detect the electronic signature of a big VWAP, a process called âalgo-sniffingâ. This can earn its owner substantial sums: if the VWAP is programmed to buy a particular corporationâs shares, the algo-sniffing program will buy those shares faster than the VWAP, then sell them to it at a profit. Algo-sniffing often makes users of VWAPs and other execution algorithms furious: they condemn it as unfair, and there is a growing business in adding âanti-gamingâ features to execution algorithms to make it harder to detect and exploit them. However, a New York broker I spoke to last October defended algo-sniffing:
I donât look at it as in any way evil ⌠I donât think the guy whoâs trying to hide the supply-demand imbalance [by using an execution algorithm] is any better a human being than the person trying to discover the true supply-demand. I donât know why ⌠someone who runs an algo-sniffing strategy is bad ⌠heâs trying to discover the guy who has a million shares [to sell] and the price then should readjust to the fact that thereâs a million shares to buy.
Continue Reading
Donald MacKenzie is a professor of sociology at Edinburgh University. His books include An Engine, Not a Camera: How Financial Models Shape Markets and Material Markets: How Economic Agents Are Constructed.