[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance


View post   

File: 68 KB, 540x597, DF4436C2-39FF-4004-A3E6-42816B5CF13D.png [View same] [iqdb] [saucenao] [google]
24331711 No.24331711 [Reply] [Original]

im writing a ~5000 line python script that buys and sells bitcoin for me. the algorithm is based on tens of thousands of simulations on historical data of different cryptocurrencies. AMA

>> No.24331738

Share your code for audit

>> No.24331743 [DELETED] 

I'm writing shorter: while (true) sell();

>> No.24331767

>>24331711
....and in the end you will discover that buy-n-hold is best strategy

>> No.24331791

Nice

>> No.24331798

>>24331711
what will you do when the bot makes 10 consecutive losing trades in a row?

>> No.24331800

>>24331711
> feed = seed
Sneed

>> No.24331811
File: 153 KB, 840x548, 6600320_preview.jpg [View same] [iqdb] [saucenao] [google]
24331811

Why don't you write a ~5000 line python script that will get some hoes in your DMs bitch

>> No.24331915

>>24331711

hahah this is how you get fucked by binance bots.

>> No.24332093

>>24331711
I would suggest stopping right now and hiring a professional software engineer. Your code is an aberration

>> No.24332123

>>24331767
This

>> No.24332204

>>24331711
Why is it so long? Do you suck at coding?

>> No.24332237

>>24332093
The indentation seems off

>> No.24332297

>>24331711
already posted+larp, you're just procrastinating and you produced nothing of value

>> No.24332400

>>24332093

Reminds me of ultima online bandage/heal casting scripts. Is that how it's supposed to look?

>> No.24332519

>>24331767
This

>> No.24332582

>>24332204
I had one which was roughly 1500 lines so I guess yeah

>> No.24332598

>>24331711
post the secret key faggot

>> No.24332638

5000 Python script lmfao how slow is that going to run? Assuming you have it hosted on AWS Tokyo servers too? Or running it on your local server thousands of miles away ?

>> No.24332844

>>24331711
the pros run a c++ backengine and script of choice front. you are gonna get owned by the other bots if you stick with python.

either way, you posting about it here basically means you wrote a few lines but you will never finish it and if you do it will lose all your stake.

>> No.24332891

>>24332844
You mean Rust?

>> No.24332911

>>24332844
Did you actually read the code or just post first like a tard larping dev?

>> No.24332931
File: 1.53 MB, 2132x1600, 8.png [View same] [iqdb] [saucenao] [google]
24332931

With such BTC rising more people try to take part in blockchain but it is still difficult to find a good platform.

Recently came across duckdao.io , do you know anything about it? Team has already made First Hunters Season for their crypto card game

>> No.24332939

>>24331711
It took you 5000 fucking lines? Pathetic. I'll do it right now.

Import Pytorch as pt

pt.neuralnet(data,makememoney,opisgay)

Bam. Done.

>> No.24332956
File: 121 KB, 1024x1024, 36E5B8E4-F843-4F3C-BC9B-C349B000A9F8.jpg [View same] [iqdb] [saucenao] [google]
24332956

>>24332939
Chad response

>> No.24332957

>>24331767
This

>> No.24333002

>>24332939
based

>> No.24333011

Why am I seeing this thread again?

>> No.24333018

>>24331711
5000 lines lmao

>> No.24333024

Enjoy paying all the taxes on trades

>> No.24333052

>>24331711
programmer here, this sounds like a disaster. you're going to go broke. no doubt in my mind.

>> No.24333120
File: 210 KB, 650x334, 1521289695159.png [View same] [iqdb] [saucenao] [google]
24333120

Why do incels hate women who can code?

>> No.24333142
File: 468 KB, 800x377, 1567288174499.png [View same] [iqdb] [saucenao] [google]
24333142

>>24333120

>> No.24333235

>>24332844
c++ while powerful, is a TERRIBLE solution for a long term automated trading bot as backengine
to begin with you have to interface with apis/library which doesn't support c++, you have to write your own wrapper, if you don't rely on tools like ccxt you will waste massive amount of time and opportunities
second you have to use a rdbms for order management and ticker history, this could be a bottleneck for HFT rendering c++ useless, if you don't use this your bot will be a chaotic mess and unmaintainable if it's ever successful
third the volume in crypto is way too small to justify the use of a language like c++, and WS technology will be able to handle HFT in the future just fine with standard scripting languages
fourth exchanges have query rate limitation that will make your c++ basically useless
fifth while I agree c++ can have niche uses on such tool, its use is wrapped under higher level language that handle low level for you through statistic/math libraries, if you think it's a good idea
sixth using c++ makes it harder to adapt it to a web server running flawlessly 24/7 or to develop a shared interface for other users that interacts directly with it, assuming you want to monetize it somehow
seventh the gap between c++ and scripting language, while always existing, just keeps getting smaller each years

>> No.24333524

Why don't you write a 6,000 line script? Surely it's 20% better than a 5,000 line script.

>> No.24333612

>>24331711
It looks like you confused for with while or is this some advanced python thing? You'll need a decentralized oracle to verify the seed using multiple distributed fuckshacks.

>> No.24333720
File: 169 KB, 1154x1448, 9.jpg [View same] [iqdb] [saucenao] [google]
24333720

Fellas, I found a post about duckdao.io, the first crypto incubator. Does anyone take part in this platform?
Seems like their DDIM tokenomic shows high results

>> No.24334157

>>24331711
nice have fun competing with hedge funds with billions of lines of code trading against you

also your code quality is literal shit

>> No.24335275

>>24331711
bots are only useful if you are trading with a few hundred thousand plus dollars, otherwise just hodl.

>> No.24335351

>>24333235
okay, so is rust any better ?

>> No.24335504

>>24334157
I don't think I'm the retard here anon

>> No.24335523

>>24335351
no

>> No.24335664

worst code ever. you will delete your money. good luck

>> No.24335687

>>24335664
it's not even formatted properly

>> No.24335728

>python
NGMI

You shouldn't use python for anything other than training your models.

>> No.24335751

I can't tell if people are pretending to be retarded in this thread commenting on OP's picture
Then I remind myself this is /biz/

>> No.24335820

>no one actually reads the code.
Kek my sides are in orbit still based from a week or so ago

>> No.24335926
File: 122 KB, 1904x1589, cuteprogram.png [View same] [iqdb] [saucenao] [google]
24335926

Make way. Actually good programming coming through.

>> No.24335982

>>24335751
>>24335820
I think it's necessary to do a quality check and test the waters every once in a while

>> No.24336117

>>24331711
gonna write a 100 line script that outperforms yours

>> No.24336180

>>24336117
should add I think I unironically could, what you're doing sounds overly complicated

>> No.24336292

python is fine. you don't need c++ unless you're doing hft and even then you can use cython for low latency.

also that code looks monstrous and is not real python.

>> No.24336351

>>24336292
oh yeah now that you mention it OP just just wrote down some pretend code

>> No.24336909

>>24332638
wtf do you know how big some of the python frameworks are

>> No.24337058
File: 18 KB, 313x286, cringedoge.jpg [View same] [iqdb] [saucenao] [google]
24337058

>>24335820
This wtf, lost it at defining binance, then at connecting on 80 instead of 443, the rest was just a kek after the other, especially that boolean fuckery lmao

Jesus christ /biz/ is really this retarded

>> No.24337109

>>24331711
you can tell it's bs from the thumbnail but a quick scan shows that it's literally just a sneed joke

>> No.24337307

>>24335926
Fix your brackets

>> No.24337571

>>24335926
console.log("Barry Schekelstein".split(' ').map(c=>c[0]).join(" "))

>> No.24338578

>>24335820
>these are the people shilling and fudding investments to you

>> No.24338878

>>24331711
Is that actually your code? It's fucking horrible. Have you heard of a Class or objects? Holy fuck lowiq bait thread there's no point in reading what you wrote

>> No.24338957
File: 316 KB, 735x601, 1597838675136.png [View same] [iqdb] [saucenao] [google]
24338957

>> No.24339507

>>24331811
absolutely positively based

>> No.24339599

>>24331711
Good job OP. Don't listen to the haters. Just make sure you don't put in too much money when you're testing. I will say though, machine learning would probably be a great alternative too.

>> No.24339617

nice

>> No.24339991
File: 83 KB, 472x609, popper poverty of historicism.jpg [View same] [iqdb] [saucenao] [google]
24339991

>> No.24340018

>>24331800
>seed = formerly_chucks()

>> No.24340277

>Binacne_socket

>> No.24340523

>>24332093
This. I'm a python developer and I've seen people with no coding experience writing clearer code than this wtf

>> No.24340612

>>24340523
To add to this. This doesn't even compile, op is literally trolling, this isn't even pseudo code, just code like gibberish. "then" is not a keyword in python, for loops in python don't work like that, and for TRUE == FALSE lmfao

>> No.24340713

>>24331711
this retard again

no one cares about line count faggot, you're probably a fucking idiot who talks a big game but is not sure how to use web APIs for requests or numpy for analysis

little faggot

>> No.24341419

>>24331711
You will never be a quant.