Saturday 4 August 2012

HFT Algo Goes Crazy, Costing Knight Frank 70% Share Price


The Algo Trading Software of Property Development company Knight Frank Ltd went berserk on the 1st of August, losing it a total of $440million USD in 45 mins. The activity was so severe, it affected the NYSE. This outlines the dangers of connecting computers to accounts with large amounts of money. The smallest change in code can turn a money maker into the perfect money burner.

Copied from ZeroHedge

We all know something went horribly wrong in various NYSE-traded stocks today between 9:30 am and 10:15 am. So wrong in fact that the NYSE had to step in and cancel numerous trades in 6 symbols. However it did not DK millions of other trades in 134 other symbols, the vast majority of which we assume traded errantly due to the market making of Knight Capital (as admitted by the company), which today saw its biggest drop ever since going public on volume about 60 times greater than its average. We also all know that one should buy low and sell high. At least that is what human traders are taught, and that is what they attempt. Because if one consistently does the opposite, one will simply run out of money. Well, the opposite is precisely what the berserk algo in Knight's Market Making group may have done if Nanex, which has done a forensic analysis of one of the trades in question, is correct. In other words, instead of at least attempting to provide liquidity via limit trades, Knight's algorithm acted as a market order... gone horribly wrong. As the third chart below shows what the algo did with furious repetition and steadfast consistency was to buy at the offer, and sell at the bid, in other words buy high and sell low. Over and over and over and over. As Nanex laconically notes, "In the case of EXC, that means losing about 15 cents on every pair of trades. Do that 40 times a second, 2400 times a minute, and you now have a system that's very efficient at burning money." Which also means that by not DK'ing several hundred million prints, the NYSE may have just thrown Knight under the bus, because the market maker is suddenly on the hook for tens if not hundreds of millions in inverse market making profits.


Here we will assume that readers are sufficiently familiar with market structure to know that market makers only participate in the market in order to collect liquidity rebates, i.e., to be the limit on the bid which is hit, or the offer which is lifted. What Knight did was effectively the opposite, and it also collected the opposite of a rebate: i.e., it paid someone else for no reason at all... well technically to withdraw liquidity. However liquidity that led to creation of losses not profits.

Naturally, when the entire logic of trading was perverted courtesy of Knight's busted algo, everything went Bizarro Day, and stocks went higher, because they went higher, and the higher they went, the greater the incentive for the algo to keep pushing the stock higher. This explains not only the volume surge, but also the shocking price moves in some stocks such as China Cord Blood which exploded several hundred percent higher before someone had to finally step in. And what is most notable is that because there were neither fat finger trades, nor busted algos that took out the entire bid or offer stack in one trade, thus triggering circuit breakers, but a slow methodical bleed, there was no reason under the current SEC order cancellation methodology to bail out Knight and its berserk algorithm.

Simply said: today may be the single worst day in Knight's market making history. And sadly, as the NYSE already noted minutes before the market close, the decision to not cancel any more trades is "not subject to appeal."


From Nanex:
What really happened, or how to lose a ton of money, fast.

What follows should strike you as crazy. If it doesn't, read it again, because it is.

The following 3 charts plot non-ISO trades (regular trade condition) reported from NYSE in the stock of Exelon Corporation (symbol EXC). By plotting and connecting only regular trades from NYSE we get a clearer picture of the nature (some might say horror) of this event.

1. EXC One second interval chart. Circles are trades, the blue coloring is the NYSE bid and ask which is mostly covered by gray lines that connect the trades.


2. Zoom of above chart showing about 27 seconds of data. Now the gray lines connecting trades are more clearly visible. NYSE's bid/ask is the blue shaded area (the bid price is the bottom of the shading, and the ask is the top).



3. Zooming in to a 1 millisecond interval chart, we can see one second of data which shows 39 trades.
Note how the trade executions ping pong from bid to ask. As if someone is buying at the offer, then 10 ms later selling at the bid, and so forth. It turns out, the gray shading you see in the first chart of EXC is from this alternating between buying and selling. That's right, almost all these trades alternate between buying at the offer and selling at the bid, which means losing the difference in price. In the case of EXC, that means losing about 15 cents on every pair of trades. Do that 40 times a second, 2400 times a minute, and you now have a system that's very efficient at burning money.

The resulting fuckup not only cost Knight Frank $440 million USD, but caused their share price to drop by 70%, which is a loss of alot of money for a company that handles $817Billion USD. 

Knight Frank's CEO has been busily doing the rounds making a bunch of platitudes on the media, 

OF COURSE NOT, THIS IS AN ANOMALY. YOU CANNOT KEEP PEOPLE FROM DOING STUPID THINGS WHETHER IT IS WRITING IN PERFECT CODA BUYING THE WRONG SOFTWARE AT THE WRONG TIME. THAT IS WHAT HAPPENS WHEN YOU HAVE A CULTURE OF RISK.
YOU STAY AWAY FROM THE DAY- TO-DAY MINUTIA AND LOOK FOR THE LONG TERM, AS AN EQUITY INVESTOR, IT WILL WORK OUT.
WE'RE OPEN FOR BUSINESS. WE GOT RID OF THE BAD TRADES AND FREE UP A LOT OF CAPITAL. WE HAVE EXCESS CAPITAL RIGHT NOW

The result?


KNIGHT BONDS FALL 13.125 CENTS TO 70 CENTS ON DOLLAR
Quite soon we may find out what it means to trade in a market which has just lost one of its key market makers, responsible for up to 15% of overall liquidity.

However, one thing that has yet to be mentioned is the possibility of sabotage. By making a very simple change in the code, the resulting trades pushed up the prices of over 140 different stocks. Anyone who had advance knowledge would have made a killing. As to who would have been behind it, who knows? It could have been the Chinese, apparently Chinese Cord Blood was pushed up 400%.
Or it could have been another American Bank, anxious to take over Knight Frank's massive property portfolio, which is worth over $8 Billion USD. Also, of course, anyone who shorted Knight Frank stock would have made a fortune too.

The increasing use of HFT algo software is going to make hacking these firms more and more lucrative. The ability to make a large financial institution shit itself, especially if it has a reputation to defend and doubly if the incident affects the broader exchange is a sure fire source of money when so many other scams are drying up at the moment because of increased bank scrutiny.

I suspect that this wont be the last time we see something like this. I very much doubt that a company would admit to being hacked. It's one thing if they made the mistake, many companies have survived 'mistakes' that cost them billions, but to say that they were hacked and lost all that money would make them look like complete idiots.

Christopher Carrion



No comments:

Post a Comment