Write an MQL5 source file
write_fileCreate or overwrite MQL5 files (.mq5, .mqh, .mqproj, .set) in the sandboxed MQL5 data folder, optionally creating missing directories and replacing existing files.
Instructions
Creates or overwrites a .mq5/.mqh/.mqproj/.set file under the sandboxed MQL5 data folder (e.g. write an EA to "Experts/MyStrategy/MyEA.mq5"). Set overwrite:true to replace an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| overwrite | No | ||
| createDirs | No |