Dhan Cloud Tradehull Codebase Setup Guide
Hi @Everyone,
Follow the steps below to set up the Dhan Cloud Tradehull codebase.
Step 1: Download the ZIP File
Download the Tradehull codebase ZIP file from the shared drive.
Drive Link: Tradehull Codebase for Dhan Cloud
Step 2: Log in to Dhan Cloud
Log in to your Dhan Cloud account and open the Dhan Cloud section.
Step 3: Create a New Strategy
-
Click Create New Strategy.
-
Select Upload Folder.

Step 4: Upload the ZIP File
Upload the ZIP file or the project folder.
Once the upload is complete, all project files will be visible.

Step 5: Verify the Project Files
The uploaded project contains the following files:
- main.py – Write your strategy logic here.
- Dhan_Tradehull_cl.py – Contains all Tradehull helper functions.
Step 6: Add Dependencies
Open the Dependencies tab, add the following packages, and click Save.
dhanhq==2.2.0
pandas==2.2.3
numpy==2.1.0
pytz==2026.1.post1

Step 7: Configure Environment Variables
Open Env Variables, add the following credentials, and click Save.
Important: Do not share these values with anyone.
CLIENT_CODE
TOKEN

Step 8: Run the Algo
Click Run to start your algorithm on Dhan Cloud.
Sample Output -

Final Note
- Update main.py only to implement your trading strategy.
- Dhan_Tradehull_cl.py contains the Tradehull functions and should not be modified unless required.