RupeeCase Learn/Path 19/Intermediate
Algo, HFT and Backtesting
India's retail algo rules in practice, HFT against slower styles, microstructure, execution, honest backtests, overfitting and the deflated Sharpe ratio.
- 16modules
- 347 minof reading
- 30question path test
- Freewith a certificate
01The line
16 stops, 16 live.
A backtest is a claim, not a result. The rules SEBI set for retail algos, how execution and speed change outcomes, and the tests that separate a system from a lucky curve.
0of 16 done on this device
- 19.1What a backtest is, and five biases that ruin itA backtest knows how the story ended. Ways that knowledge leaks into a test, the size of the luck in a search, and a guard for each17 min
- 19.2Strategy metrics: CAGR, Sharpe, Sortino, drawdown and expectancyOne number never describes a record. Measures with a job and a blind spot, and why a seller and a buyer can share a Sharpe ratio16 min
- 19.3HFT, MFT and LFT comparedThree speeds of trading, and the one comparison that sorts them: the move you can expect against the bill to trade it18 min
- 19.4Colocation, latency and fairness: NSE's historyA case about who gets the data first. The orders, read as they are dated, and what a millisecond of Nifty movement is worth18 min
- 19.5Building a compliant retail algoThe framework as the circulars set it, turned into an architecture: documents and dates, routes, rate limiting, broker checks, and one model of why your own risk layer sets the size19 min
- 19.6Backtesting options on Indian dataThe chain, the lot, the expiry regime and the costs all carry a date. Four weekly trades show how little four trades say, and why a settlement is not a fill18 min
- 19.7Walk forward and out of sample testingFit on one stretch, trade the next, slide forward. Four test windows from India's data show what each fold meets, and the deflated Sharpe ratio prices the tries21 min
- 19.8Monte Carlo and bootstrap of trade resultsReplay the same trades in a different order and the worst fall moves. Block resampling keeps clusters, and no resample shows a loss it never held20 min
- 19.9Microstructure models: spreads, informed trading and price impactA quote pays for three things. Three models pull them apart, and one daily file cannot23 min
- 19.10Market making: inventory, adverse selection and quotingA quote is a price for risk. Inventory sets its centre, volatility and informed flow set its width, and charges decide whether it pays25 min
- 19.11Optimal execution and market impactTrade fast and you pay impact; trade slowly and you carry risk. A schedule is a chosen exchange rate between the two25 min
- 19.12HFT economics and the latency raceA stale quote is the prize and entry spends it. Solve the model, price the ticket from NSE circulars and set it against tax per trade22 min
- 19.13Backtest overfitting: deflated Sharpe, PBO and multiple testingForty eight premium selling rules, one winner. Count the tries, deflate the Sharpe ratio, haircut it and work the overfitting probability by hand27 min
- 19.14Financial machine learning done carefullyThe model is rarely the weak point. Labels, the cuts of the data, the count of tries and the size are. One model scored four ways on Nifty data shows the gap26 min
- 19.15Expiry day market integrity: a SEBI interim order, FutEq limits and surveillanceAn interim order is an allegation with a right of reply. Read it beside the position limits and settlement rules that followed, in date order23 min
- 19.16Capstone: a research note on an Indian derivatives questionWrite the card first, correct for overlap and count every variant. A complete worked note shows the steps, and the rubric is public29 min, path test
- 10.3Algo trading in India: what is allowed for retailTaught in module 10.3, Systematic Execution in India: APIs, Algos & SEBI Rules11 min
- 10.1NSE microstructure: order book, tick size, auctions and impact costTaught in module 10.1, How Orders Actually Work: Market Microstructure India14 min
- 10.1Orders and execution: limit, market protection, slicing, VWAP and TWAPTaught in module 10.1, How Orders Actually Work: Market Microstructure India14 min
02Outcomes
What you will be able to do.
- 01Say what SEBI's retail algo framework asks of a broker and a user
- 02Name the biases that flatter a backtest, and how to remove them
- 03Run a walk forward test and read its out of sample result
- 04Explain why more parameters tried means a higher bar for a Sharpe ratio
03Certificate
Pass the path test.
Keep the proof.
- 1Read the modules and try each quick check (optional)A pass gives that module's own certificate
- 2Take the 30 question path test21 correct to pass, drawn from 415 questions
- 3Get the certificateWith an ID and a QR code
04Questions
About Path 19.
What does Path 19, Algo, HFT and Backtesting, cover?
India's retail algo rules in practice, HFT against slower styles, microstructure and execution, honest backtests, walk forward testing, overfitting and the deflated Sharpe ratio.
Can a retail investor run an algo in India?
Yes, through a broker under SEBI's retail algo framework, fully in force from 1 Apr 2026. Module 10.3 covers the rules; this path covers building and testing a system within them.
Does a good backtest mean a strategy works?
No. A backtest is a claim about the past. The path covers the biases that flatter it and the out of sample tests that separate a system from a lucky curve.
Explore next
Where to go next.
- QuestionsQuestions on futures and optionsShort answers, each with a dated chart
- ToolOption payoff builderLegs on a dated Nifty chain, breakevens and charges
- Free module 19.1What a backtest is, and five biases that ruin it17 min read
- Free module 19.2Strategy metrics: CAGR, Sharpe, Sortino, drawdown and expectancy16 min read
- Free module 19.3HFT, MFT and LFT compared18 min read
- PillarDerivatives and QuantFutures, options, Greeks and more, from dated NSE data
Community
Join my WhatsApp group.
Scan the code, fillFill one short form, and join my WhatsApp group. Slides, sources, factsheets and the rebalance logs live there, and members join a daily Google Meet with me.
Education only, not investment advice, a research report or a recommendation to buy, sell or hold any security. RupeeCase (QC Alpha Technologies Pvt Ltd) is not registered with SEBI as an investment adviser or research analyst. Contracts and prices shown are for illustration only, come from NSE end of day files at least 30 days old, and are not recommendatory. Derivatives trading carries a high risk of loss.