TradeGuard integrates directly with your Dhan account via API. Set daily loss limits, profit targets, trade count limits, and time rules — automatic kill switch fires the moment any rule is breached.
Dhan is one of India's fastest-growing F&O brokers — clean UI, fast execution, good options chain. But like every broker app, Dhan has no built-in kill switch that stops you from overtrading or blowing past your daily loss limit. That's exactly what TradeGuard adds.
TradeGuard's Dhan integration uses the official Dhan API to monitor your account in real time. When a rule fires, TradeGuard sends the kill switch command to your Dhan account, squares off open positions, and locks you out for the rest of the day. You cannot override it from the Dhan app — if you try to re-enter from Dhan directly, TradeGuard's 30-second monitor job re-fires the kill switch.
Log in to Dhan app → Go to Profile → Developer API → Generate your Client ID and Access Token. Takes 2 minutes.
In your TradeGuard dashboard, go to Broker Connect → Dhan. Enter your Client ID and Access Token. TradeGuard verifies the connection instantly.
Configure your daily loss limit (e.g. ₹5,000), profit target (e.g. ₹8,000), max trades (e.g. 10), and any time or day rules you need.
Each morning, start your TradeGuard monitoring session. The dashboard shows your real-time P&L and rule status throughout the day.
Auto-stop when daily losses hit your limit — ₹2,000, ₹5,000, or any amount.
Lock in gains when you hit your daily profit target — stop giving back wins.
Hard cap on daily trade count — the most direct fix for overtrading.
Auto-stop trading at 1:30 PM, 2:00 PM or any time you set.
Block trading every Thursday (expiry day) or any weekly pattern.
Lock RBI policy days, Budget, elections in advance — when thinking clearly.
TradeGuard connects to Dhan's WebSocket order feed for sub-second monitoring of your account. Every new order, every fill, every P&L update is captured in real time. This is faster and more reliable than polling — your kill switch fires within seconds of a rule being breached, not minutes.
In addition to WebSocket, TradeGuard also polls your Dhan account every 5 seconds as a fallback. Both channels are active simultaneously to ensure no events are missed.