Express a strategy as rules, replay it on supplied bars with no look-ahead, and score the result with costs and calibration. Use when a ticket asks to backtest an idea or to score a signal. A model forecast is an untrusted signal to be scored, never an order.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Quant Cell?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/prasadm1022-quant-cell)
---
name: quant-cell
description: Express a strategy as rules, replay it on supplied bars with no look-ahead, and score the result with costs and calibration. Use when a ticket asks to backtest an idea or to score a signal. A model forecast is an untrusted signal to be scored, never an order.
license: MIT
version: 0.1.0
requires:
tools:
[
market.bars,
market.quality,
paper.replay,
paper.scorecard,
fs.read,
fs.list,
fs.search,
fs.write,
]
hosts: []
classes: [read, write-local]
task-types:
- treasury-trading.backtest
---
# Quant cell
Test ideas on history the honest way and report them as the anecdotes they usually are.
## Steps
1. State the strategy as rules that return intents (an order request exactly as the simulated broker takes it, or a cancel), using only the point-in-time view the replay gives. Asking for a later bar raises `LookAheadError`, the run fails and it is not scored.
2. Check the data with `market.quality`. A replay refuses data with gaps unless the gaps are declared; declare them only with a reason. Say where the data came from and whether it was restated after the fact, because look-ahead can sit in the data and the engine cannot see it.
3. Run `paper.replay` (`replay` in `@nexus/trading`) with the broker config, the fixed seed, fees and slippage. The same config, seed and bars give the same `stateDigest()`; record it.
4. Score with `paper.scorecard` (`buildScorecard`): hit rate, expected value per trade, payoff, profit factor, maximum drawdown, daily Sharpe and the cost-adjusted return. For a probabilistic signal add the Brier score, the skill score and the calibration bins.
5. Report the number of variants you tried. Reporting only the best of many is a finding against yourself.
6. Write the result to `quant/<name>-<date>.md` with every warning the scorecard printed.
## Rules
- A model forecast, such as a candlestick forecaster running as a sidecar outside this process, is a signal. Score its calibration; never turn its output into an order.
- Fewer than 30 trades or 100 signals is an anecdote. Say so in the first line of the result.
- A backtest is not a forward test and not a promise. Paper results are not money.