compile
Compile MQL source files (MQ4/MQ5/MQH) using MetaEditor CLI, returning structured errors and warnings from the build process.
Instructions
Compile a .mq4/.mq5/.mqh source via MetaEditor CLI.
Args:
source: Absolute path to the source file.
include: Optional MQL root override (parent of Include/). Defaults to terminal MQL root.
log_file: Optional explicit log path. Defaults to .log.
timeout_sec: Subprocess timeout.
Returns: returncode, structured errors/warnings lists, result_errors/result_warnings,
log_path, log_excerpt (last 80 lines), cmd.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| include | No | ||
| log_file | No | ||
| timeout_sec | No |