Back to Projects
Live2026

Finertia — Strategy Backtesting That Argues Back

Backtest momentum, MACD and Bollinger strategies on US and Indian stocks in seconds, then find out whether the result is skill or luck. Hand-written pandas/numpy engine, walk-forward and overfitting checks on every run. Live.

FastAPIReactFirebasepandasNumPyCloud RunPlaywright
CodeLive Demo

Finertia answers “if I had traded this strategy on this stock, what would have happened — and how much of that is luck?” in seconds, with no install and no code. It backtests momentum, MACD and Bollinger mean-reversion strategies on a single stock or a multi-stock portfolio, against buy-and-hold on every run. It is live at finertia.hulage.in, and /demo runs one without an account.

The problem

Every backtesting tool shows you a winner and lets you believe it. Tune a strategy on past prices and it will look good on those prices; the question that matters is whether it holds up on data it never saw. Finertia is built to argue back.

How it works

  • Pure engine — signals, positions, costs and every metric are hand-written pandas/numpy, with no backtesting library. Look-ahead bias is closed structurally (signals always shift one bar), costs are charged on turnover by default, and volatility-targeted sizing, stop-loss and take-profit are built in.
  • Validation on every result — walk-forward (tune on the first 70%, score on the rest, then rolled across four folds), a signal permutation test, the Deflated Sharpe Ratio with a measured number of effective trials, Probability of Backtest Overfitting, purged and embargoed splits, block-bootstrap confidence intervals on every metric, a paired Sharpe test against holding, and White’s Reality Check / Hansen’s SPA across the whole parameter grid.
  • What it found — in the Nifty 50 study (2011–2025, after costs), of 129 stock-and-strategy pairs 50 beat holding the stock on the years they were tuned on, 7 stayed ahead on unseen years, and 4 passed the luck checks. In the Apple study the checks disagree and the verdict flips with the test window; it carries a dated correction after the timing test was made stricter. Both write-ups re-run every figure from a script.
  • Public research pages — US and Indian stock pages and a comparison page per strategy pair, each built from real backtests with its own link-preview card, checked in CI against the data they quote, and listed in a sitemap Google has accepted.

Built to be depended on

FastAPI on Cloud Run behind a Vercel same-origin proxy, Firebase Auth and Firestore with a cached price store, per-user rate limits and a hard instance cap so a public demo cannot run up a bill. 856 backend tests, 342 front-end tests and 26 Playwright end-to-end runs gate every merge, and each backend release goes through a scripted pre- and post-deploy check.

Stack

FastAPI + React + Firebase, pandas/numpy for the numerics, Cloud Run + Vercel for hosting. Submitted to Builders Pitch Fest 2026 (BFSI track).