Заказ на фриланс · Скрипты, боты и mini apps › Скрипты
NSE Options Dynamic Flip Trading Bot
- Бюджет: 1 335 ₽ – 11 123 ₽
- Раздел: Скрипты, боты и mini apps › Скрипты
- Опубликован: (МСК)
Project TitlePython Algo Trading Bot for NSE Index/Stock Options (Dynamic Flip & Premium Matching via Zerodha Kite / Dhan API)Project DescriptionOverviewI am looking for an experienced Python algorithmic trading developer to build an automated, rule-based options selling and dynamic reversal system for Indian markets (NSE F&O) using Zerodha Kite Connect API (or Dhan API, configurable). The system must track a user-defined reference price on an underlying Spot or Futures instrument across a configurable timeframe and dynamically sell, cover, and flip between Put (PE) and Call (CE) options based on candle close conditions and target premiums.1. User-Configurable Inputs (UI / Config File)Before market open or mid-session, I must be able to set and update the following parameters via a clean local web dashboard (Streamlit/Flask) or structured config file:Underlying Instrument: Any NSE Index or Stock (Spot or Futures — e.g., NIFTY FUT, BANKNIFTY SPOT, RELIANCE FUT).Reference Level (Trigger Price): e.g., 24000Chart Timeframe: Selectable candle interval (e.g., 1-min, 3-min, 5-min, 15-min). Default: 3-min.Initial Target Option Premium: Starting option price to sell (e.g., 145).Profit Target Option Premium: Target exit price for the active short option (e.g., 97).Expiry Cutoff Date: Default is the 11th of the current month (must be editable/flexible).Position Sizing: Number of lots per trade.Execution Mode: Paper Trading (Live tick simulation) vs. Live Order Execution.2. Core Trading & Execution LogicA. Monthly Expiry Selection RuleOn or before the Cutoff Date (e.g., $\le$ 11th of the month): Select contracts from the Current Month's Monthly Expiry.After the Cutoff Date (e.g., $>$ 11th of the month): Select contracts from the Next Month's Monthly Expiry.Note: This cutoff check applies both at initial entry and every time a flip/reversal occurs.B. Initial Entry LogicMonitor the selected Chart Timeframe (e.g., 3-minute candle close) of the Underlying Instrument.Bullish Trigger (Underlying Candle Close $>$ Reference Level):Scan the live option chain for the active expiry (per Rule A) and identify the Put (PE) strike whose Last Traded Price (LTP) is nearest to the Initial Target Premium (e.g., 145).Place a SELL order for that PE strike.Bearish Trigger (Underlying Candle Close $ $ 11th = Next Month Expiry).Scan the active expiry's Call (CE) option chain to find the strike with a live premium matching the covered PE exit price (167).Tie-Breaker / In-Between Pricing Rule: If no CE strike trades at the exact covered price (167), always select the strike with the higher premium (e.g., if available CE premiums are 158 and 181, select 181).SELL the selected CE strike and hold it as long as candle closes remain below the Reference Level (24000).Scenario 2 (Holding Short CE, Underlying Candle Closes $>$ Reference Level):Execute the exact mirror logic: cover the active Short CE, capture its actual exit price, determine the active expiry based on the cutoff date, select the Put (PE) strike nearest to (and $\ge$ if in-between) that exit price, and SELL the PE.D. Target Exit & Cycle CompletionTarget Hit Condition: If the currently active short option (whether the initial PE/CE or a flipped CE/PE) drops to or below the Original Profit Target Premium (e.g., 97), immediately BUY to cover the position to book profit.Once the profit target is hit, the strategy cycle terminates (or enters standby until re-armed by the user).3. Technical & Compliance RequirementsLanguage & Stack: Python 3.10+, official broker SDK (kiteconnect / dhanhq), WebSocket streaming for real-time ticks (no slow REST polling for LTP).Candle Synchronization: Accurate 3-minute (or selected timeframe) OHLC candle builder synchronized with exchange timestamps so signals trigger strictly on candle close.Order & Risk Safeguards:Market protection on market/SL orders (per NSE/SEBI 2026 API guidelines).Duplicate-order prevention and live position reconciliation with the broker order book.Emergency "Square-Off All / Kill Switch" button and daily max-loss cutoff.Logging & Alerts: CSV/SQLite trade log recording every signal, candle close price, strike selected, entry/exit fill price, and MTM P&L, plus real-time Telegram bot alerts for every entry, flip, and target exit.Deployment: Clean, documented source code delivered with setup instructions for running on a Windows machine or Linux VPS with a static IP.
Похожие заказы
- Affiliate Partners for AI Review Automation824 ₽ – 2 471 ₽ · 01.12.2026
- Инженер по автоматизации тестирования (auto)Бюджет по договорённости · 01.12.2026
- 4BHK MEP & Wired Automation11 123 ₽ – 33 368 ₽ · 01.12.2026
- Авто постинг коменты в тик ток500 ₽ · 01.12.2026
- Native speaker review: Arabic, Farsi, Dari, Pashto scripts2 471 ₽ – 20 592 ₽ · 01.12.2026
- Python Playwright Post-Login Automation1 335 ₽ – 11 123 ₽ · 01.12.2026
- Автоматизация обработки описаний товаров65 000 ₽ – 195 000 ₽ · 01.12.2026
- WhatsApp-Interakt Lead Automation1 335 ₽ – 11 123 ₽ · 01.12.2026