Algo / API / Strategy Codes | Youtube

This post will act as a central place to share all Python codes, resources, and useful links related to our YouTube videos on Algo, API, and AI-based trading.

All strategy implementations, API examples, and updated files will be added here as new videos are released.

Start Algo Trading with ₹1 Lakh Capital - Drive Link - here

Ultimate Scalping Strategy Using Algo Trading - Drive Link - here

Best RSI Value for Scalping - Drive Link - here

How to Build Static IP for Algo Trading - drive Link - here

Common Mistakes Beginners Make in Algo Trading - drive Link - here

3 Important Things Algo Traders Must Know - Drive link - here

Algo Strategy for Every Market Condition - Drive link - here

Find High-Momentum Breakout Stocks Automatically Using Algos - Drive link - here

Set Up Free Algo Trading on Dhan Cloud - drive link - here

Build and Deploy a Momentum Algo Strategy - drive link - here

Algo Trading for Beginners - drive link - here

If anyone is trying these strategies or codes and faces issues, questions can be asked directly in this thread, and users can also share improvements, variations, results, or suggest what should be built next so everyone in the community can learn and benefit together.

2 Likes

what to do now

Hi @Vimal_Kumar1

we need to place our libraries in Dependencies tab

Example Dependencies

pandas>=2.2.0
scipy>=1.13.0
dhanhq>=2.2.0
Dhan-Tradehull>=3.3.0
pyotp>=2.9.0
rich
TA-Lib

Hello sir, i am getting this popup when going to save my code in dhan cloud :Security violation in requirements.txt: line 3: package ‘Dhan-Tradehull’ is not in the approved package list. Contact support to request a new package

again this

how to get libraries

Hi @Vimal_Kumar1
There seems to be some update on Dhan cloud,
we are also checking on same,
will update you once solved

Could you please confirm sir?, whether this problem has been resolved or not as i am getting same error while saving the code: Security violation in requirements.txt: line 3: package ‘Dhan-Tradehull’ is not in the approved package list. Contact support to request a new package

Hi @JASWANT_SINGH
we are checking on it, we will update once solved

Hello @Tradehull_Imran Sir,

My question is in DhanHQ - Developer & API Console we have provision to schedule start time, but I could not find any end time. So how this will calculate billings? Or is it required to stop algo manually?

Thanks
Sudip Nath

Hi @SUDIP_NATH ,

When the algo stops after 3:15 PM, that time is considered the exit time, and the billing is calculated accordingly.

At the code level, the algo can be stopped using a break statement.

1 Like

Hello @Tradehull_Imran sir,

It is still not working, whether this problem is resolved or not, or i am doing something wrong. I am getting same error: while saving the code: Security violation in requirements.txt: line 3: package ‘Dhan-Tradehull’ is not in the approved package list. Contact support to request a new package

Hi @JASWANT_SINGH

‘Dhan-Tradehull’ is not in the approved package list.
we are in process of getting codebase approved for Dhan cloud.

I think we may be able to get this by next week. We will update as soon as its approved.

Hii how to install cursor as it is installed but the extension option is not showing

Hi @Deep_Jyoti_Neog ,

If Cursor is installed but the Extensions icon is not visible, try these steps:

Step 1: Open Extensions Directly

  • Press Ctrl + Shift + X
  • This should open the Extensions panel.

Step 2: Check Activity Bar

  • Click ViewAppearanceShow Primary Side Bar
  • Ensure Activity Bar is enabled.

Step 3: Reset View Layout

  • Press Ctrl + Shift + P
  • Type “View: Reset View Locations”
  • Press Enter

Step 4: Enable Extensions View

  • Press Ctrl + Shift + P
  • Search “Extensions: Focus on Extensions View”
  • Press Enter

Step 5: Restart Cursor

  • Close Cursor completely.
  • Open it again.

Step 6: Reinstall Cursor (if still not visible)

  • Uninstall Cursor.
  • Delete the Cursor settings folder if required.
  • Install the latest version from:
    Cursor Official Website