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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config": "<config>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| config | Yes | ||
| portable | No | ||
| timeout_sec | No |