backtest_graph
Run a strategy graph end to end on your own data: cost-aware backtest, leakage-free splits, overfitting gates, then a verdict, survivor count and run_id.
Instructions
Requires the Stochastly desktop app: this tool runs inside the app, which is not installed on this machine. Install it from https://stochastly.com/pricing, open it and activate a licence.
Run a strategy graph end to end on your data: build the configurations, run a cost-aware
backtest with leakage-free splits, apply the overfitting gates and return the verdict, the
number of survivors and the run_id. Each finished run is added to the day's session registry,
and multiplicity reports how many runs and configurations this session has tried.
Check the plan with compose_graph first. Data comes from data_root or a registered
source; nothing is downloaded for you and an unknown source is refused. A plan with custom
Python is refused unless the user allowed custom code on this machine. Use background=true for
long runs, then backtest_status. Requires an Atelier or Portfolio licence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tf | No | Bar timeframe, for example "1h". | 1h |
| cap | No | Maximum number of parameter configurations evaluated. | |
| plan | Yes | Strategy graph, same shape as in compose_graph; node keys come from node_catalog. | |
| source | No | Registered data source name from data_sources; "folder" reads data_root. An existing folder path given here is used as data_root. | folder |
| symbols | No | Symbols to trade; omit for the default universe, which the run names in its note. | |
| data_root | No | Folder holding your own price files. | |
| direction | No | Trade direction: "L" (long only), "S" (short only) or "LS" (both). | LS |
| timeout_s | No | Seconds to wait for the result (minimum 5); after that, poll backtest_status. | |
| background | No | True returns a run_id at once; poll backtest_status for the result. |