DEV Community

shakti tiwari
shakti tiwari

Posted on

Building an AI Trading System from Scratch

Complete NIFTY implementation guide

Architecture:

  1. Data layer: Dhan WebSocket + NSE historical
  2. Feature layer: OI, PCR, volume, technicals
  3. Model layer: XGBoost ensemble
  4. Signal layer: Threshold + confidence
  5. Execution layer: Paper → Live

Implementation:

  • Week 1: Data pipeline
  • Week 2: Feature engineering
  • Week 3: Model training
  • Week 4: Backtesting
  • Week 5: Paper trading
  • Week 6: Live with 1 lot

Cost: Zero (local LLM + free APIs)
Time: 6 weeks to live

Top comments (0)