Learn Advanced Algo Trading Series | Codes | Youtube

@Tradehull_Imran
I am using mac os and don’t have excel on it. Is there any alternative that I can try for xlwings use case that you explained it in session 3?
Is it mandatory to use excel or we can achieve similar thing using some other approach?
Please assist me on this so I can follow you on next lectures. Currently stuck.

Hi @Skillet_Flash ,

Use the below code to get oi data for multiple scripts:

names = ['ACC','TCS']
quote_data = tsl.get_quote_data(names) 
oi_data = quote_data[names[0]]['oi'] # extract for ACC

Hi @Siddhesh_Amrute ,

Excel can be integrated with Python for storing order details or logs, but its use is not mandatory.
As an alternative to xlwings, you can use the openpyxl library:


import openpyxl
wb = openpyxl.load_workbook("file.xlsx")
sheet = wb.active
print(sheet["A1"].value)
1 Like

hi sir @Tradehull_Imran i want option chain oi data of nifty like 22200, CE PE… what code for nse fno NIfty? when i run my previous code its not send me both it only send one oi ce or pe

Hello @Tradehull_Imran
I observed that when we setup connection using Tradehull(client_id, access_token) it automatically downloads Instruments file with date appended to it and stores onto my local.

Also, it redownloads Instruments file even if it exists for same date which delays the process of execution when you restart the Algo.

Can you update Tradehull library code in such a way that:

  1. If Instrument file with current date is already exist then skip the download process
  2. Cleanup old instrument files

Thanks!

1 Like

Very Good Morning Sir, @Tradehull_Imran , @RahulDeshpande

Hello Imran Ali Sir, I request you to kindly post a code file exclusively meant for Paper Trading.

I think it will be of more use to people like me, who are Non-Coders. This will also help us to enter into market safely and know the nuances of trading, before implementing the actual trades. This way will definitely improve the clientele to Dhan (TradeHull).

Hope you will give a thought to it and help all of us sir.

VBR Prasad

Sir,

After taking on trade below error is coming at the time of scanning.

How to solve it

Hi @Tradehull_Imran ,

I observed that while fetching ltp value for any scrip we are not passing any exchange name.
In this case how Tradehull library is deciding which exchange should be used?

Example, NATURALGAS is available in NSE as well as MCX. How can I find which exchange data is used by get_ltp method to return ltp value. Also, can I change default exchange to retrieve more accurate value?

Thanks!

1 Like

Imran Sir,

Kindly guide how to deploy more than one Algo/Strategy at a time.

Pl cover in ongoing Advanced Algo Series

Dear Imran Sir,

Kindly guide, how to trade the opening price (9:08 AM).

If possible, please share a code snippet for automation.

Your Advanced Algo Series has been immensely helpful in our automation journey, and we’re eagerly looking forward to the upcoming sessions!

1 Like

Run Websockets.py file, after this update all commodity scrip name with respective exchange name, you will get LTP, ATP, Vol, OHLC… etc… Check Imran ali first web series… Session 3 tutorial…

Thank you for your response @utpalsingh .
I am already in Advance Algo series and we are not using websocket anymore for fetching LTP.
@Tradehull_Imran Can you please shed some light on this?

Kindly share me the sqn. py file to complete reaming code please form advance algo trading @Tradehull_Imran

Create separate code files and run them in parallel. This approach allows you to run as many algos as you want.

For example:

  • Nifty_5min_Scalp.py
  • BankNifty_5min_Scalp.py
  • MidcapNifty_5min_Scalp.py
1 Like

Sir @Tradehull_Imran as you mentioned about the Google Searches.py file in (Advanced Algo Trading Series | Episode 3) which contain each and every syntax and code structure , can you please share that file, It will be very helpful for us.

1 Like

Hi My code was getting the ltp till Friday. When I checked on satureday, ltp call is giving key error. I don’t know why? Updated my credentials, updated dhanhq and tradehull library but didn’t worked

is there any changes happened in the backen… please confirm

Thanks a lot. I will try it.

After run code some time below error is coming Please help how to resolved it

@Tradehull_Imran
please provide your google search.py file that you use multiple time in the video. i loved your file that contains a lot of helpful codes.