Should I use Python or C++ when making an algorithmic trading bot?

Anything will do, because the bottleneck here is the network request, and not the code itself. You could even do it with node, go or rust as well.
 
I personally use python. It all depends on what you're more comfortable with you can do it with both.
 
It really depends on the type of trading and if time is crucial.

It sounds like it’s to work on an algorithm so i would say whichever you are more proficient in.
 
Language is not the bottleneck here, you can use any language.
 
The trade computer is 30k per day that was 15 years ago, to connect to in trading platform.

Even a split second will lose bids or sales.

It the trade connection that stop any programmer try.

And ones that scrape no good don't work as it split seconds needed.

Even offices that trade move near to the trade servers why the rent in the air, just to be close to trading building.

There even court cases of glitch of trades that traders try on everyday.

It a very hard business to get into, your need to be vetted and have mllions to be a proper trade contender for your application to be approved. .

Leval 3 server house wanted 1 million for the line only, not the bandwidth,super computers only.

Tradeing application no joke.

There always news on trading about who speed glitch, billions lost daily over Internet speeds.

You best join Facebook trader groups those that run application that are popular and vetted programmers there loads around, but I no for a fact joining there program to trade in the thousands and expected to have money or they just kick you off the group stright away.
 
Last edited by a moderator:
I guess it depends on the poster's goal. I assumed that it was more of a test an algorithm vs manual trades.

Those high-speed trades from the big names are using massive amounts of cash to compete so the average joe isn't going to even be able to get remotely close.

However, if it a tool that would pull daily trades, look for indicators, and then make trades based on a formula as opposed to doing all the work by hand, there is a lot of leeway there.

I would still go with C++ myself as a software engineer but for many python may be much easier to get into it with all of the modules available.
 
Python should be better if you’re focused on visualization. C++ if you want to handle more data.
 
both will work fine, it depends on you where you find your relaxation and which one makes you happy when you write, for me I will go with py lot of library short road to get the job done
 
you don't need permormance so I would say python if it's easier for you and also you don't have to compile it again and again and again
 
Please suggest

If you're building an algorithmic trading bot, go with Python. It's easier to learn, has great libraries (like Pandas and NumPy), and is widely used in finance. Python is more beginner-friendly and allows you to focus on the trading logic. C++ is powerful but usually better for system-level programming; Python is a smoother choice for algorithmic trading. Happy coding and trading.
 
I do not like Python but you can use for this job. Python have a large community and large library.
 
Wtf, why people be recommending python?

Strict time bounds call for non-garbage collected languages. Traditional garbage collection may introduce unpredictable pauses into an execution of an application, that is when the GC swipes out unused objects.

You may use real time garbage collectors; with it you will introduce high operational overhead.

https://stackoverflow.com/questions/25702690/can-c-sharp-net-be-used-for-hard-real-timehttps://stackoverflow.com/questions/40415903/c-sharp-algorithmic-stock-trading

Dexter Zeppelin
 
I would use C++ but if you are a beginner than I would recommend python
 
Well in my experience, if you are really finessed about controlling resources (large scale shi), i'd use c++, since you'll have more control over the algorithm, more performance, and also the biggest of all **MULTITHREADING** lmao, but it will only go so far, since the main problem would be the requests to the server ;p
 
Back
Top