High Frequency Trading Is Hosing You: Part 1

crispydocUncategorized 9 Comments

I buy my books later and cheaper. Waiting a few years means I score pristine hardcovers for a buck at a Friends of the Library book sale, which I savor and then donate back in a virtuous cycle of frugality and reading. This is how I came across Flash Boys by Michael Lewis, published 6 years ago and devoured on my sofa over the past few days.

Lewis is a talented writer, and he brings finance alive through vivid characters facing difficult moral questions despite tremendous financial temptations. Having worked at Salomon Brothers in the 80s, he has an insider's understanding of the flawed personalities and false veneer of stability on which the equities market rests. He specializes (and delights) in unveiling how average investors are exploited by shady actors incentivized to exploit loopholes that stay one step ahead of regulation.

What follows is a highly simplified abstraction intended to give a newbie a basic understanding of how high frequency traders (HFTs) operate. If this piques your interest, I strongly encourage you to read the book.

The central tenet of Flash Boys is the law of unintended consequences: SEC regulation intended to fix one vulnerability in the market unintentionally creates a new vulnerability which enables rapacious behavior an order of magnitude greater than the one it intended to outlaw.

It was the 1980s: thin ties, cocaine, and Patrick Nagel art were all the rage. The vulnerability to be solved was that investors depended on phone calls placed to human brokers to execute the investors' desired transactions in a timely manner.

During the 1987 stock market crash, brokers on Wall Street stopped answering phones to avoid having to buy stock as the crash commenced, which was counter to the brokers' financial interests. Legislation enacted by the SEC moved equity transactions online to reduce the potential for human interference with investing activity.

The unintended consequence was that the new computer-based market technology created opportunities for savvy technologists to learn market moves in advance of typical investors, allowing them to manipulate markets for personal profit at the expense of average investors.

Market exchanges where stocks are bought and sold are distinct entities located in geographically distant areas (i.e., New York, Chicago). The electronic signals used to execute buy and sell orders travel through systems that take different amounts of time to process data, with older and slower computer systems lagging newer and more sophisticated systems. Additionally, the quality and length of fiber optic cable through which the signals travel affect the speed with which signal transmission occurs.

High frequency traders (HFTs) learned that by investing heavily to outspend competitors, they could pay top programmers to design speedy new software to operate on expensive, state of the art hardware to pass information preferentially through private, higher quality fiber optic cables designed to minimize the lag time from when an order was placed to when it arrived at an exchange to be executed. These advantages were so pronounced that firms paid high fees to "co-locate" their computer systems in buildings closer to the exchanges to further reduce lag time.

The exchanges, which are privately held, for-profit entities, were only too happy to oblige the requests for co-location as a novel revenue stream. They quickly realized that selling proximity to their servers was a service that HFTs were willing to pay dearly to obtain to the exclusion of their competitors.

These technological advances, which amounted to milliseconds, created an accumulation of marginal gains in speed that, when taken as a whole, were critical in amassing billions of dollars in profits while minimizing risk to the HFTs.

Allow me to present a fishing analogy. This is intended to be an illustration of one of many ways that HFTs front-run ordinary investors as well as banking competitors. (They employ additional strategies beyond the scope of an introductory article written by a simpleton like me.)

An HFT might "bait" multiple exchanges at the same time by placing small orders to sell a stock at a particular price. When one or two purchase orders from a client struck their lures and "took the bait" by purchasing their stock at the offered price, this information was relayed more rapidly to the HFT computer systems than it was to average investors. Advanced algorithms residing in the HFTs computer systems were able to interpret the market activity and respond faster than competitors to use the information for profit.

For example, an investment banker at an office in New York sends purchase orders to both the New York Stock Exchange and the Chicago Stock Exchange at the same time as part of a large purchase of a single stock. Each order is routed through a set of complex fiber optic cables with distinctive, consistent lag times. A system designed to receive those orders (by setting "bait" above) and interpret those lag times can often recognize which bank was the source of an order and, critically, infer those cases where these smaller purchases are likely to be preludes to larger purchases yet to come.

Back to our analogy, those initial strikes of bait reveal to the HFT that a school of fish is about to make massive purchase orders. Using their technological advantages, the HFTs would "front-run" the buyer's big order by purchasing all available shares of that stock at a lower price only to immediately turn around and offer the same stock for sale at a higher price, pocketing the difference.

This rapid turnover strategy was unbelievably low risk to the HFTs, as evidenced by the fact that rarely had a year where they lost money. The trades were executed in a matter of milliseconds - and based on the low likelihood that volatile price changes would occur in the fraction of a second during which the HFT actually owned the stock - were sources of perpetual profit as long as the advantages were maintained.

The way this appeared to our investment banker, who was watching the market in real-time on a monitor on a much slower time scale than the milliseconds in which the HFTs operated, was that she placed what she thought was a good faith and presumably instantaneous buy order for 10,000 shares of Widgets Inc. when she saw a stock selling for the favorable price of $1.00, but by the time her order was executed the average price of your order had been jacked up to $1.10. The market she saw was not the market she experienced when she pushed her button.

