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
System Design
Software Engineer
Trexquant
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

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
backtesting
distributed compute
columnar storage
reproducibility
sandboxing
data versioning
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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
  1. 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 ...

Submit Your Answer
Markdown supported

Related Questions