Standalone MQL4 checks
Submit one complete script, indicator, or Expert Advisor through the code field for a focused MetaEditor syntax check.
Pineify's mql4-syntax-checker is a read-only MCP tool that checks either one complete MQL4 source file or a bounded multi-file project with MetaEditor. It returns normalized error locations without editing, executing, backtesting, or trading with the submitted code.
mql4-syntax-checkerExample prompt
Use Pineify to check this standalone MQL4 Expert Advisor with MetaEditor and explain each returned error.
Direct answer
Use standalone mode when the entire MQL4 program is in one source string. Send only code. The gateway checks it as Indicators/Main.mq4, so code cannot be combined with entry or files in the same request.
Use project mode when the entry depends on local includes or other bounded files. Send entry as a relative .mq4 path and include that exact path, plus every required project file, in files. The service accepts safe relative .mq4, .mqh, .txt, .csv, and .json paths; it does not read your local workspace.
The result separates source diagnostics from infrastructure failures. hasError reports whether MetaEditor returned errors, while isTimeout and isSystemError mean that no conclusive check was completed.
Contract
Capabilities
Submit one complete script, indicator, or Expert Advisor through the code field for a focused MetaEditor syntax check.
Submit an entry .mq4 path with all required project files, including relative .mq4 and .mqh source paths.
Receive each error with its message, row, column, and a submitted relative file path only when the service path can be matched unambiguously.
Let an MCP client call MetaEditor without changing source files, executing code, placing trades, or modifying a MetaTrader account.
Agent workflow
Use code for one self-contained MQL4 file. Use entry with files when the program depends on local includes or supporting files.
For a project, include the entry in files and add every required dependency with a unique safe relative path.
The MCP tool sends the fixed MT4 syntax request to the isolated MetaEditor service and returns only safe structured status fields.
Fix diagnostics by relative file, row, and column. Treat timeouts and system errors as inconclusive rather than successful checks.
Prompt examples
"Use Pineify to check this standalone MQL4 Expert Advisor with MetaEditor and explain each returned error."
"Use Pineify to syntax-check this bounded MQL4 project. Experts/Main.mq4 is the entry, and I will provide every .mq4 and .mqh file it needs."
"Run the MQL4 syntax checker on these project files, group diagnostics by relative file, and suggest the smallest source fixes without executing or backtesting the code."
Operator notes
I send only code for a self-contained MQL4 file. Mixing code with entry or files is rejected before the downstream service is called.
I use project mode for local includes, make entry match one file path exactly, and keep the project within the file and UTF-8 byte limits.
I fix the earliest useful diagnostic before retrying because later errors may be consequences. I never treat isTimeout or isSystemError as a clean result.
Pineify MCP is an information and code-validation tool, not investment advice. It does not promise returns, place trades, or modify a portfolio. Review timestamps, source fields, code diagnostics, and risk assumptions before acting.
MCP tool family
Check standalone or multi-file MetaTrader 5 source with its separate MetaEditor service.
Check TradingView Pine Script and receive normalized diagnostics without changing the source.
Check a cTrader cBot or indicator for C# compiler and cTrader API errors.
Check one NinjaTrader 8 Indicator or Strategy source for compiler and supported API errors.
FAQ
Connect one remote Pineify MCP endpoint, then let your compatible AI client discover this tool with the rest of the read-only catalog.
Open MCP setup