MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x2i2x6/connectionrefused/pf327nk/
r/ProgrammerHumor • u/velvetbabydollx • Oct 10 '26
128 comments sorted by
View all comments
44
function predictBuyOrSell(ticker: string) { return Math.random() < 0.5 ? "BUY" : "SELL"; }
There you go
16 u/pmmeuranimetiddies Oct 10 '26 Scale that by the historical exponential growth rate for that stock and it would probably be more accurate than the overfitted ML models finbros are producing 2 u/LordZas Oct 14 '26 Add a sleep(Math.random()*10)) so it shows computation time for the complex algorithm 3 u/StrengthTheory Oct 14 '26 You mean "Thinking..." 1 u/LordZas Oct 15 '26 My bad
16
Scale that by the historical exponential growth rate for that stock and it would probably be more accurate than the overfitted ML models finbros are producing
2
Add a sleep(Math.random()*10)) so it shows computation time for the complex algorithm
3 u/StrengthTheory Oct 14 '26 You mean "Thinking..." 1 u/LordZas Oct 15 '26 My bad
3
You mean "Thinking..."
1 u/LordZas Oct 15 '26 My bad
1
My bad
View all comments
44
u/StrengthTheory Oct 10 '26
There you go