backtest_code
Run a strategy you have written against real market history and return its figures. This is a real backtest against real prices — not a simulation and not cached per call — so run it deliberately, after check_strategy passes. Returns metrics only, never the curve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The strategy, in Brighter's language. | |
| range | No | Window to test over. |