More to come in part two...

Comments 9

  1. I saw a movie, the Hummingbird Project that was fictitious but showed the things individuals would do to gain this advantage.

    Was interacting because they were spending millions of dollars to gain 2 or 3 ms advantage.

  2. Now you see the power of narrative. The purchaser of Widgets is living in the past, giving her a 10% disadvantage compared to the actual market living in the present. Who says the market can’t be timed? Did she feel the hand in her pocket?

  3. CD,

    Great introduction to a fascinating topic.

    As you know, I’m an avid day trader. My personal take — when done well, HFT can be enormously profitable. But it doesn’t mean that the retail trader can’t profit along with them. In your example above, nobody forces you to buy the $1.00 stock at $1.10. I know many traders that use market orders, but 99% of my trades are limit orders, so I only get executions at my desired price. It also means that I won’t chase price action unless there is sufficient forward momentum to justify the risk. On a more advanced level, I mostly ignore the ‘bait’ by viewing Level 2 market data at arms length.

    The problem with most retail traders is not that the HFT’s are stealing their money. Rather, the real issue is that the majority of retail traders have no idea what they are doing in the first place.

    1. Day trading is a specific exercise played out against a specific back drop trying to shave bp against the liquidity and has virtually nothing to do with placing say a macro trade. The stock you day trade doesn’t even matter. All that matters is the momentum of what ever you are trading and the ability to measure rate of change of the momentum so you know when to get out. Knowing how to day trade has nothing to do with placing say a macro trade. The liquidity of the market and the nature of the trade for me determines market vs limit orders. If I want into a fast and directional well capitalized market for a longer term trade, I have no problem executing a market order. Missing half a buck on the front for a $20 profit beats hell out of missing the $19.50 in my bank account if the limit forgot to pull the trigger. Limit orders just make the order active they do not guarantee the price.

      1. Curious why you are bringing up macro trades on a discussion of HFT? The entire name of the game of HFT (and day trading) is highly repetitive small profit trades scaled to your buying power and risk tolerance.

        Actually, the stock you trade matters immensely. Choosing a stock without the requisite volume and volatility makes “shaving bp” unnecessarily challenging. Even with massive momentum, if the bid/ask spreads are too wide, it’s not a trade I would take. Also, the $0.50 profit that you disregard is exactly how a day trader pays her bills.

        As I said, many traders use market orders. I don’t. But I can order and adjust a trade, by hand, in fewer seconds than most folks would take to type a ticker symbol (thanks to quick keys and shortcuts).

        We likely have vastly different approaches on how to trade. However, I think the real beauty of the market is in the infinite ways there are to profit from it. And without a doubt, there is plenty of room in the market for all types.

        All the best,
        -tsmd

  4. Wall Street always was designed to steal the money of the little guy.
    Fees are the feeding material of AUM (assets under mangement).
    Be they managing fees, marketing fees, all kinds of fees.
    Then there’s order flow where the brokers get paid to send orders thru a predetermined route.
    And where the spread is taken from the investor.
    Then there’s fake academia, like the efficient market theory or stocks for the long run (spiegel) where the authors are fed by WS.
    And then there’s legal fraud where botched orders are precluded from lawsuits but instead forced into arbitration… at the table of the exchange (usually after a market melt down where the little guy lost everything).
    Then there’s fake shares, usually non existent bonds and treasuries sold to the little guy account and never delivered (fail to deliver): very common. One giant NY banks specializes in it.
    And finally how about the little guy doesn’t even legally own his portfolio: ever tried to get your shares to put in a vault? good luck. Most brokerages will refuse or say it’s not possible. But it’s not true. Simply the truth is the shares are not in the little guy’s name (the name on the electronic statement) but on “the street” name.
    What does it mean? the shares are owned by the DTCC corporation and the portfolio holder is just the beneficiary.
    Does it matter?: mostly no , until 2 things happen. War or legal default by the country.
    The shares are then pledged (stolen) by the creditors.
    Just like bank accounts.
    I could go on, but maybe, for those very few out there slightly more conspiracists (intelligent)
    it means that there are better ways to get rich.
    (unless you just trade the fraud).

  5. I loved the book too CD – always interesting to learn about ingenious ways smart humans come up with to take advantage of systems. I, however, will continue to follow the investment strategy of NNFT (nearly no frequency trader) Warren B and buy equities (ie ownership in an actual business) to hold nearly forever. Happy trading!

    1. Post
      Author

      Hey NNFT,

      I’ve read a single John Grisham book, The Firm, as a summer beach read back when I was in high school, but I can still recall a scene where a group of attorneys are handed a set of documents and they immediately set about looking for loopholes they might exploit. I regard high frequency traders similarly – they did not design the system, but they are attuned to subtle vulnerabilities that they might exploit for personal gain.

      Like the kid in class who could bust the curve if only she applied herself, there’s something simultaneously admirable and pathetic about concentrating a brilliant pool of talent and directing it at a pursuit as selfish as the accumulation of wealth for its own sake.

      (Sigh.)

      CD

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.