Trading automation used to be the domain of hedge funds with million-dollar tech budgets. Not anymore.
I recently built my own browser-based automated tool that executes Nifty and Sensex options, Short Straddles and Strangles, with one click or on a schedule. The total cost? Just $25 using Lovable AI.
No team of developers. No months of coding. Just me, an API documentation, and clear prompts.
What the Tool Does
The Equity Options Portal connects directly to the Dhan API and lets me configure and execute options strategies in seconds. Here’s what it supports:
Strategy Selection — Choose between Short Straddle (sell ATM Call and Put at the same strike), Premium Based (select strikes based on a target premium), or Spot Based Strangle (select OTM strikes at a percentage from spot).
Scheduling — Set up trades to execute at my preferred time. No need to sit in front of the screen waiting for the right moment. The system handles it.
Risk Management — Built-in stop loss configuration as a percentage of entry price, so every trade has a defined risk from the start.
Live Market Data — Real-time Nifty and Sensex spot prices, automatic expiry date fetching, and an entry summary showing exact strikes, quantities, premiums, and stop loss trigger levels before execution.
How I Built It
The process was surprisingly straightforward:
I gave Lovable AI the complete Dhan API documentation as reference material. Then I described exactly what I wanted — a browser-based tool that could execute Short Straddle and Strangle strategies on Nifty and Sensex with scheduling capability and stop loss management.
In a few iterations of refining my prompts and testing, I had a working application. The key was being specific about requirements. Vague prompts give vague results. Clear, detailed prompts about the exact workflow I wanted from selecting the underlying index to reviewing the entry summary before execution made all the difference.
The kind of things a trader can accomplish with AI today is remarkable. Five years ago, building something like this would have required hiring developers, managing a project, and spending tens of thousands. Today, a trader with clear requirements and the right AI tools can build production-ready execution systems over a weekend.
I’ve made this tool accessible to all Dhan users at dhanauto.lovable.app. It’s a simple, basic tool created using AI for personal use but it works, and it’s free.
The barrier to building your own trading tools has never been lower.
