Run a backtest
run_backtestRun a strategy against real historical data and return its performance. Nothing is saved or published unless save is set — a backtest is a question, not a publication. Call get_strategy_spec_rules first if you have not already. If exactly this — same rules, settings and period, over months that have finished — was saved before (by this account, or publicly), that result comes back and no backtest is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Persist the run. Omit for a throwaway backtest. | |
| spec | Yes | The strategy spec object — see get_strategy_spec_rules | |
| params | No | Override declared params for this run |