Plan a backtest loop
quant_plan_backtest_loopTurns a prompt into the plan of a backtest loop and returns it with a plan_id; it starts nothing. A backtest loop is an autonomous run in which Quant, our coding agent, writes and backtests Pine Script® strategy versions until enough of them meet the plan's criteria. Quant writes the plan: the markets and timeframes, the tested date range and how much of it is held out, costs, order size, how many strategies to find, a time limit, and the measurable criteria a strategy must meet on every market, with its own estimate of the odds. Say in the prompt what the member said about markets, timeframe, direction, the metrics and thresholds that count as success, the history to test on and the time to spend; ask them first about anything that matters and is open, because the plan cannot ask back. The planning call uses a little of the member's Quant usage. Show the member the plan in plain words and wait for their yes before calling quant_start_backtest_loop with the plan_id. Backtests are history under stated assumptions, never a prediction or trading advice. Requires signing in with a LuxAlgo account (OAuth).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"context": "<context>"
},
"name": "quant_plan_backtest_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to search for, in the member's terms, e.g. "a long-only trend strategy on BTCUSDT 1 hour bars over the last 2 years, profit factor at least 1.5, max drawdown under 15%, at least 60 trades, 30 minutes". | |
| context | Yes | Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution." |