@Tradehull_Imran Very much Interested sir.
@Tradehull_Imran
Thankyou Sir,
It is working flawlessly in the live market, but please update with exit conditions
Hi @Tradehull_Imran
I do understand we are here to learn Algo trading not Sublime text shortcuts but Sir its very much time consuming to create a watchlist, so if its possible then please help me with the shortcut for this.
Thanks
@Manish_Goel
explaining sublime text shortcuts , is a bit more difficult to make understand in written way on forum.
It can also be done most easily by Chatgpt
see this link as an example : https://chatgpt.com/share/6719e2f7-20ec-800c-9f73-16ec94a86e25
Noted…Thanks @Tradehull_Imran Sir
@Tradehull_Imran Sir,
For me Dhan_websocket.py (from 6. Session6- 1st Live Algo ) not updating excel sheet.
Although other session’s Dhan_websocket.py working perfectly for excel file update.
I will read those those tutorial properly. But I can’t test in the evening probably will update you tomorrow or next week.
But I found some significant changes in Dhan_websocket.py
same file, Left one from 1st live Algo and right one Ltp Based Strike Selection
from dhanhq import marketfeed
Sir, I will wait for your feedback
Hi @Tradehull_Imran ,
I am getting below error
C:\Automation\DhanAPI\Session_6_1st_live_algo\1st live algo>py “Dhan_codebase usage.py”
-----Logged into Dhan-----
reading existing file all_instrument 2024-10-24.csv
Got the instrument file
Traceback (most recent call last):
File “Dhan_codebase usage.py”, line 17, in
chart_data[‘rsi’] = talib.RSI(chart_data[‘close’], timeperiod=14)
TypeError: ‘NoneType’ object is not subscriptable
after running the session 6 code. can you please tell me why I am getting this error?
Hi,
Is session 6 files working for you perfectly?
Have you tested yet ?
Dhan_websocket.py was updated, since Dhan api was upgraded to dhanhq 1.3.3
Check below link point 0
So the file on right hand side of screenshot is latest one and do use that one only.
will update same in session 6 files
Hi @ddeogharkar
Do check this post for solution
Hello @Tradehull_Imran Sir, I have started watching this series from yesterday. The sessions are really awesome. Installation done completely. At present I am at Session 3, Live LTP working fine.
Issues:
- Client ID and Valid Token entered from Dhan API, but No response for available balance. Pdb is not producing any output.
- Also i can see some numbers which I underlined in red in my screenshot. These are not there in your videos. Is there any error or issue at my end?
Please guide
Why it is buying only one stock when we had already defined qty.
Hi @TusharKB
-
Send complete code screenshot as well
-
The random text you are seeing is rendering issue
Here’s a breakdown of some typical components:
\033[ or [ starts the escape sequence.
Numbers like 36;01m define attributes (e.g., text color, boldness).
m typically ends the escape sequence.
@Tradehull_Imran sir,
So just a little clarification is required from you on this. I have that
I already did same before other session ( EX: 2nd session) should I use that file or I already mentioned other session’s same file working perfectly. Can I use any of them ?
Yes any of them can be used.
Thanks @Tradehull_Imran its started working now
@Tradehull_Imran Sir, This is the same file from Session 3 folder. I followed exactly same steps as mentioned by you in Video. Still no Pdb response on available balance.
I am a non technical guy, so I did not understood what you said about components breakdown. Also guide how to resolve that numbers too.
Error-Free Watchlist:
I asked ChatGPT for a list of the top 100 Nifty NSE stocks to create a watchlist for Python. After copying the list into Python, I also added it to a Webstock Excel file and ran websocket.py. I removed any stocks from the watchlist in the algo file that didn’t return an LTP in Excel. Everything worked smoothly, without any errors or None type charts.
@Tradehull_Imran Sir, available balance issue resolved. I can see the available balance now.
Only issue pending is the render issue components breakdown \033 [36;01m etc numbers. Please guide how to eliminate this.




