High-frequency trading and the $440m mistake
Published: 11th Aug 2012 00:47:23
Computers and clever maths enable traders to buy and sell in the blink of an eye. But does high-frequency trading make matters worse when things go wrong?
A strange thing happened earlier this month. The New York Stock Exchange launched a new electronic trading platform.
A company called Knight Capital had created a new computer program to link up with the new platform in order to trade shares on it. The stock market opened, and Knight Capital prepared to launch its new software.
"There was some problem with the program," says Felix Salmon, finance blogger for Reuters in New York.
"We don't know exactly what. They switched it on and immediately they started losing literally $10 million [£6.4m] a minute. It looks like they were buying high and selling low many, many times per second, and losing 10 or 15 dollars each time. And this went on for 45 minutes. At the end of it all they wound up having lost $440 million [£281m]."
Oops. This was the latest chapter in the story of something called "high frequency trading". Investors have always valued being the first with the news. Nathan Rothschild, it is said, augmented his fortune after a carrier pigeon brought him the news that Napoleon had been defeated at Waterloo.
But high frequency trading is different. Algorithms - step-by-step mathematical procedures - generate automatic trades, conducted by computers, each one racing to be first. And while some computers do receive news about the outside world in electronic format, many high-frequency trading algorithms are simply responding to the hectic world of the electronic trading floor.
Humans still watch the systems, but the computers move far too quickly for us to react to everything they do - and at Knight Capital, the computer glitch meant the company was making trades it didn't intend to make. That's how to lose almost half a billion dollars in a little over half an hour.
To give you a sense of how fast high-frequency trading can be, in the time it takes Usain Bolt to react to the starting pistol, a high-frequency trading platform could complete about 165,000 separate trades.
Now this isn't quite as insane as it sounds. These computers, all competing with each other, are a lot cheaper and more efficient than human traders trying to match bids to buy and offers to sell. So within reason, automated, high-frequency trading is a good thing. But it's possible to have too much of a good thing.
On 6 May 2010, the UK was preoccupied with a General Election. But on the other side of the Atlantic, a very different story was unfolding.
"We were all sitting around in the middle of the afternoon on a relatively slow news day," says Salmon. "Suddenly the Dow Jones was down 600 points in a matter of five minutes. There was this huge crash for no reason. And then 10 minutes after that it went back up again. And no-one knew what had happened."
What may have happened was that somebody rather clumsily tried to make a very large trade on an electronic exchange called Globex. As the price dropped sharply in the process of trying to find willing buyers, the algorithms of the high-frequency traders plugged into Globex behaved unpredictably.
The "flash crash", as it was called, wasn't just what happened when the algorithms were in a frenzy - it was also what happened when humans pulled the plug on all of these individual algorithms.
"A whole bunch of high-frequency traders saw a bunch of weird stuff going on in the market which didn't make any sense," says Salmon.
Listen to More or Less on BBC Radio 4 and the World Service, or download the free podcast
"And they said 'you know what, we're all just going to hit our off buttons at the same time.'
"And what that did was it meant there was no liquidity in the market. There was no-one buying and selling. You had some crazy trades being done... stocks being sold for literally one penny."
What actually stopped the flash crash was absurdly simple. The exchange itself, Globex, shut down.
Donald Mackenzie, a sociologist at the University of Edinburgh who studies financial markets, says: "Globex has got a program built into it called the 'stop logic functionality.' And in this case it stopped the system trading for just five seconds.
"But that was enough time to halt the downward spiral. It gave human traders the chance to just take a quick glance at the rolling news feeds to discover that nothing catastrophic in the wider world seems to have happened, and to think 'well here, perhaps, is buying opportunity.'"
Mackenzie divides high-frequency trading into five categories.
First, there are algorithms designed not to lose money while executing a trade that's been placed by a human. If you try to buy a large block of shares all at once, for instance, you might find that there aren't enough potential sellers and you'll have to wait for others to show up.
Other computers may see that you've got this large unfilled order and exploit it, perhaps by snapping up shares and selling to you at a profit. To avoid this problem you can ask a computer to slice up your big trade into smaller, more subtle pieces.
Then there are algorithms designed simply to make money by finding buyers and sellers with a little margin between them.
Third, there are algorithms which find statistical relationships between different shares or bonds, and when the statistical relationship fails to hold - even for a moment - they jump in and make a bet that normal service will be resumed. These are called statistical arbitrage algorithms.
So far, so good - it would be hard to find many people in finance who would consider these three types of high-frequency trading to be immoral.
But there are two rather more predatory strategies. One is called algo-sniffing. Here, a super-fast computer tries to find other computers going about their everyday business of buying or selling shares, and figures out what they're going to do and when.
The algo-sniffer can then get ahead of the game and exploit the slower computer. And of course you could have algo-sniffer-sniffers and algo-sniffer-sniffer-sniffers in a high-frequency arms race. No wonder speed can be so important.
And finally, a particular sub-category of the algo-sniffer is the spoofer, which deliberately makes fake offers designed to lure other computers to show their hands, then cancels the offers. Spoofing might be illegal, or at least against the rules of stock exchanges, but it's hard to prove that it's going on.
Andrew Haldane, executive director for financial stability at the Bank of England, is increasingly interested in how high-frequency trading works - and what the future might hold.
"What we have out there now is this complex array of multiple mutating interacting machines, algorithms. It's constantly developing and travelling at ever higher velocities. And it's just difficult to know what will pop out next. And that's not an accident waiting to happen, that's an accident that has been happening with increasing frequency over the last few years.
"We shouldn't wait for the equivalent of the Space Shuttle disaster before remedying the situation. We already have enough light on the dashboard flashing red to want to do something differently."
He says he wants more powerful "circuit breakers" built into the system, designed to pause trading before colliding algorithms send it spinning out of control. He also suggests a sort of "non-transaction" tax to deter traders from clogging the system with trades they then cancel before executing.
But it's not obvious that such measures could successfully be applied to such a rapidly-evolving and global side of the financial system. In the meantime, we will have to wait and see what will "pop out next" - and we have to hope that, whatever it is, the system copes.
Additional reporting by Charlotte McDonald
At 01:00:24 in HeadlinesThe UK government has allocated £290m for new international science projects.
At 00:57:03 in HealthThe NHS has lost nearly 4,000 senior nursing posts since 2010, putting patient care at risk, warns the Royal College of Nursing (RCN).
At 00:56:45 in PoliticsRAF reconnaissance aircraft will be sent to monitor the crisis in Ukraine, the Ministry of Defence has said.
At 00:56:24 in HealthChildren in the UK are eating far too much salt, with much of it coming from breads and cereals, research suggests.
At 00:49:07 in Northern IrelandA man has been shot in both legs in an attack in Londonderry.
At 00:43:36 in HeadlinesFour woodlands are set to be created across the UK as part of a £12m project by the Woodland Trust to mark the centenary of the World War One.
At 00:41:20 in EntertainmentCheryl Cole has confirmed she is to rejoin the X Factor, along with Simon Cowell, for the show's 12th series.
At 00:32:29 in WorldA new report from researchers at Oxford University argues that large dams are a risky investment - soaring past projected budgets, drowning emerging economies in debt and failing to deliver promised benefits . Do they ever really make sense?
At 00:23:05 in BusinessThe UK's winter floods have given the jobs market an "unexpected boost" as new staff are hired to cope with the clean-up, Manpower has said.
At 00:22:28 in WorldThousands of victims of human rights violations committed during 18 years of military rule in Bolivia are being denied access to justice and compensation, according to Amnesty International. Paula Dear and Amaru Villanueva Rance report from La Paz on allegations that there is a lack of political will to uncover the truth.
Harvard CitationBBC News, 2012. High-frequency trading and the $440m mistake [Online] (Updated 11th Aug 2012)
Available at: http://www.ukwirednews.com/news/1445668/High-frequency-trading-and-the-440m-mistake [Accessed 11th Mar 2014]
News In Other Categories
A rugby coach who attacked a linesman at an under-14s match in Devon has been sent on an anger management course.
A man has been shot in both legs in an attack in Londonderry.
Police have reported three people to the procurator fiscal and warned a further six after a crackdown on illegal motorcyclists in Fife.
Cheryl Cole has confirmed she is to rejoin the X Factor, along with Simon Cowell, for the show's 12th series.
Football Association chairman Greg Dyke says a complete ban on players and club staff betting on football matches could soon be introduced.
Police control rooms in Cambridgeshire, Hertfordshire and Bedfordshire could be run by one force HQ to save millions of pounds, the BBC has learned.