Backtest a StockCharts scan
backtest_stockcharts_scanAnswers 'backtest my StockCharts scan on real history.' Give a scan and a start date; optionally end, symbols (e.g. a ChartList) to restrict the universe, top_n (default 50) and rebalance (D/W/M/Q, default W). Each rebalance holds the stocks that pass the scan, equally weighted up to top_n, at 10 bps costs, on point-in-time US stocks since 2000 with delisted names included. Returns the translation plus the same stats, benchmark and equity curve as run_backtest. Costs one backtest; free keys cover the last 12 months.
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": {
"scan": "<scan>",
"start": "<start>"
},
"name": "backtest_stockcharts_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| scan | Yes | StockCharts scan text. | |
| as_of | No | Point-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC). | |
| start | Yes | ||
| top_n | No | Max names held (default 50). | |
| symbols | No | Optional universe, e.g. a ChartList. | |
| rebalance | No |