Stock Market Manipulation By Millisecond Trading
cfa22 writes "Nice piece in the NY Times today on ultra-fast trading on the NYSE and other markets. The 'algos' that make autonomous trading decisions have to be fast, but I wonder: Is network speed ever a bottleneck? Can anyone with inside experience with millisecond trading provide some details for the curious among us regarding hardware architectures and networking used for such trading systems?" According to the article, high-frequency traders generated about $21 billion in profits last year.
Traders make a profit on each trade. But the profit is always to the broker.
Ultra fast trading is an interesting idea and done right it can lead to successful short term returns, but if you take a Ferrari around a hairpin at 120mph, you're still going to hit the wall and die.
Fiber Channel: It's gigabit speed, and very reliable once installed. The only thing to worry about is to make sure you're not bending the cables too far when you're installing the rack mounted gear - if you do - SNAP! - and you've destroyed the cable.
Sock Puppets: damn_registrars=pudge_confirmer=jimmy_slimmy=raiigunner=cml4524=a_klavan=red4men=ronpaulisanidiot
Latency issues have been an important factor for a long time. Here's an example article about some of the details:
In one or two decades we might be able to let all the stock trading to be done by the machines while we focus on doing the non-specialized work ourselfs! Ow wait... wasn't it supposed to go the other way around?
Stock Trader Just got a Headshot - $3000
SEC Official: I see you over there...
Stock Trader: I'm not hacking, I'm just lagging!
SEC Official: Turn them off, or I'm banning!
I believe that precision millisecond stock trading globally is the real reason behind the IEEE 1588v2 precision time protocol. The cisco 9000 enterprise switch supports it. Support has been lacking in smaller switches. The only other group using PTPv2 is the cell phone industry.
The interesting part of PTPv2 for me is that it is used in the 802.1AS protocol ( http://www.ieee802.org/1/pages/802.1as.html ) which is one of the foundations of Audio Video Bridging (AVB) http://www.ieee802.org/1/pages/avbridges.html - Which allows for real time low latency low jitter media streams transported via ethernet with guaranteed bandwidth.
Just yesterday I was joking with friends: Forget about stealing the rounded pennies from bank accounts, criminals could re-program the PTPv2 implementation in switches to steal milliseconds of time during trading!
Anyways, back on the original question, no, network speed is not so crucial once all of your packets are properly timestamped.
--jeffk++
ipv6 is my vpn
I interviewed at a millisecond (market-making) trading firm in Chicago. They claimed that when a hedge fund, etc. would buy or sell a stock, that one large purchase or sale would typically signal another. Whichever firm could get their quote up the fastest would make the buy or sale, and it's a winner-take-all system. The first market-maker to adjust their price would benefit. Thus, server speed is THE essential bottleneck. Needless to say, they keep the location of their server a secret.
My reading of the article brought out the point that, for a few extra bucks, you can actually go to the head of the line - giving the window of opportunity to perform the other actions described. Interesting definition of "free market" ...
A firm I worked with recently tore down an arbitrage network (they were getting out of the business as it was not core) which comprised of a great deal of Layer 2 dark fiber between sites in NYC and an external data center in NJ, Force 10 fabric switches with multiple paths to server clusters, and a great many Sun X-series servers running Linux. This arbitrage network bypassed the standard corporate (i.e. Cisco-based) network as they wanted exclusivity, higher bandwidth and as much speed as possible. Still, there were issues and the whole environment was scrapped since the actual returns did not match the expectations or cover the costs.
When I looked over the shoulders of the designers (they didn't want too much support from the regular network engineering team) they were concerned with raw performance and not as much with security or other daily operational issues. I would characterize it as the difference between, say, a NASCAR Sprint Cup car and your regular transportation. The former is purpose-built solely for performance while the other has to contend with safety requirements, daily functionality, and a lower common denominator for use.
I think, therefore I am - Rene Descartes; I yam what I yam, an' that's what I yam - Popeye
Allston Trading occasionally speaks at my university, and they've said that network bandwidth can be a big bottleneck. They needed to install servers across the street from the NYSE to attain the edge they needed.
As far as who the profits go to, ALlston (and I suspect many similar organizations) keeps most of their profits internal, and exercise big profit-sharing programs for their employees. It's actually quite an interesting idea, as this group of almost entirely Computer Scientists are using their expertise to make some good money as a cell in an atmosphere dominated mostly by business-types.
As someone who works with people who do this, I can tell you they spend a lot of money on very powerful machines, and then try to place said machines within walking distance of the exchange's computers. I have been told that running a server at the office is too slow, even if its in the same city. Also, millisecond is the wrong word. Their trading is measured more closely in microseconds.
"Going to war without the French is like going deer hunting without your accordion." ~General Norman Schwarzkopf
This has been a common topic on the stocks news groups about FAZ and FAS using different methods because of inefficiency between the two funds.
They are support to inverses of each other (short and long) of the finacial markets with leverage, but a few people have noticed that during the first minute of trading they aren't exactly the same.
The basis of the what people are doing is complicated and usually involves buying both shares and dumping one in the first minute and then selling the other shortly thereafter.
But there are other methods people have talked about but I can't seem to find the newsgroups since they were buried in spam a month or so ago.
"I am the king of the Romans, and am superior to rules of grammar!"
-Sigismund, Holy Roman Emperor (1368-1437)
The problem is the start-up cost. Buying the necessary hardware, obtaining the required data sources, developing the necessary analytical formulas and coding them efficiently costs a *lot* of money. So it's the free market of people who already have a lot of money and time, or simply an enormous amount of money.
I'm not entirely against it in some cases; well implemented it can smooth out market fluctuations and value securities more accurately. But it still makes me squeamish: It's yet another mechanism by which the rich get richer, and the poor get left behind. Every trade a "normal" person makes will end up costing a small amount more, and the difference goes into the pocket of the HF funds. It feels very much like the "shave the fractional cents off interest calculations" scam: No one suffers individually suffer, but it still feels wrong.
$_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
I suppose that's the same guys that are always getting the "first post" on /.
I work in the finance industry, and know a few things about this business. It can be very profitable indeed. Since the HF trades are typically finished at the end of each day (or even minute), they are not required to hold much cash (capital) to support their positions. Thus the business is unusual in the finance world for making a profit on, essentially, zero capital. Of course, it costs a lot of money to stay in the arms race.
The article hints at two kinds of HF strategies, and they really are distinct. First, there are the "rebate" strategies that collect those credits for providing markets. Then, there are the "predatory" strategies that try to find the price points of buyers and sellers as described. Other HF strategies include pairs trades (Exxon goes up so RIG will soon), inter-exchange arbitrage where a stock is traded on multiple exchanges, and index arbitrage such as trading the elements of the S&P 500 against the index futures (which has been around almost forever).
Other algorithmic trading includes strategies meant to take on positions slowly (or quickly) and efficiently. A famous old category are the Volume Weighted Average Price (VWAP) strategies that try to trade a little bit at a time throughout the day, so that the average trade price is close to the day's average. Other algos try to take advantage of mean reversion or trends during the day.
There is huge demand for technical people in this industry (I probably get one headhunter call every two weeks), almost all of it in NYC or Chicago. There's demand for network engineers, statisticians, programmers, and traders, and high pay for quality. Surprisingly few programmers these days are really acceptable to the business, because the code has to be so fast and efficient, and almost no one studies that any more.
Most exchanges aim for that kind of speed now, but fail to make it. Some of them, like the London Stock Exchange, http://blogs.computerworld.com/london_stock_exchange_to_abandon_failed_windows_platform, which made the idiotic mistake of relying on Windows Server and SQL Server, don't even come close to delivering that kind of performance.
For those that come closest, the servers tend to be transaction-optimized RHEL (Red Hat Enterprise Linux) and Solaris. The networks are fiber optic-based. While they may connect to the Internet, the core systems, like those provided by AboveNet, are usually private 10GBe networks. In short, to really take advantage of this kind of high-speed trading you're not going to be doing this from your basement. You need to have a trading station either co-located at the market, or just down the street on a high-speed network no more than a link or two from the exchange's servers.
And, yes, network speed does matter here. So does server, storage and DBMS access speed.
Needless to say, none of the exchanges are exactly forthcoming about what their particular magic technology formula is since being able to deliver high-speed trading consistently has become an important sales point. I know many traders on Wall St. and the City in London who will move from one Exchange to another based purely on their ability to deliver faster trades. For this group, what's being traded is besides the point. It's all about keeping an edge in trading speed over their competitors.
Steven
It seems to me like any potential for exploiting millisecond delays in transaction transmission will be consumed and defeated by the time it takes a human operator to interpret the information and hit the "confirm purchase/sale" button.
That assumes there is still a human in the loop and not a computer doing trades autonomously. Within certain bounds, of course. But still autonomously.
Reading code is like reading the dictionary - you have to read half of it before you can go back and understand it.
Humans don't make the purchases or sales. The algorithms trade on their own, all the humans do is define the mechanism to evaluate trades and set limits (to ensure a bug or an unusual market movement doesn't get out of control).
$_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
No, the little guys still have hope, they can still make money, just maybe not quite as much as these "super-fast" traders.
(Disclaimer: I work for a financial firm. This isn't really news, as the market for these types of trades has been mature for a while now)
LOL, and now I get the "Slow down Cowboy" message. It appears slashdot does not believe in micro-second posting. ;-)
Sent from your iPad.
To a previous commenter. The companies doing high frequency trading "are" the brokers. They aren't paying any brokerage fees because they have direct access to the market. Additionally speed is important enough that your computers need to be at least in the same physical vicinity as the trading computers. Literally every millisecond makes a difference. One of the things explained in the article is because the computers are so fast they can issue and cancel an order before it gets fulfilled. So with the Intel example: Notice there is a large buying trend in Broadcom Issue at x and see if there is a match. When a match is found immediately cancel. Issue at x+1 and see if there is a match. When a match is found immediately cancel. Repeat until a match isn't found. Place a huge sell order at the final number a match was found. PROFIT Basically the company made a .4% profit in a few seconds on 1.8 million by doing nothing but taking advantage of proximity to the market. This runs against several of the ideas around how an exchange is supposed to work. By the way... if I remember the match correctly that small .4% profit? It becomes huge when you consider this is done every second of every day. All that money those big firms are sucking up are coming from the small investor. The question is what is there to do about it? It will kill any small time daytrader. Someone like me who buys and holds will be alright but man forget trying to trade minute by minute based on technicals.
The algorithms trade on their own, all the humans do is define the mechanism to evaluate trades and set limits
Human arbitrary decisions applied blindly by a machine thousands of times per seconds. That sounds like a real winner to me.
This kind of activity is an abuse of the free stock market system.
This activity does not generate wealth. It doesn't create something from nothing. And it doesn't add value to society. If they generated 21 billion, then 21 billion was necessarily lost by others.
People should look down on this kind of business and method of trading.
Front Running is when the broker or market maker (eg, Nasdaq) does such behavior.
Although the high frequency trading is slightly different, it is almost electronic front-running, especially with the ability to PULL the orders unfufiled after a few milliseconds.
Test your net with Netalyzr
This is an outstandingly bogus article, what happens when arts graduates attempt to understand anything except celebrity gossip.
>It is the hot new thing on Wall Street,
The first algotrading I encountered was in the early 1990s at Deutsche, and they senior guys there told me of some of the mid80s stuff they'd done.
Not new.
>a way for a handful of traders to master the stock market,
Although algotrading is not exactly mass market, it is about as exclusive an activity as getting drunk.
>peek at investorsâ(TM) orders
That's not algotrading.
>and, critics say, even subtly manipulate share prices.
A major topic in algotrading is actually market impact modelling, ie working out how to make prices move less when they trade.
>Nearly everyone on Wall Street is wondering how hedge funds and large banks like Goldman Sachs are making so much money so soon after the financial system nearly collapsed. High-frequency >trading is one answer.
Actually they're working out how to employ these guys since they've often been shafted by the GS bonus scheme.
>software that a federal prosecutor said could âoemanipulate markets in unfair waysâ â" it only added to the mystery.
He was fed this line by GS as part of a dispute over an algotrader's pay. There is no suggestion that GS was being "unfair", just addressing the issues caused by GS having an inferior tech infrastructure for AT than may competitors.
>"This is where all the money is getting made,â said William H. Donaldson".
I'd love to see the original quote before editing. Bet it was a lot less sexy.
>For most of Wall Streetâ(TM)s history, stock trading was fairly straightforward:
For an arts graduate the writer is terribly ignorant of history, as well as trading.
For instance is he not aware of how the Kennedy family got rich as part of causing the crash of 1929 ?
>Joseph M. Mecane of NYSE Euronext, which operates the New York Stock Exchange. âoeMarkets need liquidity, and high-frequency traders provide opportunities for other investors to buy and sell.â
It's more complex than that. Some ATs are consumers of liquidity, others provide it, and there exist models that imply that heavy AT activity drives liquidity away.
>Average daily volume has soared by 164 percent since 2005, according to data from NYSE. Although precise figures are elusive,
164% is a surprisingly "precise" figure, which PR bunny fed that to him ? Wonder why the PR wouldn't give more ?
>"The result is that the slower-moving investors paid $1.4 million for about 56,000 shares, or $7,800 more than if they had been able to move as quickly as the high-frequency traders."
That's really quite amazingly precise. So precise that I believe not a word of it.
Edit/Delete Message
Dominic Connor,Quant Headhunter
Hey, as long as the limits are reasonable, there's nothing intrinsically wrong with it. Humans are pretty bad at picking stocks; all those rules our brains use to simplify decision making tend to muck up our ability to evaluate them accurately. The computers can be trained to evaluate based solely on those factors that are actually useful, and do it faster and more effectively than the human could. It sounds horrible the way you phrase it, but so many other applications we use computers for; we don't like the idea of machines supplanting humans in most fields.
$_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
Canceling an order should be discouraged, in the form of a fee small enough to be merely annoying to someone who occasionally cancels an order, but costly enough to discourage routine cancellations.
Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
GS sees both the buy order and the sell order.
They can sell before large sell orders. Then buy again after to avoid a loss.
They can buy before large buy orders. Then sell right after to take a gain.
It's called front running and it's illegal.
But the government is not enforcing the law.
My theory is they are letting illegal activity go on to hold up the market prices.
I could be paranoid. But I've been in this thing for 28 years now and I've never seen such goofy market behavior and repeated evidence of price manipulation at market close on thin volume-- and yet there are no investigations.
She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
I was a Sys Admin for a day trading company in Chicago.
We had a 100mb serial line direct to all of the major markets that we traded in. We also traded the European markets. Trades were taking upwards of 300ms to complete. So, we spent $25mil USD to build a data center in Germany. We could then use Citrix to remote into this data center and trade, We still had traders that would scream for us when a trade took >100ms on the local markets. And we came running and scoured network logs trying to find the bottleneck.
We replicated all traffic to certain ports on the Cisco and had Wireshark running constantly, even after hours. Every millisecond counted. And seeing that the owner of the company personally made $3mil profit every quarter, it seemed to be working.
We had a couple of mini-meltdowns of the market in the early 90s because of programmed trading that went haywire. Ever since, programmed trading and the arbitrage that comes from out-pacing the market by a few seconds (at first, and then a few tens of seconds and now milliseconds), there has been an ebb-and-flow that looks like this:
* Someone starts doing this (they think it's the next big thing)
* They run into problems, and accidentally make the news
* The news media is all shocked that this new thing is happening
* The company (or project) that started it either goes away or settles down and becomes a mature member of the programmed trading community.
The interesting story, and the one never covered is the nature of the mature community. They essentially have a shadow-stock market that hasn't fully been regulated, and which is literally invisible to most humans. Now, these companies are mostly very large and stable organizations that want to stay that way, so for the most part, they implement controls that are sane, but as we've seen over the past few years, systemic mistakes which have no obvious downside until they cause wide-spread failure are not typically regulated well from the inside (alas poor Lehman, I knew you).
However, we should be clear here: this arbitrage is very often not as valuable as you would think. It costs a lot of money to do and has fairly small margins of return. It makes money, but there are easier ways to make money in the market. On the other hand, it has the virtue of very high turn-over, which means you can throw a pretty sizable chunk of money at it. When you're a large investment firm saying "sizable chunk of money," you typically mean, "dang, they won't let me buy more than 10% of IBM in this fund."
They're gonna screw up before long...
Before long? It happened last fall; the Dow Jones lost half its value and now people are being laid off right and left, and states are going broke.
Of course, it wasn't just letting computers do stock trading, but the idea behind it was - short term selfish interest, lack of ethics (Bernard Madof was head of NASDAQ while he was bilking people with his ponzi scheme), and all around sociopathy and incompetence by business, political, and moral leaders.
The stock market isn't supposed to be a casino, it's supposed to be for long term investment.
Those who refuse to learn from history are doomed to repeat it.
The very same problems that caused the Great Depression (including land speculation and underregulation) caused our present economic meltdown.
Free Martian Whores!
Automated trading has been a growth engine for data center colo providers, who market "proximity hosting" space within their facilities to hedge funds who believe that they can get an edge by being physically closer to the exchange's servers than their trading rivals. In other words, once you max out the wire speed, it's about physical distance. Savvis says its ultra-low latency offerings can reduce connection speed to microseconds, rather than milliseconds. The NYSE's data center expansion purportedly will enable it to offer colo space to low latency trading operations.
RichM
Data Center Knowledge
Sometimes you have to remind people that *everyone* is touchable.
Deleted
When you program a computer to have a "Gut Instinct" I'll support autonomous functions fully. Until then...
I'm investing in this new company called "Woozywuzzles"
Absolutely. Even making it 5 seconds would put most of the globe on the same level field.
When I talk micro-seconds I am talking complete turnarounds in micro-seconds.
These days exchanges are offering inplace hosting. Thus you are connected with fibre to the exchange. Not cheap! For those exchanges that don't offer hosting the big boys lease buildings RIGHT BESIDE the exchange.
What seems to be the vogue today is probabilistic turn arounds. In other words you don't actually wait for the data or the turn around you just throw out orders and then keep a lagging system that tracks your error. This has actually sped things up quite a bit.
But like you said "this will take the biggest iron you can throw at it" and it seems right now there are many very big boys who are falling massively behind the curve. This is a game that only boys like Goldman's can support since the hardware and environment is not trivial. But then again I don't think I need to tell you that.
"You can't make a race horse of a pig"
"No," said Samuel, "but you can make very fast pig"
Yes, no questions were answered.
"high-frequency traders generated about $21 billion in profits last year"
Many of those trades took money from the guy who comes home at night and trades for his 401K. With every winner in the stock market, there is a loser, and it is big banks like Goldman Sachs that are usually winners.
I suspect that talking about "market liquidity" is just avoiding the issue: The U.S. financial system is corrupt.
Whenever a stock is in the soft parts of the price elasticity curve, sensitivity to fundamentals is low and the trading can be manipulated by applying the correct trades at the correct technical points. The method involves representing all traders and trading accounts as one aggregate trader with an average propensity to respond to technical signals and then using this theoretical trader as a model to predict which trading contention points will be most influential on the developing technical pattern. If a stock is trading well within its plausible valuation range, this technical response sensitivity is the dominant mechanism driving new trades. You can draw the stock market as a control function and solve for the type of feedback necessary to induce the desired trading pattern. Engineers who do analysis of oscillations of mechanical or electrical systems will understand this readily.
Whenever a stock is deep on either side of the price elasticity curve, the influence of fundamental traders will present too much of a "noise" signal for technical manipulation to be effective. I'm writing up a on this subject here.
"There are some people that if they don't know, you can't tell them." ~ Louis Armstrong
Rapid day-trading has very little effect on long-term-held investments. One is looking at long term trends; one is exploiting intraday volatility. They're not mutually exclusive. It's very possible to make money from repeatedly shorting a stock that's still going up over the long term.
These rapid-traders are mostly playing a game against each other, not against long-term investors.
The ringing of the division bell has begun... -PF
Not really. There's a *very* large pool of regular investors and smaller houses that are trying the day-trading thing, and that's the group that's losing out to automated sub-millisecond trading. Day trading is *dangerous*, and better than half of the people who try lose a lot of money to it.
This is why there are rules about how much money you have to keep in reserve if you get classified as a day trader, to try to keep people from seeing their entire life savings vanish. Currently, day-trade flagged accounts have to keep at least 25k in the account.
For most long-term investors, the rapid trading really has very little effect, because they're not really playing the same game, so they're not the ones paying such a price.
The ringing of the division bell has begun... -PF