/mql5-development:stdlib-utilitiesfrom mql5-development
MQL4/MQL5 language and runtime utilities reference skill. Use for: magic number isolation; OrderSend retry logic; .set file parameter presets; MQL4 vs MQL5 differences; file I/O and sandbox rules; string manipulation; array operations; date/time functions; terminal global variables; SQLite database access; runtime error codes; type conversion; matrix/vector stubs. Trigger: "magic number", "OrderSend retry", ".set file", "MQL4 vs MQL5", "file I/O", "string functions", "array functions", "date and time", "global variables", "database", "type conversion", "runtime error", "MqlDateTime", "terminal global".
Ships in mql5-development. 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.
Language-level reference for MQL4/MQL5 standard library functions, runtime utilities, and development conventions.
This is a Reference skill: the body is a routing table into references/.
Read the relevant reference file for the function family you need.
Catalogs the MQL5 standard library and runtime utility surface — everything from string manipulation and file I/O to database access, math functions, and terminal global variables. The initial "Development Standards" section covers EA structure conventions, input parameter grouping, error handling patterns, .set file presets, and MQL4 vs MQL5 differences.
Do NOT use for:
ea-architectconstantsea-architect reference custom-indicators.md| File | Contents | Read when |
|---|---|---|
references/dev-standards.md | EA header template, input grouping, magic number rules, mandatory components, OrderSend retry, .set presets, MQL4 vs MQL5 | Starting a new EA; structuring inputs; setting up presets |
references/program-context.md | MQLInfoInteger/MQLInfoString, ENUM_PROGRAM_TYPE, MqlDateTime, TerminalInfo*, program lifecycle, IsStopped | Checking tester/trade/dll permissions; resolving data paths; runtime identity |
references/error-codes.md | Runtime error code ranges, TRADE_RETCODE_* return codes | Debugging OrderSend failures; mapping GetLastError() values |
references/named-constants.md | ENUM_POINTER_TYPE, REASON_* uninit codes, ENUM_DATATYPE, math constants, compile macros, EMPTY_VALUE, INVALID_HANDLE | CheckPointer() usage; OnDeinit reason handling; data type lookup |
references/file-io.md | File sandbox rules, FileOpen flags, text/binary read/write, FileFindFirst/FileFindNext/FileFindClose, FileCopy, FolderCreate | Reading/writing EA data files; file search; folder management |
references/time-date.md | TimeCurrent, TimeTradeServer, TimeLocal, TimeGMT, TimeToStruct, StructToTime, calendar field helpers | Broker-aligned time handling; timestamp conversion |
references/strings.md | StringAdd, StringConcatenate, StringFind, StringReplace, StringSplit, StringTrimLeft, StringTrimRight, StringToLower | Building or parsing strings; CSV tokenization; case normalization |
references/conversions.md | DoubleToString, StringToDouble, NormalizeDouble, StringFormat, ColorToString, TimeToString, StructToCharArray | Formatting output; parsing input; color/time serialization |
references/arrays.md | ArrayResize, ArrayCopy, ArraySetAsSeries, ArraySort, ArrayBsearch, ArrayMaximum, ArrayInsert, ArrayToFP16 | Dynamic array management; search/sort; series orientation |
references/math.md | MathSin/Cos/Tan, MathExp/Log/Pow, MathFloor/Ceil/Round, MathRand, MathIsValidNumber | Indicator math; risk calculations; floating-point safety |
references/common-utilities.md | Print/PrintFormat, Alert, Sleep, ExpertRemove, TesterStatistics, CheckPointer, GetMicrosecondCount, CryptEncode | Logging; tester utilities; memory/pointer helpers; profiling |
references/global-variables.md | GlobalVariableSet, GlobalVariableGet, GlobalVariableSetOnCondition, GlobalVariableTemp | Cross-session flags; inter-program coordination |
references/database.md | DatabaseOpen, DatabasePrepare, DatabaseBind, DatabaseRead, DatabaseExecute, transactions, import/export | SQLite storage in MQL5; prepared statements; bulk writes |
references/matrix-stub.md | matrix<T>/vector<T> function catalog — init, manipulations, products, statistics, transformations, ML | Matrix/vector numerical work; linear algebra in MQL5 |
references/arrays.md (opens in a new tab)references/common-utilities.md (opens in a new tab)references/conversions.md (opens in a new tab)references/database.md (opens in a new tab)references/dev-standards.md (opens in a new tab)references/error-codes.md (opens in a new tab)references/file-io.md (opens in a new tab)references/global-variables.md (opens in a new tab)references/math.md (opens in a new tab)references/matrix-stub.md (opens in a new tab)references/named-constants.md (opens in a new tab)references/program-context.md (opens in a new tab)references/strings.md (opens in a new tab)references/time-date.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/constantsCanonical reference skill for MQL5 ENUM_* values, flag combinations, and property identifiers. Use for: looking up any ENUM_* name or property identifier; valid values for AccountInfo*, TerminalInfo*, Chart*, Object*, File* calls; combining bitmask flags (file modes, visibility, fill policy); trade return codes, runtime error codes, symbol property enums, Web colors, Wingdings codes, MessageBox constants. Trigger: "what does ENUM_ mean", "MQL5 error code", "property identifier", "valid values", "ENUM_SYMBOL_", "ENUM_ACCOUNT_", "ENUM_OBJECT_", "file flags", "Wingdings", "trade return code", "chart property", "OBJPROP_", "OrderGetInteger", "PositionGetDouble".
/ea-architectMaster MQL5 Expert Advisor architecture reference. Use for: wiring the 5-layer EA model (risk, regime, signal, trade mgmt, analytics); writing OnInit/OnTick/OnDeinit event handlers; setting up IsNewBar gating; designing include file layouts and .mqh module interfaces; applying naming conventions across all EA files; reading symbol properties in a broker-agnostic way; and integrating CExpert/CExpertSignal/CExpertMoney standard-library classes. Trigger: "5-layer architecture", "module wiring", "OnInit", "OnTick", "IsNewBar", "include files", "mqh", "CExpert", "event handlers", "EA template", "naming conventions", "broker-agnostic", "symbol data access".
/economic-calendarMQL5 economic calendar API reference skill. Use for: querying calendar countries or events; looking up calendar metadata by id, country, or currency code; retrieving historical or latest economic values; incremental polling with change_id for efficient live filters; wiring calendar-based trade-blocking logic into Expert Advisors. Trigger: "CalendarCountries", "CalendarEventById", "CalendarValueHistory", "CalendarValueLast", "economic calendar", "calendar filter", "news filter", "CalendarEventByCountry", "CalendarValueHistoryByEvent", "change_id".
/market-regimeMarket regime detection and filtering for MQL5 EAs. Use for all logic that determines WHETHER to trade: trend vs range classification via ADX; volatility regime via ATR (high/normal/reduced); session filtering (London/NY/Asian killzones); news event avoidance; spread spike detection; weekend and holiday blocking. This is Layer 2 — signals are never generated without passing through regime first. Trigger: "market regime", "trending vs ranging", "session filter", "news filter", "volatility filter", "spread filter", "when to trade", "ATR regime", "ADX trend strength", "killzone", "dead zone", "regime detection", "Layer 2".
/mql5-docs-lookupLooks up authoritative MQL5 answers in the official documentation through the Algo Trading Space MCP tools, instead of answering from memory. Use for: "what does this constant mean", "how does OnTesterPass work", "which handler fires on X", "cite the MQL5 docs", "is this API real", "find the docs page for SYMBOL_BID". Trigger: "mql5 docs", "official documentation", "search mql5", "resolve symbol", "does MQL5 have", "MQL5 reference".
/multi-assetMulti-asset and multi-pair EA management for MQL5. Use for all logic involving trading more than one instrument: per-symbol configuration profiles (SSymbolConfig struct); 17 pre-built asset profiles across forex, metals, indices, and crypto CFDs; portfolio-level risk with correlation group limits; CMultiAssetManager class for position discovery, group counting, and total-risk enforcement; magic number assignment per symbol; multi-symbol OnTick architecture that processes each symbol independently. Trigger: "multi-pair", "portfolio EA", "multiple symbols", "all pairs", "forex and gold", "symbol manager", "asset class", "per-pair settings", "correlation management", "basket trading", "run on all symbols", "trade everything", "SymbolInfoInteger", "SymbolSelect".
npx claudepluginhub algotradingspace-dev/metatrader-skills --plugin mql5-development