Building a Backtesting Engine Using Python and Backtrader
A hands-on build course for traders and aspiring quants who have outgrown spreadsheet and pandas one-liner backtests. You will assemble a complete event-driven backtesting engine on Backtrader: Indian data feeds from CSV and pandas, strategies with proper order handling, commission schemes that reproduce a real Zerodha contract note (brokerage, STT, exchange charges, SEBI fees, GST and stamp duty), slippage and volume rules, position sizers, and NSE futures with lot sizes and margin. You then measure results with built-in and custom analyzers, benchmark against the Nifty 50 TRI, and pressure-test every edge with parameter optimisation, walk-forward splits and Monte Carlo resampling. The course ends with a full momentum rotation backtest on Nifty 50 stocks and a clear map of what changes when a backtest moves toward paper and live trading under SEBI's retail algo framework. Built for quant analyst aspirants, prop desk applicants and systematising traders who can already write basic Python.