compile_and_deploy
Compile MetaTrader source and, on success, deploy the fresh binary to the Experts/ folder for immediate use in backtests or smoke tests.
Instructions
Compile a source and, if it succeeds, copy the fresh binary into the terminal's Experts/ folder.
Use this before run_backtest or smoke_test. Returns the compile result plus deploy;
ok is false if either stage failed (compile errors are in compile.errors).
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": {
"source": "<source>"
},
"name": "compile_and_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute Windows path to the .mq4/.mq5/.mqh source file. | |
| ea_name | No | File name for the binary inside Experts/; defaults to <stem>.ex5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||