whatif
Run counterfactual replays to test trading strategy variations by overriding parameters and filtering by strategy name.
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
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | Yes | ||
| param_overrides | Yes | ||
| from_ts_ns | No | ||
| to_ts_ns | No |