To automate trading on Dhan, register a Tradetron virtual server address in DhanHQ Trading APIs, paste your Dhan access token and Client ID into Tradetron, and deploy a strategy: Tradetron places the orders through Dhan's API, and you write no code. Dhan's access token lasts one day, so you generate a fresh one in Dhan and paste it into Tradetron each trading day.
Start Free — Connect DhanFree forever plan available.
Set it up once with these steps, in this order. Field names follow the Dhan connection form on Broker & Exchanges.
On Broker & Exchanges, click Add Broker, pick Dhan and save with placeholder details for now. This unlocks Enable virtual server.
On the broker's edit page, click Enable virtual server and pick a plan (from Rs 100 a month + GST). Tradetron emails you the server's address; Dhan accepts API orders only from an address you register with it.
Log in to Dhan, open DhanHQ Trading APIs and its IP setting, enter the virtual server's address in IP Address 1 or IP Address 2 (one is enough) and save.
In DhanHQ Trading APIs, click Generate Access Token and copy the token.
On Broker & Exchanges, paste the token into token and your Dhan Client ID into ClientID, save, then use the Click Here link on the broker card to check the token is recognised.
Build a strategy in the no-code builder or pick one from the marketplace, choose Dhan as the broker and deploy. Live Offline runs it on live prices and shows each signal without placing an order; Live Auto places the orders at Dhan.
Every trading day. Dhan's access token is valid for one day and does not refresh by itself. Generate a new one in DhanHQ Trading APIs each trading day and paste it into Tradetron.
Why the virtual server. Under SEBI's framework for retail algo trading, every Indian broker accepts API orders only from an address registered with it (all brokers from 1 April 2026). Your strategies run on Tradetron's servers, so the address Dhan needs is your virtual server's, never your home or office address.
Set up once. Trade forever. Here's how to get your Dhan account running on autopilot.
Use Tradetron's no-code builder to create entry/exit rules, position sizing, and stop-loss logic — no programming needed.
Link your Dhan account in minutes. One-time setup, then Tradetron handles order placement automatically.
Your strategy runs through market hours — scanning signals, placing orders, and managing risk while you focus on what matters.
Trade the segments you need, with the reliability professional traders demand.
Enable a Tradetron virtual server and register its address in DhanHQ Trading APIs, generate an access token on Dhan, and enter it with your Client ID in Tradetron.
Setup onceDhan's access token lasts one day: generate a fresh one in DhanHQ Trading APIs each trading day and paste it into Tradetron.
Takes ~30 secondsNeed step-by-step guidance? Read the Dhan connection guide →
No. Tradetron's builder is fully no-code; you can also deploy ready-made strategies from the marketplace in a few clicks.
Yes. Tradetron connects through Dhan's official API. You stay in full control of your account and funds.
Under the exchange rules for retail algo trading, every broker API session is logged out each day before the next trading day begins. So each broker asks you to log in again, or generate a new token, before you trade. It is not a Tradetron limit.
Yes. Tradetron is free to start — sign up with your email, build a strategy, and paper trade at no cost.
Enable a Tradetron virtual server and register its address in DhanHQ Trading APIs, generate an access token in Dhan, and paste the token and your Dhan Client ID into Tradetron's Broker & Exchanges page. Then deploy a strategy with Dhan as the broker; Tradetron places the orders through Dhan's API.
In Dhan, open My Profile > DhanHQ Trading APIs and click Generate Access Token. Copy it and paste it into the token field on Tradetron's Broker & Exchanges page, with your Dhan Client ID in ClientID, then use the Click Here link on the broker card to check it.
One day. It does not refresh by itself, so you generate a fresh token in DhanHQ Trading APIs each trading day and paste it into Tradetron before you trade.
Either IP Address 1 or IP Address 2 works: put your Tradetron virtual server's address in one and leave the other blank. Brokers let you change the registered address at most once a week, so copy it exactly from Tradetron's email.
Yes. Any Tradetron strategy can be backtested on 1-minute NSE and NFO history from January 2020 before you deploy it on Dhan. A backtest shows how the rules behaved on past data; it is not a forecast. See tradetron.tech/backtest/nifty-options.
Join thousands of traders who run their strategies on autopilot with Tradetron.
Get Started FreeRequest received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.