run_backtest
Execute automated backtests by launching MetaTrader terminal with a specified tester.ini configuration, with options to wait for completion and set timeout.
Instructions
Launch terminal with /config:<tester.ini>.
Args:
config: Absolute path to tester.ini.
wait: Block until terminal exits (requires ShutdownTerminal=1 in ini).
timeout_sec: Wait timeout.
portable: Pass /portable flag.
Returns: returncode, elapsed_sec, latest_tester_log path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | ||
| wait | No | ||
| timeout_sec | No | ||
| portable | No |