How deenadayalans/nsebacktest works
This is a Nifty/Sensex algorithmic-trading toolkit: it downloads and stores market data, evaluates several intraday and options strategies, and supports live alerts and automated order execution. The practical workflow runs from Kite-backed data through strategy analysis to backtesting or live monitoring, with trade journaling and option-pricing helpers supporting the process. The README describes an LLM-assisted paper-trading workflow, but its package paths do not match this repository’s flat file tree. Some links below rely on the SOURCE INDEX; unsampled implementation details are not assumed.
Main entry points: kite_data.py Historical data · live_alerter.py Live alerter · oeh_reversal.py OEH reversal · options_utils.py Option pricing
Components 23
Market data
- Historical data
kite_data.py - Spot download
download_data.py - Options download
download_options.py - Kite login
login.py
Strategy research
- Backtesting
backtest.py - Intraday backtest
intraday_backtest.py - ORB analysis
orb_analysis.py - OEH reversal
oeh_reversal.py - Open-high strategy
open_high_strategy.py - Smart options
smart_options.py - Options backtest
options_backtest.py
Live trading
- Live alerter
live_alerter.py - Automated execution
auto_trader.py - Paper trading
paper_trader.py - LLM signals
signal_generator.py - Live launcher
start.py - Price watch
price_watch.py
Options analysis
- Option pricing
options_utils.py - Real options
real_options.py
Configuration and records
- Trading settings
settings.py - Trade journal
trade_journal.py
Other components
- Trader
- Kite Connect
Connections 34
- Trader → Live launcher: starts
README.md - Live launcher → Live alerter: launches
start.py - Live alerter → Historical data: loads data
live_alerter.py - Live alerter → Trading settings: reads config
live_alerter.py - Live alerter → OEH reversal: uses strategy
live_alerter.py - Live alerter → Automated execution: dispatches trades
live_alerter.py - Live alerter → Trade journal: records signals
live_alerter.py - Price watch → Live alerter: uses alerts
price_watch.py - Spot download → Historical data: downloads data
download_data.py - Options download → Historical data: uses data layer
download_options.py - Spot download → Trading settings: reads config
download_data.py - Options download → Trading settings: reads config
download_options.py - Kite login → Trading settings: reads credentials
login.py - Historical data → Kite Connect: fetches candles
kite_data.py - Kite login → Kite Connect: authenticates
- Backtesting → Historical data: loads history
backtest.py - Intraday backtest → Historical data: loads history
intraday_backtest.py - ORB analysis → Historical data: loads history
orb_analysis.py - ORB analysis → Intraday backtest: uses backtest
orb_analysis.py - OEH reversal → Historical data: loads history
oeh_reversal.py - OEH reversal → Option pricing: uses pricing
oeh_reversal.py - OEH reversal → Real options: uses options
oeh_reversal.py - Open-high strategy → Historical data: loads history
open_high_strategy.py - Open-high strategy → Option pricing: uses helpers
open_high_strategy.py - Smart options → Historical data: loads history
smart_options.py - Smart options → Option pricing: uses helpers
smart_options.py - Options backtest → Historical data: loads history
options_backtest.py - Options backtest → Option pricing: uses pricing
options_backtest.py - Live alerter → Kite Connect: streams market data
- Trader → Paper trading: paper trades
README.md - Paper trading → LLM signals: requests signals
README.md - Paper trading → Kite Connect: uses live feed
README.md - Automated execution → Kite Connect: places orders
auto_trader.py - Automated execution → Live alerter: sends alerts
auto_trader.py