Backtest a trading idea
backtest_strategyBacktest a stock or ETF trading idea in plain English with Qanvo's Strategy Lab: ten years of daily US data (from 2016), buys and sells at the next day's open, trading costs, dividends reinvested, and companies that were later delisted, compared with the S&P 500 (SPY, total return). Examples: "buy large caps when the 2-day RSI drops below 10 while above the 200-day average, sell when RSI goes above 70", "each month hold the 20 cheapest S&P 500 stocks by P/E with positive earnings growth", "hold QQQ only while it's above its 200-day average, otherwise cash".
No arguments: lists the starter strategies (free).
template: runs a starter strategy by its slug (free).
idea: Qanvo writes the rules (a few credits, usually fewer than a screen), runs them and saves the strategy to the user's Lab. Returns the rules as understood, what was assumed or left out, yearly returns against the S&P 500, risk and trade statistics, open positions and recent closed trades, warnings and a link to the full interactive result, where the rules can be edited and re-run for free. Pass on the warnings and the assumptions. Describe results factually as a historical test, not a recommendation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "backtest_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idea | No | The trading idea in plain English: what to buy, when to sell, which stocks or ETFs, how often to rebalance. | |
| template | No | Slug of a starter strategy (from calling this tool with no arguments), to run it instead of an idea. |