Learn Algo Trading with Python | Codes | Youtube Series

@Tradehull_Imran Please help me installation on MacBook Air OS system

@Tanay_Banka @Subhajitpanja

@Subhajitpanja , the solution provided is nearly correct, yes the expiries were incorrect :+1:

@Tanay_Banka

Do check line no 33

ce_name, pe_name, strike = tsl.ATM_Strike_Selection(‘NIFTY’,‘05-09-2024’)

the contract is already expired.

Hi @Manish_Goel

I will send the solution tomorrow, as market is open
till the do send me complete code screenshot also

Hi @nikhil_shinde
The login and WebSocket data connection was successful, since the market is closed as of now therefore we are not receiving the data.

Do run it on Monday, and let me know if you receive data properly

Hi @Vijen_Singh
We are working on the updated version for library for release,
MAC OS support will be covered in next version. ETA 30 OCT

I too face same issue. It just stop after below.

Reading existing file all_instrument 2024-10-20.csv
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!

Data is not getting updated in the excel. I do have the Dhan DATA API subcription.

Any update on this ? Also - if i add other columns with static data into the websocket sheet, can i then take an output (via some analysis) into a separate sheet/excel which is also updated live ? Or is it better to create a db of the static columns and get a filtered result only from the code itself? Hope these things are covered in the live strategy classes :crossed_fingers:
Thanks.

It works now with the updated websocket file…tried in the live market …datas are getting populated in the Excel sheet

1 Like

@Rahul_Dangat @ujjwal_mh
Do try code in live market and let me know if its working fine

If any error send complete error screenshot and screenshot of the excel watchlist

1 Like

Hi @KalpaTrader
It is better to do analysis on code itself and not on excel. How to analyze data on our entry/exit conditions is described in upcoming lectures.

Hi @Manish_Goel
This is just a warning and it can be suppressed. (suppressing wont cause any harm to code execution)
add below code

import warnings
warnings.filterwarnings("ignore", message="Parsing dates in.*")

1 Like

Thanks @Tradehull_Imran sir

Hi @Tradehull_Imran,

How can we get previous day 5 min candle data… i want to know the value of EMA 20 or EMA 50 of 5 mins at the opening of market?

OR

how can we extract previous data in 5 min candle form… i can get intraday data of 5 min candle… but when we want previous day data… it is giving day candle wise.

Thanks in advance

Hi @Tradehull_Imran,

I am getting SSL certificate error now.

I ran the Dhan_websocket SSL_issue_fixed file also but same SSL certificate error

Hi @rahulcse56
I need to check on this one… will update you on this.

Hi @nikhil_shinde
Follow these steps

Thanks… waiting for your reply

#tradehull_support_library

tsl = Tradehull(client_id,access_token)

intraday_hist_data = tsl.get_intraday_data(‘NIFTY’,‘NSE_IDX’,1)

#previous_hist_data = tsl.get_historical_data(‘NIFTY’,‘NSE_IDX’,12)

print(intraday_hist_data)

not working

1 Like

When we are running install libraries.bat, it’s showing this. Please help."