Learn Algo Trading with Python | Codes | Youtube Series

Hi @Msk92

def getLtp(tsl, call_list):
    time.sleep(3)
    print("getting ltp ...", call_list)
    ltp_data = tsl.get_ltp_data(names=call_list)
    print(ltp_data)
    return ltp_data

getLtp(tsl, call_list)

above code is function only, you may add sleep there as well
Although, it also depends at what rate the function is being called.

Hi @Aijaz_Ahmad

Level 3 market depth access via api is a feature request.
raising feature request for the same @RahulDeshpande @Hardik

1 Like

Hi @Himansshu_Joshi

Yes cloud deployment and management is in draft list of topics for next content playlist.

Hi @Jatin_Solanki @Rajashekhar_Rangappa @Lucifer_Jacob

For MAC the files are same, no changes.

code files to use : Learn Algo Trading with Python | Codes | Youtube Series

Earlier there was a “excel issue” as mac does not inherently support it, which was resolved after introduction of Dhan_Tradehull_V2

for Dhan_Tradehull_V2 see : Learn Algo Trading with Python | Codes | Youtube Series - #952 by Tradehull_Imran

for MAC OS Talib issue see : Learn Algo Trading with Python | Codes | Youtube Series - #1048 by Tradehull_Imran

Also finally we need to run the code on server only,
MAC server are way more expensive than windows server

The cost of a 4GB, 2 VCPU Mac server on Google Cloud : ~ Rs 25000 +
The cost of a 4GB, 2 VCPU Windows server on Google Cloud : ~ Rs 2400

So you can directly use windows server, for learning algo trading
see google cloud : https://www.youtube.com/watch?v=AanhtRcqsDI

Hi @vinay_kumaar

I would like to share this,

Backtesting is my favorite part of Algo Trading, Without it it’s super-hard to create even okeyish strategies.

“why would you invest in something that you don’t know if it will work, only to realize after 6 months that the strategy is failing”
It so much so important, that If a strategy is not back tested, then it’s simply gambling

However it’s a in massive effort concept so much so that it would require a separate series for itself.
I will wait for majority students to show interest in this topic,
If interested, then definitely I will introduce you to the “:anatomical_heart: Heart of Algo Trading : Backtesting”

Note : reply to this post for me to record interested students.

5 Likes

Hi @Aijaz_Ahmad

I am bit unclear on the question,
Is the question on how to login and get LTP + historical data feed ?

Hi @VISHWANATH_YERRAMSET

see this link : Learn Algo Trading with Python | Codes | Youtube Series - #952 by Tradehull_Imran

also do update me when you are able to receive ltp with the new method

Hi @Qaisar

see this solution : Learn Algo Trading with Python | Codes | Youtube Series - #860 by Tradehull_Imran

1 Like

Hi @Tradehull_Imran Sir ,
I am interested in the codebase v2 as well as Backtesting.

1 Like

Hi @Vasili_Prasad
This should not be the case
do share screenshot of the message box

if not solved, maybe we can raise the issue to Dhan team.

Final video of this series updated :hugs: :smiling_face: :smiling_face:
I will try this as soon as possible (with last two video)

3 Likes

Hi @SUKANTA_MONDAL

Rs. 60000 + GST, is the Tradehull Algorithmic Trading course fee.
We like to call it “investment” as its a investment in education.

I aspire to be your student in the future. @Tradehull_Imran Sir.

2 Likes

You are absolutely true , sir I am waiting for Backtesting Video Series, sir…

1 Like

hi @Tradehull_Imran , Sir… where can i get EP:10 4th live algo Files,

Please share those files, sir…

“:anatomical_heart: Heart of Algo Trading : Backtesting”

Totally agree! I had the same thought in mind. We kindly request @Tradehull_Imran, @RahulDeshpande, and @Dhan to create a dedicated series on backtesting.

While one aspect involves integrating with the Dhan API, the other critical part is backtesting strategies. The final step would then be mastering algorithmic trading. A structured approach like this could be invaluable for the community.

3 Likes

Noted your feedback.

We need to check how best we can present it in the purview of compliance.

3 Likes

I am interested.

1 Like

Hi
@Tradehull_Imran
I apply algo working good
But one query

While all the conditions meet trade was initiated and also repeated trade not done while the algo is running because of traded = yes

But if I stop the file and then after I run the file

It takes new trade while already traded.

That means it is not detect the already taken trade

Please solve the querry

Thank you

I’m very keen to learn backtesting from you @Tradehull_Imran. The current series has been fantastic learning so far. Request you to pls do a series on Backtesting as well :pray:

1 Like