run_backtest
Launch MetaTrader 5 terminal with a tester configuration file to run a backtest. Returns return code, elapsed time, and path to the latest tester log.
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 |
|---|---|---|---|
| wait | No | ||
| config | Yes | ||
| portable | No | ||
| timeout_sec | No |