MQL4
MT4
VSCode

MQL4をVSCodeとMT4を使ってコンパイルする

やっとこさコンパイル出来るようになったので、メモ代わりに置いときます。
うまく行かなかったら、ごめんなさい。
MacOSとWindows両対応です。

tasks.json
{
"version": "2.0.0",
  "tasks": [
    {
      "label"  : "launch_metaeditor",
      "type"   : "shell",
      "osx"    : {"command" : "/usr/local/bin/wine /Users/hogehoge/.wine/drive_c/Program Files/OANDA - MetaTrader/metaeditor.exe /portable"},
      "windows": {"command" : "C:\\Program Files (x86)\\OANDA - MetaTrader\\metaeditor.exe \\portable"},
    },
    {
      "label"  : "launch_terminal",
      "type"   : "shell",
      "osx"    : {"command" : "/usr/local/bin/wine /Users/hogehoge/.wine/drive_c/Program Files/OANDA - MetaTrader/terminal.exe /portable"},
      "windows": {"command" : "C:\\Program Files (x86)\\OANDA - MetaTrader\\terminal.exe \\portable\\"},
    },
    {
      "label": "MQL4-Compile",
      "group": {
      "kind": "build",
      "isDefault": true
    },
    "presentation": {
      "echo"  : true,
      "reveal": "always",
      "focus" : true,
      "panel" : "shared"
    },
    "promptOnClose" : true,
    "type"          : "process",
      "osx"         : { "command" : "wine",
      "args"        : [ "/Users/hogehoge/.wine/drive_c/Program Files/OANDA - MetaTrader/metaeditor.exe",
                        "/compile:${file}",
                        "/inc:${workspaceRoot}",
                        "/log:${workspaceRoot}\\${fileBasenameNoExtension}.log",
                      ]
      },
      "windows"     : { "command" : "C:\\Program Files (x86)\\OANDA - MetaTrader\\metaeditor.exe",
      "args"        : [ "/compile:${file}",
                        "/inc${workspaceRoot}",
                        "/log:${workspaceRoot}\\${fileBasenameNoExtension}.log",
                      ]
      },
    }
  ]
}