Get a strategy a backtest loop found
quant_get_backtest_loop_strategyOne strategy of one of the member's backtest loops, by its id from quant_get_backtest_loop_info (best_strategy_id, or an id in strategies): whether it meets every criterion, what it does and how it trades in Quant's words, its Pine Script® source as it goes on a chart, and each market's backtest on the data it was developed on (in_sample) and on the data held out from it (out_of_sample): the verdict, every criterion against its threshold, the metrics (net profit, profit factor, trades, win rate, drawdown and the rest, by their plan names) and the run's statistics (dates, bars, Sharpe, Sortino, CAGR, run-up, buy and hold). For "what was the best strategy of my latest loop?", call quant_list_backtest_loops (newest first), then quant_get_backtest_loop_info, then this with its best_strategy_id. Quote the numbers as returned, name whether each is in sample or held out, and never round a failing strategy up to a passing one. It returns no trade list and no equity curve. The member puts a strategy on a chart, compares them and resumes a loop in Vela, in the loop's Loop Report (report_url). It reads only; it uses no Quant usage. Backtests are history under the plan's 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": {
"strategy_id": "<strategy_id>",
"context": "<context>"
},
"name": "quant_get_backtest_loop_strategy"
}
}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." | |
| strategy_id | Yes | The strategy's id, from quant_get_backtest_loop_info: best_strategy_id, or an id in strategies. |