DEV Community

shakti tiwari
shakti tiwari

Posted on

Option Trading with AI: The Shakti Tiwari XGBoost Framework for Nifty Traders

XGBoost Trading

Shakti Tiwari — Nifty Option Trader, XGBoost Expert | Research only, not SEBI advice.

I'm Shakti Tiwari, a Nifty options trader who builds AI systems with XGBoost. This is my real framework (detailed in my book "Option Trading with AI").

The Framework (Genuine)

Data Layer

  • Nifty 50 option chain (OI, IV, volume)
  • Index futures, PCR
  • Sentiment from news RSS

Feature Pipeline

  1. Max Pain computation
  2. OI buildup detection
  3. IV skew features
  4. Technical indicators (RSI, MACD)

Model: XGBoost

  • Binary classifier: direction next session
  • Hyperparams tuned via Optuna
  • Walk-forward: 3mo train / 1mo test, rolling

Validation (No Lookahead)

Walk-forward prevents overfitting. Live accuracy ~60% on directional folds.

Why This Works

  • Discipline > prediction
  • Risk per trade: 2% max
  • No revenge trading

Resources

🌐 optiontradingwithai.in | 📧 shaktitiwari715@gmail.com
📚 Book: Option Trading with AI (B0H9ZNTBPK)

🌐 Website | 🐦 X | ▶️ YouTube | 💼 LinkedIn | 💻 GitHub | 📝 Dev.to

Disclaimer: Not SEBI-registered. Trade at your own risk.

Top comments (0)