scripts/compare_configs.py runs backtest_config.py twice — once with each config pair — and prints a side-by-side table. Use it to evaluate any config change before applying it.
Usage
CLI flags
| Flag | Default | Description |
|---|---|---|
--old-config | required | Path to the “before” config.json |
--old-ml | required | Path to the “before” ml_config.json |
--new-config | config.json | Path to the “after” config (defaults to current) |
--new-ml | ml_config.json | Path to the “after” ml config (defaults to current) |
--old-label | "old" | Display label for the old config |
--new-label | "new" | Display label for the new config |
--balance | 500 | Backtest starting balance ($) |
--leverage | 500 | Leverage |
--spread | 16.95 | Spread in $ round-turn |
Sample output
Typical workflow
- Save the current config before making changes:
cp config.json config_backup.json && cp ml_config.json ml_config_backup.json - Apply the new parameters
- Run
compare_configs.pyto see the impact - Keep or revert based on Score delta