I m new to the world of Algo Trading.
Can someone please let me know if I copy the code (from Chatgpt) for a strategy to VS code editor and run the same, what is the reason the code is not executing? I have installed libraries as well, yet the code is not executing.
What am I missing out here?
One obvious possibility is that the code or logic has flaws.
Hi,
I have a similar question:
- Where do I find the API details?
- Is there a playground to test functionality?
- Can I get a live data from NSE and BSE? On which ip:port ? What format?
- Are any of the above are free access ? May be I just do few requests a minute or so .
I am looking to build something of my own live feed of stocks for learning purposes .
Thank you for the response.
That may be a possibility.
Here are the steps that I took, can you let me know what have I missed out here:
Step 1) Installed python and pip
Step 2) Installed VS code editor
Step 3) Generated API key and client token
Step 4) Build a strategy using chatgpt and copied the code to VS code
Step 5) Edited the API key part in the code as mentioned by chatgpt
Step 6) Ran the code
What am I missing out?
You are assuming chatgpt code will just work. There maybe flaws, usually logic flaws, either you not being able to explain the requirements correctly, or chatGPT misunderstanding your requirement.
If you do not adequately understand programming, be very careful in copy/pasting stuff, there’s ‘Real Money’ involved after all.
No, but you can test by placing small orders, or just testing other stuff and skipping the orders part.
Exchange data will be expensive. You can get websocket feed from broker.
Paid with Zerodha. Free with other broker APIs.
1 Like
@Shrikant_Shenoy Looks so simple and easy but I would like to add some lines.
Using ChatGPT is very good for development purposes, but if you don’t know coding and market dynamics, how can you develop a flawless system? ChatGPT is a tool, and it will not give you a strategy; if it can, can you guess what will happen in the market?
The market is going forward with two types of people:
- Experienced and highly skilled folks.
- Not experienced and retailer category.
Developing a flawless system is like climbing Everest. It will take years and years to complete the tasks. There is a lot more to say.
To conclude, using only chatbots for developing trading systems is a recipe for disaster. Before jumping into algo trading, you must learn what the market is and what coding is. There is a special department for learning market dynamics at foreign universities.
I know what I am writing because I almost climbed that mountain.
@Shrikant_Shenoy …
Bro, please gain more knowledge regarding algo trading… please just don’t try to dive straight in…
Markets can burn…
Algos in markets without knowledge can burn really really bad…
In algo, even 1 digit/alphabet error can cause bug which can create havoc…
Imagine a bad loop iterating over and over with no option to break…
Please be careful and try to learn more and more…
Cheers
Thanks a lot Man! I completely get you that I’m running into this world too fast. I have been trading since past 3 years and profitable since past two years. My profits have really scaled since past two years. The only challenge that I m facing is I’m working full time as well, so many a times I’m not able to adjust/manage my positions. So I thought of giving algo trading a try to fix this problem. But yes, you are right, I have a long way to go.
@Shrikant_Shenoy You have a full-time job, and you can not manage your position, so that’s why you want to try Algo.
Listen, if you want to use algo and code running in the background while you can concentrate on your job, this is actually a non efficient approach. Most efficient algo traders don’t do it that way. They will sit in front of the system from 9.15 to 3.30. They will watch each event in the market and monitor each trade they take.
Conclusion: Don’t run the algo in the background and be busy with your work. One single flaw or glitch will kill you. Trading and investing are full time jobs. Here is no option for part time.
Always remember that 95% of people are losing money in the market. The remaining 5% are highly skilled professionals, and the market is their life every time they learn new things. They improve their skills. Winning in the stock market requires high level skills and execute in a simple way.