/mql5-development:networkfrom mql5-development
MQL5 network and outbound communication reference skill. Use for: calling WebRequest from an EA or script; opening raw TCP or TLS sockets; sending or reading bytes; checking socket readability, writability, or connection state; setting socket send/receive timeouts; using terminal-mediated SendMail, SendFTP, or SendNotification. Trigger: "WebRequest", "socket", "HTTP from EA", "REST call from MQL5", "send data to server", "SendMail", "SendFTP", "SendNotification", "TLS socket", "TCP socket", "outbound communication", "socket create", "socket connect".
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.
None: SKILL.md is the whole skill.
Use this skill when an EA or script must reach beyond the terminal sandbox and communicate with HTTP endpoints, raw TCP services, or terminal-mediated outbound notification channels.
This is a Reference skill: the body is a routing table into function-group summaries. Read the relevant section for the network API you need.
Catalogs the MQL5 outbound communication surface: socket lifecycle (create,
connect, read, send, close), TLS handshake and secure I/O, WebRequest() for
HTTP, and terminal-mediated sends (email, FTP, push notifications).
Do NOT use for:
stdlib-utilitiesstdlib-utilitiesea-architect| Function | Purpose | Usage note |
|---|---|---|
SocketCreate(flags) | Creates a socket handle | Currently uses SOCKET_DEFAULT; returns INVALID_HANDLE on failure |
SocketConnect(socket, address, port, timeout) | Connects the socket to a remote host | Use after creation and before any send/read operations |
SocketTimeouts(socket, send_ms, receive_ms) | Sets OS-level send and receive timeouts | Persistent socket-object timeouts, separate from per-call timeout in SocketRead() |
SocketIsConnected(socket) | Checks whether the socket remains connected | Use to guard long-lived sessions or reconnect logic |
SocketIsReadable(socket) | Checks whether socket data is ready to read | Pair with non-blocking poll loops before SocketRead() |
SocketIsWritable(socket) | Checks whether the socket can send more data | Useful in paced send loops or after partial writes |
SocketRead(socket, buffer, expected, timeout) | Reads bytes from a plain socket | Per-call timeout is distinct from SocketTimeouts() |
SocketSend(socket, buffer, size) | Sends bytes through a plain socket | Treat short writes or failures as transport-state problems |
SocketClose(socket) | Closes the socket handle and frees resources | Always close handles explicitly; one program can only hold 128 sockets |
4014ERR_NETSOCKET_TOO_MANY_OPENEDSocketTimeouts() configures the underlying socket object once, while
SocketRead() also accepts an operation-specific timeoutERR_NETSOCKET_INVALIDHANDLE| Function | Purpose | Usage note |
|---|---|---|
WebRequest() | Sends synchronous HTTP requests | Requires URL whitelisted in terminal options; cannot run in Strategy Tester |
SocketTlsHandshake(socket, host) | Starts TLS over an existing connected socket | Must complete before TLS read/send calls |
SocketTlsCertificate(socket) | Retrieves peer-certificate information | Use for connection inspection or validation logging |
SocketTlsRead(socket, buffer, expected) | Reads bytes from an established TLS session | Use only after handshake succeeds |
SocketTlsReadAvailable(socket) | Checks how much TLS data is ready | Helpful for staged read loops or message framing |
SocketTlsSend(socket, buffer, size) | Sends bytes over a TLS socket | Requires a live TLS session, not just a connected plain socket |
SendMail(subject, body) | Sends terminal-configured email notifications | Terminal-side mail settings must already be configured |
SendFTP(path, data) | Uploads data using terminal FTP settings | Treat as a terminal service, not a generic network stack replacement |
SendNotification(text) | Sends a push notification | Also unavailable in the Strategy Tester |
WebRequest() is synchronous and blocks the calling thread; indicators are
forbidden from using itWebRequest() are terminal configuration, not runtime codeWebRequest() or terminal notification channelsdocs/mql5_com_-_docs/network.mddocs/mql5_com_-_docs/network-socketcreate.mddocs/mql5_com_-_docs/network-socketconnect.mddocs/mql5_com_-_docs/network-socketclose.mddocs/mql5_com_-_docs/network-socketisconnected.mddocs/mql5_com_-_docs/network-socketisreadable.mddocs/mql5_com_-_docs/network-socketiswritable.mddocs/mql5_com_-_docs/network-socketread.mddocs/mql5_com_-_docs/network-socketsend.mddocs/mql5_com_-_docs/network-sockettimeouts.mddocs/mql5_com_-_docs/network-sockettlshandshake.mddocs/mql5_com_-_docs/network-sockettlscertificate.mddocs/mql5_com_-_docs/network-sockettlsread.mddocs/mql5_com_-_docs/network-sockettlsreadavailable.mddocs/mql5_com_-_docs/network-sockettlssend.mddocs/mql5_com_-_docs/network-webrequest.mddocs/mql5_com_-_docs/network-sendmail.mddocs/mql5_com_-_docs/network-sendftp.mddocs/mql5_com_-_docs/network-sendnotification.mdWhat 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