The Honest Backtest
Cover of Build Your Own Algo Trading System
The Honest Backtest · Book 2

Build Your Own Algo Trading System

Designing, Testing and Running Systematic Strategies in Indian Markets

Kindle, paperback and hardcover. In India, the print editions are printed by Notion Press.

Harish Kumar Krishnappa · Paperback, 400 pages · ISBN 978-93-345-9898-8 · Kindle ASIN B0HQPSXFVK

Most trading systems don't fail because the idea was bad. They fail in the plumbing.

A data error. A fill that could never have happened. A job that silently didn't run. A position the code believed it had closed. This is a builder's guide to systematic trading in Indian markets: it takes a trading idea all the way to running code, and shows how to keep that code honest.

Inside, you will build

  • The seven parts of a trading system, and one small interface that keeps your code independent of any broker
  • A data layer with checks for ten traps that quietly corrupt Indian market data
  • A backtester with current Indian costs and fills you could actually get
  • A robustness harness: friction sweep, random-entry benchmarks, slicing by year and regime, the one-minute fill-delay test and walk-forward tuning
  • Case studies from intraday index systems, option selling, expiry day, a covered-call overlay, swing trading and a long-term compounder
  • State, reconciliation, kill switches that never block an exit, scheduling and alerts, and the path from backtest to paper to live
What you need.
Python 3.10 or later and the ability to read it. No broker account and no paid data: every example runs on an in-memory paper broker and synthetic data. The companion code includes no market data and no connection to any broker; you supply your own data and write one small adapter for your broker.

New to systematic trading? Start with Book 1, The Honest Backtest, which tells the same research from a trader's side, without code.