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).
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 | |||