Tathagat Agrawal

Backtest Lab

Design trading strategies visually or as JSON, backtest them on US and Indian stocks, and optimise their parameters with built-in overfitting diagnostics.

November 2026 · First working version · Source on GitHub

Result: Six starter strategies, 24 indicators and parameter optimisation with walk-forward validation and a Deflated Sharpe Ratio check, all cross-validated against an independent backtesting engine.

The problem

Most retail backtesting tools make it easy to find a strategy that looks great on past data and hard to tell whether it will hold up. I wanted a tool where designing a strategy is quick, but every result comes with the checks needed to judge it.

What I built

A web app on top of NautilusTrader, which does all the simulation; the app translates strategies into it and orchestrates runs.

A backtest report for an SMA Crossover strategy on SPY from 2010 to 2026. Eight headline numbers sit above an equity chart that compares the strategy with buy and hold, and a drawdown chart. The strategy returned 350% against 796% for buy and hold.
Figure 1. A finished backtest report. Every figure is shown next to buy and hold, and here the strategy loses to it: 350% total return against 796%. Runs use real SPY prices, next-open fills, 5 bps slippage and 0.05% commission.

How I know it’s right

Status

The first version runs locally. Backtested results are hypothetical; market data comes from Yahoo Finance for personal use only.

Built with

Backtesting engines and execution modelling, Performance and risk metrics (Sharpe, drawdown, deflated Sharpe), Market data (yfinance, CCXT, NSE), Hyperparameter search with Optuna, Experiment design and honest validation, Web APIs with FastAPI, SQL databases (PostgreSQL, SQLite), Testing and CI (pytest, GitHub Actions), Web front ends (HTML, CSS, JavaScript), Excel reporting, Python