Design a Backtesting Platform for Thousands of Researcher Signals
Last updated: November 29, 2026
Quick Overview
Design the internal platform researchers use to submit signal code, simulate it over 20 years of global equity data with realistic costs, and get standardized results, supporting thousands of simulations a day and checking each new signal against the existing pool.
Trexquant
November 29, 20260
0
0 solved
Design the internal platform researchers use to submit signal code, simulate it over 20 years of global equity data with realistic costs, and get standardized results, supporting thousands of simulations a day and checking each new signal against the existing pool.
A fund that runs many statistical signals needs a shared simulator so every result is computed on the same point-in-time data, universe and cost model. The interviewer wants a design that handles large matrix data efficiently, isolates user code, makes results reproducible and supports correlation checks against thousands of existing signals.
What the Interviewer Expects
- Separates data layer, simulation engine, job scheduler and results store
- Uses point-in-time, versioned data so runs are reproducible
- Stores data as columnar stock-by-date matrices for vectorized compute
- Sandboxes researcher code with resource limits
- Computes standard metrics plus correlation to the production pool
- Discusses caching, cost model versioning and failure handling
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you compute correlation of a new signal against 10,000 stored signals quickly?
- How do you rerun everything when the cost model or a dataset is corrected?
- How would you stop researchers from overfitting by running thousands of variants?
- What changes for intraday rather than daily simulations?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: submit signal code (Python, optionally C++ extensions) that maps data to daily target weights; simulate with delays, neutralization, and transaction cost; return PnL, Sharpe, turnover, dra...
High-Level Design
- Data layer: point-in-time datasets stored as versioned columnar matrices (one file per field, stocks by dates, float32), with universe membership and corporate actions resolved. Each snapshot gets ...