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

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

4

u/SouthernBySituation Apr 04 '23

There's always a bigger stock and a bigger timeframe.

7

u/Solaced_Tree Apr 04 '23

Greed inspires shorter time-frames 😅

→ 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.

4

u/anonimitydeprived Apr 05 '23

No fucking way that’s insane that they all have the same cable length to their terminals

→ More replies (1)

8

u/[deleted] Apr 04 '23

or make the most generic algorithm and do apply reverse psychology, if the algorithm preidcts something is gonna raise, and everybody starts buying it, you start selling :P

14

u/wayoverpaid Apr 04 '23

The human version of this is the Inverse Jim Cramer Fund.

→ More replies (2)

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)

5

u/valkmit Apr 04 '23 edited Apr 04 '23

It is less about accuracy and more about expected value.

You’d play with 10% odds with a 100x payout wouldn’t you?

Also, gamblers ruin. Just playing with positive expected value at an infinite horizon still can result in you losing everything. You need optimal bet sizing to maximize growth and avoid gamblers ruin.

→ More replies (1)
→ More replies (17)