One NIFTY CE/PE research bot.
The package contains a Python signal engine, backtester, configurable risk rules, local Streamlit dashboard and an optional Kite Connect adapter.
Signal engine
Donchian, previous day and opening range breakouts are combined with EMA trend, VWAP, ADX, RSI, ROC, ATR and volume conditions.
Option selection
Bullish candidates map to CE and bearish candidates to PE. Choose ATM, ITM1 or OTM1 strikes; the synthetic backtest holds the entry strike through exit.
Position sizing
Whole lots are capped by planned stop risk, premium allocation, available capital and a closed trade drawdown budget. Auto sizing is the default.
Exit model
The backtest uses ATR stops and targets, breakeven and trailing rules, a maximum holding period and a time exit.
Data workflow
Use local Parquet or CSV, upload files, generate demo bars or fetch Yahoo NIFTY 5 minute bars. Large Parquet input has a streaming path.
Dashboard and outputs
Review market charts, qualifying signals, executed entries, trade ledger, equity and drawdown. Backtest trades can be saved to Parquet.
Optional ML research
A chronological signal filter and bounded exit/shadow research are optional. Automatic read-only collection cannot bypass data, validation, holdout or forward-evidence gates.
Optional Kite adapter
Kite Connect supports live charts and guarded automatic entries and exits inside the dashboard. Broker login and explicit live-session authorization are separate controls.