Ask Claude for a strategy. Get a backtest back.
Connect Claude to your account and describe an idea in your own words. Claude writes the blocks, runs the test on real data with your costs, and goes through the report with you.
Example of a conversation. Claude works with the tools listed below.
Connect in one minute
- Add a custom connector
In Claude's settings, open Connectors and add a custom connector with this address:
https://tradingbacktest.live/mcp - Sign in and allow
Claude opens our sign-in page. Log in with your account (or create one) and click Allow. No key to copy.
- Ask
Start a chat and turn the connector on. For example: “Use tradingbacktest to test an RSI pullback in the trend on XAUUSD H1 since 2020.”
What Claude can do
The strategy format, every indicator with its settings, the markets and how far back the data goes.
Claude writes the blocks for your idea and checks them before anything runs.
On the markets, period, precision and cost profile you ask for. Claude tells you the credit cost first.
Summary, monthly results and every trade, plus a link to the full report.
With Pro, a whole grid of settings in one go, ranked by profit factor, Sharpe or drawdown.
Strategies you like appear in your list, ready to edit with the blocks.
Claude only sees your strategies and tests, never your password or payment details. Disconnect it at any time from your account page.
Credits
Tests started by Claude or the API use credits. Tests you start on the website never do. A test costs one credit per market per month of data, times the precision:
| Precision | Credits per market-month |
|---|---|
| Fast (candles) | 1 |
| Accurate (M1) | 1 |
| Fine (15 seconds) | 2 |
| Precise (1 second) | 4 |
| Exact (every tick) | 8 |
Stress tests cost 10×; a batch costs the sum of its tests. Failed or cancelled tests are refunded. Every month: 1,000 credits on Free, 20,000 on Pro (they reset on the 1st). Pro packs: ; bought credits never expire. Plan limits still apply: on Free, tests cover up to 1 year at 15-second precision or coarser, without batches.
REST API
Base address https://tradingbacktest.live/v1. Authentication: Authorization: Bearer tbl_… or X-API-Key: tbl_…. Answers are JSON; errors come with a readable error and a list of problems. Up to 120 requests per minute.
| Request | What it does |
|---|---|
| GET /v1/guide | Strategy format, indicators, markets, precisions, plan limits, credit costs |
| GET /v1/markets | Markets and the dates covered by candles and ticks |
| GET /v1/account | Plan, credit balance, cost profiles |
| POST /v1/strategies/validate | {"strategy": {...}} → problems to fix |
| GET /v1/strategies · POST /v1/strategies | List or save strategies (name, strategy) |
| GET /v1/strategies/{id} · PUT /v1/strategies/{id} | Read or update a saved strategy |
| POST /v1/backtests/estimate | {"strategy" or "strategy_id", "test"} → credits and plan check |
| POST /v1/backtests | Start a test; returns run_id |
| GET /v1/backtests/{id}?wait_seconds=30 | Status, summary and report link |
| GET /v1/backtests/{id}/trades?offset=0&limit=100 | Every trade of a finished test |
| POST /v1/backtests/{id}/cancel | Stop a test and refund its credits |
| POST /v1/backtests/{id}/report | Build the full HTML report of a batch test (free) |
| POST /v1/batches | Pro: "grid" {path: [values]} and/or "variants", up to 2,000 tests; returns batch_id |
| GET /v1/batches/{id}?limit=50&rank_by=sharpe | Progress and ranking of a batch |
| GET /v1/batches · POST /v1/batches/{id}/cancel | List batches, stop one (refunds what has not run) |
The test object: symbols (required), timeframe, date_from, date_to, precision (bars, M1, S15, S1, T), balance, risk_pct, leverage, cost_profile (retail, aquafunded, zero or your profile id), costs_override, entry_delay, prop, monte_carlo, stress.
MCP server for AI assistants: https://tradingbacktest.live/mcp (Streamable HTTP, OAuth or API key).