Start a backtest loop
quant_start_backtest_loopStarts the backtest loop of a plan the member approved, by the plan_id quant_plan_backtest_loop returned, and returns its loop id. 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. Call it only after you showed the member that plan and they said yes in their own words; never start one on their behalf. Once started it runs on LuxAlgo's servers, for up to the plan's time limit, whether or not this chat stays open, and every attempt it makes uses the member's Quant usage until it ends or quant_stop_backtest_loop stops it. A plan starts at most one loop: starting it again returns the loop it already started. It returns the loop id, not strategies: follow it with quant_get_backtest_loop_info. To read what a loop found, call quant_get_backtest_loop_info for its strategies' ids (best first) and quant_get_backtest_loop_strategy for one strategy's code and backtests. Backtest loops run on the Ultimate and Ultra plans; the LuxAlgo app decides. 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": {
"plan_id": "<plan_id>",
"context": "<context>"
},
"name": "quant_start_backtest_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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." | |
| plan_id | Yes | The plan_id quant_plan_backtest_loop returned. |