/mql-developer:mql-developerfrom mql-developer
Comprehensive MQL4/MQL5 development for MetaTrader 4 and MetaTrader 5 platforms. Use when writing, reviewing, debugging, or architecting: Expert Advisors (EAs), custom indicators, scripts, libraries (.mqh), graphical panels, or any MQL code. Also use for: order/position management, risk management, backtesting strategies, communication with external APIs (WebRequest, REST, JSON), inter-program communication, code protection/licensing, and MQL4-to-MQL5 migration. Covers the full MQL ecosystem including trading automation, technical analysis, UI panels, and server integration.
Ships in mql-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for professional MQL4/MQL5 development on MetaTrader platforms.
Load the appropriate reference file based on the task:
| Task | Reference File |
|---|---|
| MQL4 syntax, types, functions, predefined vars | references/mql4-reference.md |
| MQL5 syntax, OOP, CTrade, Standard Library | references/mql5-reference.md |
| Project structure, EA architecture, design patterns | references/architecture-patterns.md |
| Orders, positions, risk management, trailing stops | references/trading-operations.md |
| Custom indicators, UI panels, scripts, chart objects | references/indicators-and-ui.md |
| WebRequest, JSON, REST API, Node.js integration | references/external-communication.md |
| Strategy Tester, optimization, walk-forward, Monte Carlo | references/backtesting.md |
| Code protection, licensing, anti-decompilation | references/security-licensing.md |
For targeted lookup in large files, grep for these section headers:
mql4-reference.md: Data Types, Variables, Operators, Arrays, Strings, Program Types, Predefined Variables, Technical Indicator Functions, Order Management, Market Information, Account Functions, Preprocessor, Error Handling, Common Gotchas, File Operations, WebRequest, Utility Functions, Global Terminal Variables
architecture-patterns.md: Project Structure, Simple Single-File, Modular EA, State Machine, Multi-Timeframe, Multi-Symbol, Singleton, Strategy Pattern, Observer, Include File Design, Complete Templates
mql5-reference.md: OOP Features, Trade Functions, CTrade, Native Trade, Event Handlers, Standard Library, Key Enumerations, SQLite, Sockets, Resources, OpenCL
| Aspect | MQL4 | MQL5 |
|---|---|---|
| Paradigm | Procedural (C-like) | Full OOP (C++-like) |
| Trade model | Orders only (OrderSend) | Orders + Deals + Positions (CTrade) |
| Account model | Hedging only | Netting + Hedging |
| Indicator buffers | Max 8 | Max 512 |
| Draw styles | 6 basic | 18 (basic + color) |
| Standard Library | Minimal | Comprehensive |
| Database | None | SQLite built-in |
| Sockets | None | TCP + TLS |
| OpenCL | No | Yes |
indicator_chart_window or indicator_separate_windowindicator_buffers, indicator_plots in MQL5)OnCalculate() with efficient recalculation using prev_calculatedWebRequest() for REST calls (POST/GET)EventSetTimer() for polling patterns== with doubles. Use NormalizeDouble() or toleranceOrdersTotal()-1 down to 0 when closing orders (MQL4)OrderSend() without SL/TP, then OrderModify()SYMBOL_FILLING_MODE, never hardcode FOKArraySetAsSeries() to controlMQL5/ (or MQL4/)
├── Experts/
│ └── MyEA/
│ └── MyEA.mq5 // EA entry point
├── Indicators/
│ └── MyIndicator.mq5
├── Scripts/
│ └── MyScript.mq5
├── Include/
│ ├── Core/
│ │ ├── CTradeManager.mqh // Order execution + retries
│ │ ├── CRiskManager.mqh // Position sizing + drawdown
│ │ └── CSignalBase.mqh // Signal interface
│ ├── Communication/
│ │ ├── CHttpClient.mqh // WebRequest wrapper
│ │ └── CJsonHelper.mqh // JSON build/parse
│ ├── UI/
│ │ └── CPanel.mqh // Trading panel
│ └── Utils/
│ ├── CTimeFilter.mqh // Session/time filters
│ └── CSymbolHelper.mqh // Multi-market helpers
└── Libraries/
For simpler projects, a single-file EA with inline functions is acceptable.
m_ (e.g., m_magicNumber)g_ (e.g., g_isInitialized)input for user parameters, not extern#property strict in MQL4NormalizeDouble(price, Digits)OrderSelect(), OrderSend(), trade operationsreferences/architecture-patterns.md (opens in a new tab)references/backtesting.md (opens in a new tab)references/external-communication.md (opens in a new tab)references/indicators-and-ui.md (opens in a new tab)references/mql4-reference.md (opens in a new tab)references/mql5-reference.md (opens in a new tab)references/security-licensing.md (opens in a new tab)references/trading-operations.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub algotradingspace-dev/metatrader-skills --plugin mql-developer