whatif
Run counterfactual backtests by overriding strategy parameters to compare hypothetical PnL scenarios, such as changing an EMA period or stop loss.
Instructions
Counterfactual replay: same as replay_window plus a strategy-name filter and required param_overrides. Use for 'what if EMA period was 50 instead of 21' / 'show me the PnL if I had used a wider stop'.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | Yes | ||
| to_ts_ns | No | ||
| from_ts_ns | No | ||
| param_overrides | Yes |