/mql5-development:economic-calendarfrom mql5-development
MQL5 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".
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 needs direct access to the terminal economic-calendar database instead of scraping external news feeds.
This is a Reference skill: the body is a routing table into function-group summaries. Read the relevant section for the API function you need.
Catalogs the MQL5 economic calendar API: metadata lookups for countries and
events, historical value queries, incremental polling via change_id, and
usage rules for calendar data in EAs.
change_idDo NOT use for:
market-regime news filternetwork| Function | Purpose | Usage note |
|---|---|---|
CalendarCountries(countries[]) | Returns the list of countries present in the calendar database | Use when building dynamic filter menus or validating codes |
CalendarCountryById(id, country) | Resolves one country description by numeric id | Country codes follow ISO 3166-1 alpha-2 naming |
CalendarEventById(id, event) | Resolves one event description by id | Use when a stored event id needs metadata |
CalendarEventByCountry(code, events[]) | Returns all events for a country code | Best for region-specific event scans |
CalendarEventByCurrency(currency, events[]) | Returns all events for a currency code | Useful when trading a currency basket |
CalendarValueById(id, value) | Resolves one calendar value record by value id | Use for point lookups after storing a value id |
US, DE, EU; currency filters use codes
like USD, EUR| Function | Purpose | Usage note |
|---|---|---|
CalendarValueHistory(values, from, to, country, currency) | Returns all matching values in a time range | Use for broad history pulls or multi-country scans |
CalendarValueHistoryByEvent(event_id, values, from, to) | Returns values for one event across a time range | Use when event id is known and the series is the interest |
CalendarValueLast(change_id, values, country, currency) | Returns only values added since previous state | Passing change_id=0 initialises without returning a backlog |
CalendarValueLastByEvent(change_id, event_id, values) | Returns only new values for one event | Use for low-overhead listeners tied to specific indicators |
TimeTradeServer(), not local machine timechange_id is the key to efficient live polling; keep it between calls1,000,000 after checking for LONG_MINERR_CALENDAR_MORE_DATA; use dynamic arraysdocs/mql5_com_-_docs/calendar.mddocs/mql5_com_-_docs/calendar-calendarcountries.mddocs/mql5_com_-_docs/calendar-calendarcountrybyid.mddocs/mql5_com_-_docs/calendar-calendareventbycountry.mddocs/mql5_com_-_docs/calendar-calendareventbycurrency.mddocs/mql5_com_-_docs/calendar-calendareventbyid.mddocs/mql5_com_-_docs/calendar-calendarvaluebyid.mddocs/mql5_com_-_docs/calendar-calendarvaluehistory.mddocs/mql5_com_-_docs/calendar-calendarvaluehistorybyevent.mddocs/mql5_com_-_docs/calendar-calendarvaluelast.mddocs/mql5_com_-_docs/calendar-calendarvaluelastbyevent.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub algotradingspace-dev/metatrader-skills --plugin mql5-development11 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".
/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".
/networkMQL5 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".