instrument_ea_for_opt
Automatically add OptExport.mqh logging to any MQL5 Expert Advisor (.mq5) file for optimization support.
Instructions
Automatically instrument an MQL5 Expert Advisor (.mq5) file with OptExport.mqh logging.
Args: ea_path: Absolute path to the .mq5 file.
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": {
"ea_path": "<ea_path>"
},
"name": "instrument_ea_for_opt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ea_path | Yes |