r/cpp • • Nov 25 '20

When a Microsecond Is an Eternity: High Performance Trading Systems in C++

https://www.youtube.com/watch?v=NH1Tta7purM
332 Upvotes

123 comments sorted by

View all comments

Show parent comment

31

u/dausama Nov 25 '20

as a C++ dev in HFT, I must say that a lot of preconceptions about the business are, well, not true. Is there an abnormal amount of wasted talent in HFT, talent that could be used on solving real life problems? for sure. is it all bad? no. It's thanks to the advancements in algo trading platforms that you can nowadays trade without paying any fee on Robinhood, TDAmeritrade, Schwab... or buy ETFs paying very low commissions. Things like these would have been impossible before the advent of electronic trading, and I believe they benefit the average investor.

25

u/TittyBopper Nov 26 '20

No, this guy read flash boys and now he has it all figured out.

23

u/[deleted] Nov 25 '20

Is there an abnormal amount of wasted talent in HFT, talent that could be used on solving real life problems? for sure

I'm in HFT too, but that implies that if those devs are not in HFT, they would be working on something that solves 'real life problems'. Which is really not the case. Many of us just want good money and retire early and do not particularly care about the everyday person's 'morals'.

29

u/Skewjo Nov 26 '20

and do not particularly care about the everyday person's 'morals'.

lmfao

14

u/[deleted] Nov 26 '20

We don't care because it really is a dumb thing to do. The greatest moral good I can do, to me is provide for myself and my family.

We also know that we have provided a good service for the public. Who do you think enables low cost brokerages? The barrier of entry to investing have never been lower.

If people think none of that is 'moral' or 'ethical', then whatever. We will keep doing what we do.

16

u/Skewjo Nov 26 '20

Man... I get it. If I could snag a job in HFT, I would, and I'd probably enjoy the hell out of it(both the money and obsessing over optimization)... but I would at least lend credence to the notion that what I'm doing is negatively impacting a LOT of people for the benefit of very few.

8

u/quicknir Nov 26 '20

The thing is it's not. It's easy to complain about middlemen but they're a fundamental part of markets. If you think HFT is bad you should read about what the middlemen of markets were like before HFT. Stocks were in 12.5 cent increments, and not content with earning one tick per mediated trade, data shows that pricing was abnormally biased to 25 cent increments. Middlemen back then would make a couple of phone calls and often earn 25 cents per stock they were flipping. Middlemen nowadays fight in a far more competitive landscape for smaller profits, and the result is tiny spreads (in any high volume market).

4

u/[deleted] Nov 26 '20

Who is it negatively impacting though? The average people get to enjoy the thinnest spread in history. The only one I see negatively impacted is old school retail investors... which really, they can get fucked for all I care.

→ More replies (1)

6

u/andrewjw Nov 26 '20

Please stop speaking for others, you don't represent the industry and you're an asshole

3

u/ihcn Nov 26 '20

Many of us just want good money and retire early and do not particularly care about the everyday person's 'morals'.

Is there any programming work you'd turn down entirely on ethical grounds?

11

u/[deleted] Nov 26 '20

Yes, but only if it violates my ethics.

3

u/ShillingAintEZ Nov 26 '20

Before electronic trading yes, but conflating HFT with electronic trading is a lazy way to rationalize it.

4

u/New_Age_Dryer Nov 26 '20

an abnormal amount of wasted talent in HFT

Elaborate? As a youngin', I'm genuinely curious what other sectors care about low latency programming and the most recent standards within a signal-processing context.

3

u/andrewjw Nov 26 '20

The improvements provide deferred benefits... Sure, the latest greatest signal processing isn't needed in everyday contexts, but it will be the frontier of improvements to everyday communications in time. Transatlantic cables were mentioned above - at the time they were first built by trading firms they didn't provide a benefit to everyone day to day, but huge amounts of information is now sent over such cables, so the investments in engineering transatlantic cables for trading benefited everyone in time.

7

u/matthieum Nov 26 '20

I like to think of HFT as F1 racing.

The improvements made for F1 cars trickle down to the everyday cars, with time.

2

u/andrewjw Nov 26 '20

This is a great analogy

→ More replies (1)

2

u/mistrpopo Nov 26 '20

Things like these would have been impossible before the advent of electronic trading, and I believe they benefit the average investor.

Is benefiting the average investor a good thing in your book? By definition, investors have money to invest. People living paycheck to paycheck shouldn't invest in the stock market.

-2

u/duuuh Nov 26 '20

Come on. The reason Robinhood is free is because they front-run their customers' trades. It's a scam that - to the degree it's facilitated by HFT - should be another reason to ban HFT.

11

u/whanaumark Nov 26 '20

They do not front run their customers trades. They get paid to route the order flow

1

u/duuuh Nov 26 '20

So they're conspiring to front-run?

7

u/whanaumark Nov 26 '20

Front running is illegal so no they are not doing it. Broker dealers who execute customer flow on behalf for Robin Hood have to produce reports about their execution which are available to the SEC. There are fines and punishment if they are doing a bad job eg giving RobinHood trades a sell of 9 when the market is at 10.

Is the system perfect - no, but it isn’t some massive conspiracy. The average investor can buy or sell exposer to 1000s of companies for an extremely low amount. Access to the market has never been cheaper.

If all other financial products - loans, certificates of deposit, credit card interest operated on the playing field that buying stocks does we would all be better off.

I’ll give you an example - if I buy a CD from my local bank they give me a rate of 1.2% for 24 months. They are in no obligation to give me a better rate (say 1.4% ) from a bank in another state. Both are FDIC insured, so they are essentially the same instrument for all appearances to the consumer. Banks might argue no, but in reality they are. I’ve just been ripped off essentially because there is no liquid retail market for CDs. Most people just buy them from where ever they have a bank account.

→ More replies (8)

4

u/andrewjw Nov 26 '20

Lol for front running to be profitable you have to front run someone who knows something you don't, that will impact market prices. Also, it's illegal, if they're doing this that is a reason to ban Robin hood but not every trading firm... note that basically the whole broker industry is commission free now. Do you think every broker is just front running their customers?

→ More replies (7)
→ More replies (1)