patch_tester_ini
Update tester.ini settings in place by mapping Section.Key to values, preserving file encoding and existing lines. Add missing sections and keys for MT5 backtesting configuration.
Instructions
Set keys in a tester.ini in place, keeping the file's encoding and other lines.
updates maps "Section.Key" to a value, e.g. {"Tester.Symbol": "EURUSD",
"Tester.FromDate": "2025.01.01", "TesterInputs.RiskPct": "1.5"}. Missing sections/keys are
added. Run validate_tester_ini afterwards; always set Deposit, Currency, Leverage, Model,
Optimization, Visual, UseLocal/UseRemote/UseCloud and Report explicitly so a run does not
inherit the machine's last UI state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Absolute path to the tester.ini file. | |
| updates | Yes | Mapping of "Section.Key" to new value, e.g. {"Tester.Symbol": "EURUSD"}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||