Over the past few months I built a fully automated NIFTY 50 options trading
system on Zerodha Kite Connect. Wanted to share the architecture and get
feedback from people who’ve done similar things.
What it does:
- Reads VIX, RSI, MA20, ATR, VWAP every 10 seconds from Kite
- Picks a strategy automatically based on market conditions:
- RSI extreme → Iron Condor
- Strong trend up/down → Long CE / Long PE
- Low VIX (< 14), no trend → Iron Butterfly
- Neutral/choppy → Iron Condor
- Places all 4 legs, monitors, and closes the trade — no manual intervention
Risk controls built in: - Daily loss limit (halts for the day if hit)
- Drawdown guard
- Position reconciler (detects if app state mismatches Zerodha)
- Kill switch (closes all positions instantly)
- Telegram alerts for every entry, exit, and error
- Windows watchdog that auto-restarts the bot if it crashes
What I learned the hard way: - Condor leg adjustment (rolling) needs to sync both flat fields AND the
legs array — got burned by a data inconsistency after a live roll - Position reconciler is non-negotiable for live trading — the broker
state and app state can diverge silently - Heartbeat monitoring + Telegram is the only way to sleep at night
while the bot is running
Currently running on paper mode before going fully live. Happy to discuss
strategy logic, risk design, or Kite API quirks.
Has anyone else built something similar on Kite? What exit conditions do
you use for Iron Condors?