Backtest Configurator
Describe a backtest to your AI assistant in plain words. It drafts a spec, you review every line, and the Configurator runs it on your own price files, on your own computer. An optional drafting assistant for Pro subscribers can draft a spec from your description for you to review.
Every result is hypothetical: simulated with hindsight on your own files, not real trading. Not investment advice; not tailored to you; we are not a registered investment adviser or broker-dealer.
What it is
The Backtest Configurator is free, open-source software for rotation strategies. On scheduled dates it ranks assets and holds the top N, or all eligible ones, with equal, inverse-volatility or fixed weights. It uses adjusted prices only.
Your assistant drafts the spec from your words; you review every line.
The spec is written in a closed schema, and a fill on the same bar as the decision cannot be written. We don't call any AI model: the drafting is done by your own assistant, and what you share with it goes to its provider under that provider's terms.
It is a tool, not a service. It runs on your machine, on files you supply. We supply no market data.
Draft a spec from a description
Describe a backtest in your own words. An assistant drafts a spec and asks about anything your words leave open, one question at a time. The Configurator checks every draft and writes it out in plain English for you to read.
The drafting assistant is part of the Nothing But Alpha Pro plan at $19 a month, which renews automatically every month until you cancel. You can cancel any time online from your account page. Daily and monthly usage limits apply. The Configurator itself stays free and open source, and runs on your own computer.
The wizard's drafting accuracy hasn't been measured yet.
- The assistant can make mistakes.
- The assistant drafts and you review every line.
- Results are hypothetical and not investment advice.
- What you type is sent to Anthropic, our AI provider, to draft the spec, and is not stored by us. Please don't include personal details or account numbers.
The Configurator drafts rotation strategies only. The assistant translates your idea. It doesn't suggest, rank or improve strategies, tickers or settings.
Not investment advice; not tailored to you; we are not a registered investment adviser or broker-dealer.
Checking your account.
How it works
Describe it
Tell your assistant the rotation you have in mind, in your own words. The Configurator's instructions tell it to ask about anything unclear instead of guessing, and to record every value you didn't state as an assumption. Assistants don't always follow them, so the next step matters.
Leaves behind: Your words
Review it
The assistant drafts a spec in the closed schema. The Configurator shows every line as plain English, lists every assumption with its origin, and flags values that your own text does not state.
Leaves behind: A spec and its rendering
Confirm it
Nothing is read or run until you confirm: in your assistant's confirmation dialog, at the command-line prompt, or by an explicit setting in your code. The receipt records the channel, not who confirmed.
Leaves behind: A confirmation channel
Run it locally
The engine reads your own CSV or Parquet files against a pinned NYSE calendar. It needs no API key and calls no data vendor. Every run is counted in the project folder.
Leaves behind: Results and run counts
Keep the receipt, export the code
Every result comes with a disclosure block and a receipt with hashes of the spec, the data and every result file. The receipt holds no return figures. You can also export strategy.py, which reproduces the engine's run in plain pandas and NumPy on files the Configurator accepts.
Leaves behind: A receipt and strategy.py
A worked example, on made-up data
Everything in this section was produced by the package itself, offline, on a synthetic price file. The tickers SYN01 and SYN02 refer to no real security. Prices are a random walk with the same drift for every ticker, so no rule has an edge on this data by design.
We show the spec, its plain-English rendering, the warnings and an excerpt of the receipt. The spec illustrates the format only. We don't show returns.
The spec
spec_version: '1.0'name: SYN01 200-day trend switchnotes: 'Recorded answer: SYN01 and SYN02 were picked now, not on a past date, so neither has an as_ofdate and the HINDSIGHT UNIVERSE label applies.'source_text: At the end of every month, if SYN01 closed above its 200-day moving average, hold 100% SYN01.Otherwise hold 100% SYN02. Trade at the next day's open. Use 2 bps commission and 3 bps slippage. Test2005 through 2024. My data is in prices.csv.universe:kind: static_listmembers:- ticker: SYN01asset_class: etfdata:prices:path: prices.csvformat: csvlayout: longprice_basis: adjustedsignals:- id: syn01_vs_sma200type: sma_ratioparams:window: 200field: closeportfolio:rotation:schedule:frequency: monthly'on': last_sessioneligible:all:- left: syn01_vs_sma200op: '>'right: '0'select:all_eligible: trueweighting:method: equalunfilled_slots:hold: SYN02min_trade_weight: '0.001'timing:decide: at_closefill: next_openfill_delay_bars: 0costs:commission_bps: '2'sell_fees_bps: '0'slippage_bps: '3'min_commission: '0'acknowledge_zero_costs: falsebenchmarks:- kind: tickerticker: SYN01period:start: '2005-01-03'end: '2024-12-31'initial_capital: '100000'assumptions:- path: /benchmarks/0/tickervalue: SYN01origin: user_answerquestion: No benchmark was named. Compare with SYN01 buy-and-hold?- path: /costs/sell_fees_bpsvalue: '0'origin: default- path: /portfolio/rotation/min_trade_weightvalue: '0.001'origin: default- path: /period/initial_capitalvalue: '100000'origin: defaultThe same spec in plain English
- Strategy name: SYN01 200-day trend switch
- Universe (static_list): a fixed list of 1 etf tickers: SYN01 (no as_of date given).
- Prices: your file prices.csv (format csv), layout long, price basis adjusted.
- Signal syn01_vs_sma200: sma_ratio with window = 200, read from the close price.
- Schedule: monthly, on the last_session of each period.
- Eligibility condition (a signal that is unknown makes the asset not eligible): all of (syn01_vs_sma200 > 0).
- Selection: hold all eligible assets.
- Weighting: equal.
- Unfilled slots and capped weight: held in SYN02 (no as_of date given).
- Weight changes below 0.001 are not traded; full exits always trade.
- Timing: decided at_close (the close of the decision session); filled at next_open, with a fill delay of 0 extra bars.
- Costs: commission 2 bps per side, sell-only fees 0 bps, slippage 3 bps per side, minimum commission 0 per order. Zero costs acknowledged: no.
- Benchmarks: buy and hold SYN01.
- Period: 2005-01-03 to 2024-12-31, initial capital 100000. Results end at the last session with data in the period; a decision whose fill would fall after it is not executed.
Labels, assumptions and warnings
Labels in force
- HINDSIGHT UNIVERSE: list chosen with knowledge after the start date; results can carry survivorship and selection bias.
Assumptions, with their origin
- /benchmarks/0/ticker = SYN01 (origin: user_answer); question asked: No benchmark was named. Compare with SYN01 buy-and-hold?
- /costs/sell_fees_bps = 0 (origin: default)
- /period/initial_capital = 100000 (origin: default)
- /portfolio/rotation/min_trade_weight = 0.001 (origin: default)
Warnings from the run
- 0.18% of bars have open = high = low = close, which suggests opens filled from closes.
- 1 orders were cancelled because there was no valid price at the fill time (no fallback price is ever used).
- 38 member-decisions were not eligible because a missing row or value made a signal unknown (a selection effect).
- 4 sessions had no bar for more than half of the universe.
- 1 decision(s) were not executed because the fill would fall after the last session in the data; they are not shown.
- Columns not read: volume (a column named volume is never read).
Receipt excerpt
- Spec SHA-256
c2d161bafcb0d73e58a567f2527588da7545aa9008dfd4766a50f9adf6569d67- Confirmation channel
api_argument. Confirmation passed as an explicit argument by the program calling the Python API (the developer's own act). No person was asked through this channel.- Source text origin
api_caller_supplied- Price file
prices.csv: 11,193 rows, 2 tickers, 2003-01-02 to 2025-04-03.76d1186309593e56babb3de023b028ccdb60fb1d828967ac79ce371fd3dd385f- Calendar
nyse-v1.112bee77112a9c534b352968503f21a68f9c677dd4defa2352b1660acae661aa3- Engine
- backtest-configurator 0.4.0, engine 1.0, Python 3.12.3
- Result files
DISCLOSURES.txt08519cac88d17c7283b7480ae0dfed5d38f115605ec9e655e9363548705e4beaequity.csvd54dfe2e8dc1e47a8b660fa4d0e676fa8758667134e1fc5e911ac1cfc0846307report.md50a9061f7006bd80655bc3b2df0ba522d11d5a29e23a8ab42371602e7821eea1results.json45bec9845ecc7e14438412092470298e91cd4a66de533e8b41b1d3cbbafd4c51trades.csvcecf46483ebda1e3c1096d460453c75158a585fe4061829731fa16e34a685b9b
- Export
strategy.pyf1a0a1e4af78bdf2c689f803c31c9386e3bf9d780f8a575c4bec64f4c0f39a50- Counts
- Runs of this strategy file: 1 (1 distinct variants). Runs in the project folder: 1 (1 distinct variants). n_trials = 1.
- Provenance flags
- 0
- Run date
- 2026-11-24
- Statement
- This receipt shows that a run can be reproduced from these inputs. It is not a verification of performance by Nothing But Alpha.
Disclosure block
Hypothetical backtest. These results were simulated with hindsight and didn't come from real trading. They don't reflect actual costs, slippage or market impact beyond what's stated, and hypothetical results have well-known limits. Past results, simulated or live, don't guarantee future results.
This tool generates outcomes that are hypothetical in nature, from your own rules and your own data. Results may vary with each use and over time.
Not investment advice; not tailored to you; we are not a registered investment adviser or broker-dealer.
Holdings and weights in these files are historical, as of the date shown. They are not current holdings and not a recommendation to buy, sell or hold anything.
Assumptions confirmed by the calling code (an explicit argument in the Python API).
Runs of this strategy file: 1 (1 distinct variants). Runs in this project folder: 1 (1 distinct variants). n_trials = 1.
What the engine enforces, and what it can't check
Enforced in code and covered by tests
- No decision depends on data dated after its decision session, within a stated float tolerance.
- No trade fills at or before the decision that caused it. The schema cannot express it, and the engine asserts it on every order. A missing open cancels the order, with no fallback price.
- No statistic uses the whole sample, and schedules come from a pinned exchange calendar, never from your data.
- There is no optimizer, parameter range or sweep mode. Every run is counted in the project folder, and both the run count and the number of distinct variants go with every result. Above 20 variants, a banner warns that the best of many tries is likely luck.
Not checked, and why
- Results are only as point-in-time as your data. The engine cannot check vendor restatements, survivorship in your files, membership files built with hindsight, adjustment errors, or whether an open was a price you could have traded.
- Fills are simple: flat basis-point slippage, no market impact, no partial fills and no halts. A stock that stops trading is valued at its last close, and the real outcome can be far worse.
- It cannot see your own search, including an assistant that loops over parameters. Run counts cover only the project folder on your machine.
- A confirmation records a channel, not a person. A program that drives the command-line tool, or an assistant that accepts requests automatically, can confirm without showing them to you.
The Configurator includes the Backtest Auditor's static checks, which catch some common errors and miss many. A clean result from those checks doesn't mean a backtest is correct or that a strategy will make money. We make both tools, so the checks aren't an independent review.
Install and set up
Python 3.12. The command-line tool and the MCP server need the mcp extra:
pip install "backtest-configurator[mcp]"
The server is nba-configurator-mcp, a local stdio server. Always pass the project folder: the run log and all results live there.
Claude Code:
claude mcp add nba-configurator -- nba-configurator-mcp --project-dir /path/to/project
Claude Desktop or Cursor (mcpServers in the client's config file):
{"mcpServers": {"nba-configurator": {"command": "nba-configurator-mcp",
"args": ["--project-dir", "/path/to/project"]}}}A run needs a client that supports MCP elicitation, because the server asks for confirmation through it. A client without it gets the plain-English rendering and a refusal, and nothing runs. Then save the spec to a file and use backtest-configurator run in your own terminal.
Evaluation
The plain-English evaluation has not been published yet.
Terms and disclaimers
Every result is a hypothetical backtest. It is simulated with hindsight on your files and doesn't come from real trading. Each one comes with a disclosure block and a methodology section. Keep them with the results whenever you show the results to anyone.
Registered investment advisers, their representatives and registered representatives of broker-dealers can't use the Backtest Configurator for now.
Not investment advice; not tailored to you; we are not a registered investment adviser or broker-dealer.