I need a robust, production-ready trend-following algorithm built on Zerodha’s KiteTicker WebSocket stream. The bot must read tick data for Sensex and Nifty option contracts in real time, identify directional breakouts, and fire fully automated orders through KiteConnect—no manual clicks. Alongside the fresh build, I want help ironing out up to ten nagging issues in my current codebase (think disconnections, mis-handled exceptions, or order-sync glitches). Clean, well-commented Python is preferred and I expect the final script, a concise README, and the set of fixes delivered together. Payment is released once everything runs live without errors on my end.