Slashdot Mirror


Algorithmic Trading Glitch Costs Firm $440 Million

alstor writes "Yesterday an update to Knight Capital Group's algorithmic trading software caused massive volume buys and sells, resulting in large price swings on the New York Stock Exchange. As a result, the NYSE canceled some of the trades, but today the loss to Knight has been calculated at $440 million. Ignoring adjustments for inflation, this makes the cost of this glitch almost as much as the $475 million charge Intel took for the Pentium FDIV Bug, which might warrant adding this bug to the list of worst bugs. In light of this loss and the May 6, 2010 Flash Crash, perhaps investors will demand changes from firms using algorithmic trading, since the SEC is apparently too antiquated to do anything about it (PDF)."

33 of 377 comments (clear)

  1. Visual walkthrough and commentary of the mayhem by recoiledsnake · · Score: 5, Interesting
    --
    This space for rent.
    1. Re:Visual walkthrough and commentary of the mayhem by Anonymous Coward · · Score: 5, Insightful

      Thats unfortunate, but what is more undortunate are the cancelled trades. Without the full downside risk high frequency trading takea on an appearance of a club where the superrich bilk regular imvestors and tilt the playing field in theor own favor.

    2. Re:Visual walkthrough and commentary of the mayhem by fuzzyfuzzyfungus · · Score: 4, Interesting

      This feature is by design.

    3. Re:Visual walkthrough and commentary of the mayhem by GameboyRMH · · Score: 4, Funny

      Good point, I can't imagine what the benefits of having huge amounts of money would be without an accompanying unfair advantage in the marketplace.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    4. Re:Visual walkthrough and commentary of the mayhem by alexander_686 · · Score: 5, Informative

      It did not. You could be thinking of 2 different things.

      You might be thinking of the Collateralized Debt Obligations (CDO) Market. Here we have swaps that are built on slices of bonds which are built on mortgages. Or, better yet, synthetic CDOs, where are swaps built upon other CDOs. Instead of doing the hard work of evaluating the thousands of underlying pieces people used algorithms to determine the prices – and then the banks used the CDOs as collateral to borrow money to buy more CDOs. The algorithms made bad assumptions about the statistical on defaults. This is a completely different beast – it moves very slow.

      Or, during the same time, a lot of firms that used statistical algorithmic trades (which Knight is) where losing money. They were using computers to shave pennies of trades – basically eating the lunch of the old line market makes. For years they were quietly chugging away making a constant steam of money and all of a sudden they were losing money. The computers worked fine. The markets were in a state of chaos, the underlying assumptions were no longer valid. A lot of them just turned off their computers for 6 months until the market sorted itself out again.

    5. Re:Visual walkthrough and commentary of the mayhem by HeckRuler · · Score: 4, Interesting

      You're reading that wrong. It's not just "nice" being rich, the "advantage" that the previous coward was talking about is a competitive advantage. They're not playing by the same rules you and I are. It's a bias in the game that favors them. It's systematic cheating. I agree with you that there are rich scumbags who didn't get there honestly. But regardless of how they got rich, the rich aren't (generally) making their income honestly. And that's at our expense. All that money comes from somewhere. The financial industry does not generate wealth. Monopolies, oligarchies, back room deals, and "take-backs" on stock exchanges, these are failures of the free market. They're playing the big business game, and you and I aren't allowed in.
      (Unless we all team up to form an even bigger and more powerful zoid that forces them to play nice)

  2. TFA by Anonymous Coward · · Score: 5, Informative

    For those not interested in going through all of the links just to find the one that links to the relevant article:

    http://www.forbes.com/sites/steveschaefer/2012/08/02/knight-capital-trading-disaster-carries-440-million-price-tag/

  3. Defend flash trading? by Kelbear · · Score: 5, Interesting

    A common defense of flash-trading is that it provides market liquidity in that it provides counterparties to the desired transactions of the rest of the market.

    But I've yet to see someone discuss how the added-value of millisecond liquidity is substantially superior to having exchanges post transactions in 1-sec. intervals to discourage millisecond arbitrage during which no new events have occured and no new market analysis has taken place, only speculation and playing the system against proper investors? Can someone illuminate me on this point?

    1. Re:Defend flash trading? by turkeyfeathers · · Score: 5, Insightful

      Millisecond liquidity is substantially superior to having exchanges post transactions in 1-sec intervals because it allows Goldman Sachs to make more money... duh.

    2. Re:Defend flash trading? by Genda · · Score: 5, Insightful

      What part of wealthy, powerful people with vast computing power screwing the general public do you not understand?

    3. Re:Defend flash trading? by Kelbear · · Score: 5, Insightful

      To elaborate, I've considered the possibility that, in response to an event, the market's ability to "value" that event takes place as a result of a series of transactions from all participants. For example, a 10 cent stock having a negative press release, and thus a participant wants to sell for 5 cents, and someone else takes that deal, pushing the market price down to 5 cents, while another thinks 5 cents is too low and is willing to buy for 7 cents. pushing it back up, then the first participant changes his mind and buys for 6 cents... Eventually the market settles on a revised price by closing time which has accounted for the "value" of the negative implications of that press release. Thus flash transactions between seconds help find that revised price faster, and the ability of many people to determine appropriate pricing is a valuable thing since it moves capital towards deserving investments which have valuable productivity and society as a whole sees higher productivity and potentially the related benefits.

      But if everyone puts in their guess at 00:00:00, then has to wait until 00:00:01, they will still have all of the relevant positions of market players (the only information that has changed) and can factor that into their 00:00:02 positions. Ultimately, all of those would-be flash transactors will just have to accept the 1-sec interval results as the average of information gained from all the thousands of millisecond transactions that would have taken place right? Basically, I don't think millisecond guesses are any faster than 1-second guesses at finding the true value of an investment. It just takes true analysis out of the picture and brings in the potential for flash-crashes from unsupervised automated trading.

      But I'm just a layman here, I'd like someone with more insight or experience to help me make sense of this.

    4. Re:Defend flash trading? by jgtg32a · · Score: 4, Informative

      IIRC it also provides price stabilization as well. Companies don't dump huge amounts of stock all at once they trickle it out little by little as it sells. Apparently that's also part of the reason for that flash crash a few years back. They just dumped all the stock on the market and the algorithms all freaked out.

      The above is all hearsay, my brother is into that stuff and this is what I remember of what I was told.

    5. Re:Defend flash trading? by cp5i6 · · Score: 5, Interesting

      This is also where Knight's algorithm potentially screwed up.

      usually firms will put in limit orders. ie I believe it's this so therefore don't go above or below that target to transact

      Also what you are missing is that NYSE just "matches" trades. 1 second "guessing" ignores that fact that no matter what you guess, if there is no match, there is no trade. And since not all the market makers enter their prices at the same time, not everyone waits around at the same time.

      here's an exaggerated example
      Take enron when they released their financial misreporting scandal.
      Imagine if every one had to wait 1 hour before prices get updated and transacted.
      The stock was at 72$
      Everyone in the world just puts in a short @ 72$ because we ALL know what's goign to happen to this stock
      At the end of the hour, every one and their extended relatives has shorted Enron @ 72$.
      Now, as the exchange, what gets executed? Chances are, nothing. All those buyers on the other side already knew that 72$ is a terrible buy and would have all pulled prices. You now have 0 liquidity.

    6. Re:Defend flash trading? by gl4ss · · Score: 4, Informative

      1 second gives still plenty of edge to machines.
      even 10 secs would.

      but hft isn't even about that - it's about giving the edge to _specific_ machines near the exchange. it's bullshit. that's why they need milliseconds, to screw the rest of the market, to ask for big money for fast connections, to get a piece of the shavings.

      having something like 5 second intervals would give a chance for eliminating the good 'bro aspect of having to locate your machine at specific room near the exchange.

      --
      world was created 5 seconds before this post as it is.
    7. Re:Defend flash trading? by hairyfeet · · Score: 4, Informative

      That's because the entire system is bullshit and if it weren't for the government throwing MASSIVE amounts into the market most of those "experts" would be in the bread lines with the peons. Take a look at the charts, how we went from an average of 20% GDP in the market for over a century to over 400% GDP in the market in the last 30 years. That's the government throwing money into the market both directly with the bailouts and with tax laws like 401b.

      Sooner or later the bubble is gonna burst though, they can't magically print more money forever and as it is now unless you are an insider its all a shell game. You simply can't tell what a company's true value is because so much money has been thrown into the market chasing so few stocks it distorts the whole system, it also rewards the short term only thinking that has trashed so many companies. Get a new CEO, have them do a slash and burn, stock goes up, CEO cashes out and moves on, company is SOL.

      Watch the video, its quite enlightening and has the numbers to back it up.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    8. Re:Defend flash trading? by hairyfeet · · Score: 4, Informative

      Yes it IS bad, because by distorting the market you change it from investment to speculation, which rewards short term thinking above all. As i said you see it over and over, get new CEO, CEO does slash and burn that will destroy the company long term but in the short it raises revenue so stocks go up, CEO cashes out and walks away, company folds.

      And no throwing social security into the mix would just make it that much worse. What is the government gonna do when the stocks take a nosedive? print ever more money? Pouring all that cash into the market just turns it into a giant Ponzi scheme because the government IS on the line for those payments which have to go out every month or people end up on the streets.

      Watch the video i linked to in its entirety and he'll explain why this is bad, he explains it better than I ever could. only about 10 minutes long and I bet you'll change your tune after watching it, basically like the housing bubble it WILL pop, just a question of how truly nasty its gonna be.

      --
      ACs don't waste your time replying, your posts are never seen by me.
  4. Too bad by sanosuke001 · · Score: 4, Interesting

    I'd tell the firm "too bad". It shouldn't be up to the NYSE to make sure companies don't do something stupid. Back in time a ways, when someone tried to game the system and then failed hard they would be ignored and forgotten. Now, with bailouts and do-overs and participation trophies, we ignore hard working americans who don't expect handouts and reward those who don't want to take responsibility for their actions.

    --
    -SaNo
    1. Re:Too bad by pnutjam · · Score: 4, Funny

      They did save the game before running the software.

    2. Re:Too bad by cp5i6 · · Score: 5, Informative

      I'd tell the firm "too bad". It shouldn't be up to the NYSE to make sure companies don't do something stupid. Back in time a ways, when someone tried to game the system and then failed hard they would be ignored and forgotten. Now, with bailouts and do-overs and participation trophies, we ignore hard working americans who don't expect handouts and reward those who don't want to take responsibility for their actions.

      Actually, NYSE did tell them exactly that.

      Knight is on the hook for the full 440mm USD loss. NYSE stuck them with every single trade that they transacted during the particular time span.

      And before you spew the bailouts/ do-overs/hard working american rhetoric, let's actually review the facts related to the topic on hand.

      -Knight is a market maker. Their sole purpose on NYSE to ensure liquidity and make money. They do it by actively stepping in to sell and buy particular securities. There is nothing there that "games" the system.
      -They rolled out a new application mid week and apparently turned it on without fully testing it causing a huge spike in volume
      -The algorithm, rather stupidly, bought high and sold low.
      -NYSE actually called within 30 minutes Knight to inform them that they might be accidentally executing incorrectly
      -Knight basically ignored the warning and let the algorithm run for a full hour.
      -End of the day, Knight is on hook for the entire loss. Not because it was a "mistake" but because these are all legitimate trades with legitimate counterparties and didn't violate any rules.
      -Nyse has stated that and has said there would be no further appeals allowed on the issue.

  5. Why the double standard? by JDG1980 · · Score: 5, Insightful

    Yesterday an update to Knight Capital Group's algorithmic trading software caused massive volume buys and sells, resulting in large price swings on the New York Stock Exchange. As a result, the NYSE canceled some of the trades...

    So if I were to write an auto-trading script using the eTrade API, and as a result of a bug it made bizarre trades and I lost a lot of money, would the NYSE agree to cancel those trades? Didn't think so. Why should the big boys get a second bite at the apple? If you write an algorithm to do trading, then from the POV of the stock markets, that algorithm is you. (Just like the way user permissions work in Unix/Windows.)

    Allowing mulligans and do-overs when well-connected firms make mistakes is only going to reinforce the perception that Wall Street is a casino rigged in favor of the rich.

  6. At least the stock analysts are on the job by cpm99352 · · Score: 5, Funny

    Today, after the stock dropped 50%, analysts are beginning to downgrade the stock from buy to hold. Excellent analysis there!!!

    http://finance.yahoo.com/news/knight-capital-downgraded-hold-buy-155956204.html

  7. Knight really this screwed up... by turkeyfeathers · · Score: 5, Funny

    Some programmer's going to lose their job over this error that resulted in a $440 million loss. If the programmer had done the job properly, Knight would have lost $1 billion and been eligible for a government bailout.

  8. Simple solution by nedlohs · · Score: 5, Insightful

    Don't cancel the trades. If some idiotic "investment" firm lets a computer program spend hundreds of millions of dollars in seconds then good for them. They get to keep the profits and the losses.

    If one of your human trader makes a typo or a computer program has a bug then bad luck, they should have had checks and limits to make sure it doesn't do too much damage to them.

    The rest of us don't get do-overs.

    Heck just last month I when trying to limp in $2 poker game I picked up two $100 chips and threw them forward by mistake - I didn't get do-over even though everyone at the table new I made a mistake, my $198 raise into a $5 pot plays.

    I'm pretty sure if I accidentally typed 100 instead of 10 when making a trade on schwab.com I'm not getting a do-over if the trade completes.

  9. Moral Hazard by wren337 · · Score: 4, Insightful

    No way any of these trades should be unwound. You want to give an algorithm your wallet and let it make lightning trades on your behalf? Fine, but learn to live with the consequences.

    1. Re:Moral Hazard by alphred · · Score: 5, Insightful

      Dude, it's Wall Street. They don't have to live with consequences.

    2. Re:Moral Hazard by th1nk · · Score: 4, Insightful

      No way any of these trades should be unwound. You want to give an algorithm your wallet and let it make lightning trades on your behalf? Fine, but learn to live with the consequences.

      These trades aren't being unwound to protect the company with the "glitch". Remember that for every transaction there is a buyer and a seller.

      Let's say you owned one of those stocks and had a stop loss in place so that your shares would sell if the price dropped by 25%. You would have been hit and sold your stock near the low on a "glitch".

      Still think they should let all the trades stand?

    3. Re:Moral Hazard by ShanghaiBill · · Score: 5, Insightful

      Still think they should let all the trades stand?

      Yes! Anyone dumb enough to use a "stop-loss" order deserves what they get. If you invest in a company, it should be because you think it is worth more than its current valuation. So why would you want to automatically sell it if the prices goes even lower? If the price goes down, you should logically want to buy more, not sell what you have.

      Anyone using stop loss orders does not understand the purpose of investing, and should not be investing in individual stocks.

  10. Re:HFT for dummies by cpm99352 · · Score: 5, Informative

    The problem w/ HFT is buy/sell orders get placed and then immediately (less than a second later) cancelled. The HFT algo puts out the trade with no intent of actually executing the trade.

    That is a violation of the rules, but strangely enough, the SEC sees no need to take action.

    It is also questionable if the HFT algo actually has the cash on hand behind the order at the time the order is placed.

    The idea that HFT injects liquidity is up for debate, as we see the HFTs turned off at times of crisis. Thus, no one will step in to backstop the market. Otherwise if the HFT were working to ensure liquidity there would be no such thing as a flash crash.

  11. Re:Why do we need uSec trading? by bobbied · · Score: 4, Insightful

    Why not just a single trade resolution per day ?

    Because traders would then just trade directly with each other or set up their own exchanges. If Emron was bad, think what would happen if the huge brokers simply decided to just trade directly with each other, or worse they set up "third party" exchanges to trade securities? The exchanges would then loose the fees they charge.

    You can trade stocks and bonds on the street corner, at the farmer's market, in you living room. We just don't do it because it is hard and expensive to trade stock certificates in small numbers. Limiting trades to one per day would just encourage transactions to take place off the exchanges.

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
  12. Re:HFT for dummies by ceoyoyo · · Score: 4, Insightful

    That all sounds very good, until you realize that the HFT is just playing the part of a middleman, adding, well, no value to the exchange. Without the HFT the buyer and the seller would just talk to each other, negotiate a price, and the seller would get more for his stock while the buyer paid less. The only one who loses is the HFT, who is revealed as being superfluous. Middlemen used to be necessary. They're not anymore.

    Transaction costs HAVE come down. It's hard to tell how much of that is due to HFTs, and how much is simply due to improving technology. It used to cost me $0.50 to pay my utilities bills and now it costs me zero. Actual transaction costs would have come down anyway, but it's possible the popularity of HFT helped push the offered price down faster than otherwise.

    I also don't really think there's anything wrong with HFT, per se. If you do it and mess up, too bad. There is a problem though - when HFTs screw up, they screw up big, and the exchanges, governments, etc. seem to think they should be bailed out or have bad trades cancelled (which happened in this case). That gives HFT an artificial advantage, encouraging more people to do it (or give their money to companies that do it).

    Personally, because people are people, I think a one to ten second delay on trades would be an excellent idea. It would level the playing field as well - someone with an office on Wall street wouldn't have an advantage over someone elsewhere anymore.

  13. Re:HFT for dummies by johnjaydk · · Score: 5, Insightful

    First, the added liquidity from HFT market makers are largely fake. They cancel 90 percent of their orders before they are executed.

    Second, these market makers trade at a discount at the exchanges due to the maker-taker deals. This tips the playing field in their favor.

    Third, HFT outfits utilize special order types that are moved to the front of the execution queue and therefore they can do front running on a massive scale. This causes regular buyers and sellers to take a hit.

    HFT is such a dominant force in the equity market that it amounts to 75 percent of all US stock trades. This have caused the the average time that an investor holds a stock to drop to 11 seconds. With those numbers, the consequences for volatility are pretty obvious.

    The best part is that the exchanges are in on the scam and are beholden to the HFT outfits least they take their business elsewhere.

    All of this comes out of Your 401(k) and other long term investors not to mention the damage to the economy at large. Companies are already backing away from raising capital in the stock market because it's so obviously rigged. Likewise, investors are moving into dark pools in order to protect themselves from excessive front running.

    --
    TCAP-Abort
  14. Re:HFT for dummies by rundgong · · Score: 4, Interesting

    ... they are market makers. They find a willing buyer and a willing seller ...

    Then they are not making any markets. It's not like the real buyer and seller wouldn't find each other if the HFT was not there. It's just that they would find each other a millisecond later.
    All they do here is steal some profit from the real investors. If the buyer is willing to buy at 3 and the seller is willing to sell at 1, they should meet at 2. Not give the difference to the man in the middle who happened to have a shorter network cable in the stock exchange server room.

    Since the introduction of high frequency trading, transaction costs have fallen considerably, saving plenty of people a lot of money.

    I would say you have confused correlation for causation.
    Computers getting faster and cheaper have made transaction costs go down. HFT just happened to grow big at the same time.

    Now, let me turn the question around. What is wrong with high frequency trading? Other than people ranting about something they have made no effort whatsoever to understand, I haven't seen a single good argument against it.

    Thats exactly what I was thinking about people arguing for it. I have never heard a single good argument for it.
    The real investors don't benefit, and the companies don't benefit either. But hey, the man in the middle makes a fortune until he crashes the market, so that's gotta be worth it, right?

    HFT was originally blamed for the 2010 "flash crash" but the full investigation found that HFTing actually made is less severe.

    I have never heard of this before, but I am very interested in a citation so I can read more about it

  15. Re:HFT for dummies by sjames · · Score: 4, Interesting

    Imagine If I walked around the grocery store and every time someone went to take something off the shelf I knocked them down and cleared the shelf. After they leave in frustration, I sell them what they wanted for a slightly higher price. If they say no, I toss the food back on the shelves and tell the grocer "just kidding!". I am a high speed grocery trader!

    For some reason, the cops don't arrest me. Perhaps because they know that if they look the other way, I might hire them for more than they will ever make as a cop.