r/ProgrammerHumor • • Apr 04 '23

Meme That's better

Post image
59.2k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

677

u/currentscurrents Apr 04 '23

The difference is that this does work, but so many other people are already doing it that diminishing returns have already kicked in.

Algorithmic trading is not a new idea, people have been doing it since the 80s.

201

u/PabloFlexscobar Apr 04 '23

If you can consistently get +51% accuracy what would hold you back from making [a lot of] money? I'm guessing something to do with how much volume you could trade or something? Curious.

157

u/currentscurrents Apr 04 '23

You're competing with all the other algorithmic traders doing the same thing.

Let's say your algorithm is 100% certain the price of beans is going to go up tomorrow. In order to benefit from this, you need to buy some beans now (while they're cheap) and sell them later.

Trouble is, everybody else is running very similar algorithms and goes to do the same thing. This immediately increases the demand for beans, pushing the price up (usually within milliseconds) until it's no longer profitable to buy and resell tomorrow.

It's not enough to beat 51%; you have to beat everybody else's algorithms too. You have to predict something nobody else knows.

104

u/Solaced_Tree Apr 04 '23

One of the degeneracies I ran into while trying this for fun was that there really isn't a way to account for how much your contribution will perturb the system. Even if you successfully make 5% on $100 trades (on average), you can't expect that hold when you decide to throw in $100K. That will be noticed by other traders and it will influence how they buy and sell, which will break your algorithm/model.

After that I was like nah, not worth the time

27

u/SouthernBySituation Apr 04 '23

I checked the mid-sized stock I trade on the 1 minute timeframe and the whole 1 minute candle was like $2.5M. It would take a while before people noticed you.

22

u/Solaced_Tree Apr 04 '23

Stock definitely matters. If you make something that works on apple you'll probably get away with it for a while

→ More replies (2)
→ More replies (2)

19

u/[deleted] Apr 04 '23

You're competing with all the other algorithmic traders doing the same thing.

the largest of whom are located in the actual stock exchange building, who have a serious latency advantage over you and are going to beat you on every trade because you aren't co-located with the market itself

don't worry though these guys made it fair for themselves, the cable runs for all of them are the exact same length. Floor 40 or Floor 10, doesn't matter, same length of cable for the same latency.

→ More replies (2)
→ More replies (4)

429

u/Lord_Derp_The_2nd Apr 04 '23

51% *over what timeframe* and do you have enough liquid to cover the potential infinite loss that may be a 5, 10, n-year slump?

If you're broke, you can't tell the bank "Trust me, the algorithm on average nets positive - I just need time!"

And that's before you get into bugs in production and the fact that whole teams of competent people who are actively doing this have already fucked up and lost millions before, several times. You could lose the whole mess on a day of bad trading.

134

u/[deleted] Apr 04 '23

That's a theory for crazy outliers like Gamestop. Imagine doing high speed algorithmic trading, then lose your entire office's net worth because you couldn't shut it off before it completes like 1,000 godawful trades in the span of seconds

0

u/[deleted] Apr 04 '23

[deleted]

44

u/FUTURE10S Apr 05 '23

That's literally some /r/wallstreetbets loss porn, to go from $365 million to -$95 million in less than an hour?

→ More replies (2)
→ More replies (1)

11

u/mindbleach Apr 05 '23

The market can remain irrational longer than you can stay solvent.

→ More replies (3)

182

u/[deleted] Apr 04 '23

I’m going to take your comment at face value:

  • you usually don’t know how right or wrong you are. If you are 99% correct, but that 1% wipes you out, you’re not getting very far. (This trading strategy exists, it’s called picking up pennies in front of a steam roller)

  • bid/ask spreads, overhead costs, and leverage might wipe out your profit margins.

  • market access might be a problem. This is easier than it used to be, but some markets require significant capital or personal connections to tap into (such as foreign corporate debt or real estate)

32

u/__Hello_my_name_is__ Apr 04 '23

it’s called picking up pennies in front of a steam roller

I love that description so much.

29

u/Ahornwiese Apr 04 '23

Index funds (or other funds) probably would be easier and make more money (they even beat hedge funds sometimes)

32

u/Xdddxddddddxxxdxd Apr 04 '23

Market index funds consistently beat a large majority of hedge funds. Very few (none) hedge funds consistently beat the market.

17

u/Sn0wP1ay Apr 04 '23

Yes but that's not what hedge funds are for. Hedge funds are for hedging, and thus tend to slightly underperform in a normal /bull run matket, but over perform in volatile or receeding markets when compared to indexes.

There are risk premiums you miss out on by using a hedge fund, but at the addition of safety.

7

u/Xdddxddddddxxxdxd Apr 04 '23

Some hedge funds do this but not all

7

u/ontopofyourmom Apr 04 '23

Yep, "hedge fund" just means "a mutual fund that makes investments risky enough that you can only invest it in if you're already rich, also you pay the folks who run it lots of money"

12

u/Xdddxddddddxxxdxd Apr 04 '23

Haha trust me I know. Story from a coworker:

Guy tells him he only invests in companies you know and see in day to day life.

“So like the Dow jones?”

“No only 30 companies.”

And this guy is getting paid multiple basis points to invest other peoples money…

→ More replies (3)
→ More replies (19)

0

u/[deleted] Apr 04 '23

[deleted]

7

u/Brian-want-Brain Apr 04 '23

The problem I think is worse than a lot of people realize.

There is a reason why you don't hear on the news "teenager from Wisconsin makes a market-predicting AI and becomes a billionaire".

→ More replies (1)

13

u/gfieldxd Apr 04 '23

I remember seeing a comedy/news show in the netherlands doing a part on one of the only ways to actually play the stock market:

Working off the difference between 2 international markets. Lets say a stock lowers by 0.1% in europe, and then half a second later in america because that is how long it took for that signal to get to america.

If your systems are faster than that signal, you would be able to buy a little of that stock in europe, and immediately sell it in america, with a 0.1%. gain. Now make your system as fast as possible, and try to let it focus on the biggest differences possible, and profit.

For this to actually be profitable you just need a ton of money to invest in your infrastructure (it needs to be faster than the infrastructure used by stock markets), some of the best software engineers, and as much computing power as you can get your hands on.

The bit showed pictures of the engineers camping at work when covid got the stocks all over the place, because they make the most through turbulent times.

As cool as this sounds, just like with all other stock market things it takes money out of the pockets of everyone else, and could be considered a non ethical way of making money, because its basically the stock market way of buying the last of something and upcharging for it, but because of the way the stock market works it does not have to be the last of something

8

u/TheRavenSayeth Apr 04 '23

This seems so complex for a mainstream comedy bit.

→ More replies (1)

8

u/HighPriestofShiloh Apr 04 '23 edited Apr 24 '24

zealous vase pocket expansion drunk cable tidy jar frame chief

This post was mass deleted and anonymized with Redact

→ More replies (7)