Shardul Mehetar made his first commit to our codebase on June 3. Six months later, he has taken about a dozen strategies from idea toward forward test, much of the way we research at Light Water rests on code he wrote, and the habits he brought have become our standards.
In October we named him Lead Quantitative Research Intern. This post looks back at the whole body of work since June: the strategy research first, then the infrastructure and verification underneath it, which rarely gets written about.
Strategy research, from idea to forward test
Strategy work is where Shardul's research comes together. Since June he has taken about a dozen strategies and research lines through our internal review, across three areas:
- Portfolio strategies for U.S. equities. A regime switch that moves between an offensive and a defensive book as the market trend changes; a volatility-targeted blend of momentum, mean reversion and defensive assets; and a residual-momentum sleeve that strips out market beta before it ranks stocks.
- Single-stock patterns. A double-bottom strategy filtered with walk-forward scoring, a weekly oversold-bounce signal screened by a gradient-boosted model, and a detector for weekly resistance levels across the Russell 3000, validated before any outcomes were looked at.
- Intraday futures. Opening-range and volatility-squeeze breakouts on Nasdaq-100 micro futures, tested on one-minute data back to 2010.
Every candidate is tested on the point-in-time universes described below, with walk-forward and Monte Carlo analysis, sensitivity sweeps and crisis periods. When a strategy is ready for a forward test, he writes the review and kill rules down before it starts, checks them against how often a sound strategy would trip them by chance, and builds a tracker to enforce them. Some of this work now runs as paper forward tests on our platform, fed by daily target books exported straight from his research code.
He is just as careful about stopping. He retired one futures strategy with an execution harness that showed exactly why it didn't hold up, and closed out a mean-reversion line with a final package that records everything that was tried, including the 13 bugs he found and fixed along the way. When he found that an earlier headline result for it was inflated, he replaced it and wrote down why. And when a newer intern took over one of his strategy lines this month, he wrote a full handoff: every test, what worked and what didn't, the data bugs found, and a list of things not to test again.
His research packages share a few habits we now expect from everyone:
- The weaknesses come first. Each package opens with what goes against the strategy, so a reviewer doesn't find it halfway through.
- Everything is reproducible. The code, the trade list and exact commands to rebuild the results are included.
- Failures stay in the record. His trial ledgers keep the dead ends and rejected variants, not just the version that worked.
- He asks for small next steps. When the evidence is thin, he asks for a small forward test, not capital.
Putting these at the top so they aren't a discovery halfway through review.
That line comes from one of his research packages, and it sums up how he works. He also prepared review bundles for an outside advisor.
In the code
In July Backtester, our open-source engine, Shardul has merged 20 pull requests, from point-in-time universe support in his first week to the edge entry trigger that became the default in v1.16. In our private strategy repository he has opened 17 more and merged nine: strategy submissions with full reproduction bundles, a live-versus-backtest reconciler backed by 58 tests, an audit of 528 live stop exits, and one-minute Nasdaq-100 and gold futures datasets going back to 2010. The engine work is public, so anyone can read it and use it.
Backtests that only see what was knowable
A backtest run on today's index members only tests the companies that survived. The ones that were dropped, acquired or went bankrupt are missing, and the results look better than they should. This is survivorship bias, and fixing it was Shardul's first project.
He built point-in-time S&P 500 and Nasdaq-100 membership histories from 2004 to 2026 and published both as open datasets. They record which tickers were in each index on any given date, and he checked recent changes against official S&P announcements.
He then wired those histories into July Backtester. Index membership is now enforced on each signal date, the liquidity and history screens are computed point-in-time too, ticker renames no longer break membership lookups, and synced index rosters are found automatically alongside the price data. He included a test proving that resolving renames does not look ahead.
An engine that is harder to fool
Around that core, he contributed a long list of engine and data work:
- A merged Norgate and Polygon price provider, plus a daily Polygon-to-Parquet updater and a weekly IPO scan.
- Data-quality checks that weigh how large a price jump is, not only how many there are, in both directions.
- An instrument-type filter that keeps leveraged, inverse and exchange-traded-note products out of equity universes, plus ticker-symbology fixes.
- Margin-based sizing for futures, stops anchored to the raw entry price, and an option to resolve exits on one-minute data, which brought the engine to an exact trade-for-trade match with an independent research implementation.
- A deterministic entry order when several symbols signal on the same day, so runs are repeatable.
- The
edgeentry trigger, so a signal that stays on enters once instead of re-entering every bar. It became the default in July Backtester v1.16.
Checking the backtest against reality
A backtest is only useful if live trading behaves like it. Shardul did much of that checking.
For one live strategy, he rebuilt its trade book from our own data and the correct fill model for each period. It reconciled on all four fill cohorts, and his independent replay of the signal agreed with live on 61 of 61 replayable signals. He also showed that two findings that had been reported twice as bugs could not be bugs, and changed the tool so it would stop reporting them.
For another, he went through 528 stop exits from a live trade export one by one, gave each a verdict, and documented his method and its limits.
Thank you, Shardul
We hire interns to work on real problems, and Shardul has done that every week since June. Our strategies are tested more honestly because of his work, our research is easier to check, and the interns who joined after him are learning from his examples.
Congratulations, Shardul, on six excellent months. We're looking forward to what comes next.
Leave a comment - join the conversation
Share your thoughts, questions, or insights on this article. We'd love to hear your perspective.
Comment on LinkedIn