Dhan Cloud Tradehull Codebase Setup

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

  1. Click Create New Strategy.

  2. Select Upload Folder.

1


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.

2


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

3


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

4


Step 8: Run the Algo

Click Run to start your algorithm on Dhan Cloud.

Sample Output -

5


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.