Backtest a StockCharts scan
backtest_stockcharts_scanBacktests a StockCharts.com scan on point-in-time US stocks since 2000, delisted names included: each rebalance (weekly by default) holds the stocks that pass the scan, equally weighted up to top_n, 10 bps costs. Optional symbols (e.g. a ChartList) restricts the universe. Returns the translation plus the same stats, benchmark and equity curve as run_backtest. Costs one backtest.
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 |