[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/biz/ - Business & Finance


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


i posted my patented trading algorithm on r/wallstreetbets. it blew up, but the mods removed it because 1984. since it got taken down, i have refactored the code. now it is fully optimized.

code is picrel (duh)
>>
What the fuck dude, you can't just leak my trading strat like this
>>
>>61009514
bro i already made ~$5k with it you're a genius
>>
>>61009514
Kek dangerously based code here. Leave it up to god.
>>
>>61009514
I ran the code and it downloaded gayporn to my pc and stole all my crypto and feet pics!
>>
>>61009529
>>61009533
>>61009545
>>61009514
it's statistically not possible you all know how to read this code, coding is a Hinduistic high IQ limited trait only 1.9.% of the population of India requires H1B visas for the continutation of the USA technology without genuity of Indian mastery it is not likely to be successful and therefore you are not able to.
>>
>>61009514
wtf i just lost my money
>>
>>61009562
nvm up 200%
>>
>>61009567
0x200%?
>>
>>61009586
oh fuck i lost it all DEVS
>>
>>61009514
Random picking quant firms with random strategies with random fund managers picking random stocks and selling them at random time is the new hot thing.
>>
>>61009514
>calling palantir technologies a meme stonk
i bet peter thiel personally butfucked the reddit mods until they banned you for this insult
i would also ban you, not because you triggered peter but because of your stupidity
>>
>>61009514
why are you separating companies and stonks when you're just adding them together 2 lines later?
and why randint 1 10 if you multiply it by 100? why not randint 100 to 1000 right away

and most importantly, how the fuck do you sell something that you didnt buy yet?
>>
>>61009758
>and why randint 1 10 if you multiply it by 100? why not randint 100 to 1000 right away
because you want to gamble in multiples of $100 for ease of overview rather than having to deal with every single value between 100-1000
that part at least made sense
>>
>>61009514
virus be careful
>>
>>61009514
I once made a joke trading algorithm and it lost money 99% of the time. Then I figured out that if I just reverse its decisions I'll start earning money and it actually worked.
>>
guys ummm i actually used it and i made $3k. wassn't expecting that lmaooo
>>
>>61009514
>>61010642
Kek what a pathetic brown subhuman samefag.
Saaaar do not redeem the cow poo bloody your mother fuck bitch
>>
>>61010770
yeah i'm such samefag lmao

>inb4 "you used inspect element"

it's not doctored retard
>>
>>61010808
oops

i'm so stoned i forgot what thread i was in

i forgot i was op
>>
File: confuse.png (366 KB, 612x612)
366 KB
366 KB PNG
>>61009561
I don't know python code but I get the jist of it that it's just picking a random amount from 10 to 1000, a random action between "buy" and "sell", a random company between the companies and meme stonks listed, and a random option between calls and puts. not sure why it's declaring the companies and meme stonks as separate lists if it just recombines them later but whatevs
>>
>Ctrl + F "algo"
This is the only thread related to algotrading. This board is truly dominated by subhumans right now.
>>
File: 1636623272918.jpg (19 KB, 400x400)
19 KB
19 KB JPG
>>61009514
Studies proved that randomness outperforms "Expert fund managers."

Very based code.
>>
>>61009514
>let jesus take the wheel
Gigabased strat, if you bias it towards stocks going up it prints infinite money
>>
>>61010813
>i forgot i was op
based
>>
one time I made a thread and replied to myself later that day saying I was a retard for making a shit thread
>>
>>61009514
import random
import datetime

def trading_signal():
directions = ['bullish', 'bearish', 'neutral']
confidence_levels = ['low', 'medium', 'high']
strategies = [
"covered call",
"protective put",
"long straddle",
"short straddle",
"iron condor",
"bull call spread",
"bear put spread"
]

companies = ['AAPL', 'GOOGL', 'MSFT', 'AMZN', 'TSLA', 'GME', 'AMC', 'BB', 'NOK', 'PLTR']

company = random.choice(companies)
direction = random.choice(directions)
confidence = random.choice(confidence_levels)
strategy = random.choice(strategies)
target_price = round(random.uniform(50, 500), 2)
horizon = random.choice(['1 week', '1 month', '3 months', '6 months'])

return (
f"Signal generated on {datetime.date.today()}:\n"
f"- Company: {company}\n"
f"- Outlook: {direction} ({confidence} confidence)\n"
f"- Strategy: {strategy}\n"
f"- Target price: ${target_price}\n"
f"- Time horizon: {horizon}"
)

if __name__ == "__main__":
print(trading_signal())
>>
File: basedpepe.png (224 KB, 521x937)
224 KB
224 KB PNG
>>61011307
at last.....a fellow quant!
>>
wtf is this guys I need an explanation tailored to a meat head
>>
File: 1652231202364.jpg (71 KB, 1000x581)
71 KB
71 KB JPG
Call me a retard but is it possible to have that kind of randomm aproach but tweak it so you have better money management? I've heard people who has more loser postions than winners but due to when they choose to close them they are still on green. The thing that worries me is getting raped by fees
>>
File: 1744211546268869.jpg (33 KB, 494x489)
33 KB
33 KB JPG
Unbelievably based, thank you for posting this kek
>>
>>61009561
Niggas just be talking about indians all day
>>
I'm golfing a bit



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.