Beginner

Case Study: Backtesting a Basic Momentum Strategy on Indian Stocks

A hands-on, end-to-end case study for coders and quant-curious engineers who have never run a backtest before. You will take one clearly specified idea, buying the NSE stocks that have risen the most over the past year and rebalancing monthly, and turn it into a working Python backtest step by step. Along the way you will source and clean Indian price data, handle splits and bonuses, avoid survivorship and look-ahead bias, build the ranking and rebalancing engine, and then subtract the brokerage, STT, impact cost and capital gains tax that separate a pretty equity curve from a real one. The course ends with a verdict on whether basic momentum has actually worked in India, and a checklist for what to test before risking a rupee.

Momentum InvestingBacktestingPython for FinanceNSE Price DataSurvivorship BiasTransaction CostsDrawdowns and Sharpe RatioOverfitting
MODULES
4
DURATION
~2.5 hrs
TRACK
Algorithmic Trading

What You'll Master

What cross-sectional momentum is, why it has persisted in Indian and global markets, and what the Nifty200 Momentum 30 index tells you about it
How to write a complete, testable strategy specification before touching any data, so you cannot move the goalposts later
How to source NSE price data in Python, adjust it for splits, bonuses and dividends, and build a clean monthly price panel
Why survivorship bias and look-ahead bias quietly inflate almost every beginner backtest, and how to keep them out of yours
How to compute 12-1 momentum scores, rank stocks, select a portfolio and simulate monthly rebalancing in pandas
How to price Indian transaction costs realistically: brokerage, STT, exchange charges, impact cost and slippage
How to judge a backtest with CAGR, volatility, maximum drawdown and Sharpe ratio, and why momentum crashes matter
How to check whether your result is robust or just a lucky parameter choice, and what to do before going live
Access Level
LEARNER
Everything included
Full Text Playbooks
Actionable Exercises
Mobile Reading Mode
Lifetime Updates

Curriculum Breakdown