/metatrader-platform:journal-monitorfrom metatrader-platform
Parse MT5 terminal journal logs (JournalLog-*.log) and surface execution anomalies — connection drops, slow fills, slow SL/TP modifies, failed orders, and fast SL hits — across one or many broker accounts. Trigger this skill whenever the user asks to analyse, compare, or monitor MT5 journals; investigate broker execution quality; compare latency or drops across brokers; set up nightly journal monitoring or alerts; debug why an EA performed differently on different accounts; or uploads files named JournalLog-<account>-<date>.log. Also trigger when the user mentions MT5 journal logs, broker execution quality, connection drops, slow fills, or fast SL hits, even if they do not explicitly say "journal".
Ships in metatrader-platform. 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; scripts run unread.
Parse MetaTrader 5 terminal journal logs and surface execution anomalies across one or many broker accounts. Built for algo traders running the same EA on multiple brokers who want to detect when a broker's execution is degrading the strategy.
Detects broker-level execution problems by parsing MT5 journal logs: connection drops, slow order fills, slow SL/TP modifications, failed/rejected orders, and suspiciously fast SL hits. Ships three Python scripts that automate the full pipeline from parsing to reporting.
Do NOT use for:
trade-managerrisk-engineea-architect| Anomaly | Default threshold | Severity |
|---|---|---|
| Connection drops | every drop | warn |
| Slow pending/market fills | > 100 ms | warn (> 1 s = error) |
| Slow SL/TP modifies | > 50 ms | warn (> 500 ms = error) |
| Failed/rejected orders | every failure | error |
| Fast SL hits (position round-trip) | <= 30 s | warn |
All thresholds are configurable via CLI flags or YAML config.
The skill ships three Python scripts in scripts/:
parser.py — parses MT5 journal files into structured events (UTF-16/UTF-8
auto-detected, tab-separated)analyzer.py — consumes parsed events, produces per-account reports with
latency stats and anomaly listsmonitor.py — end-to-end CLI: reads files/dirs, writes markdown report +
optional CSV/JSON/webhookpython scripts/monitor.py \
--path /path/to/journals \
--label ACCOUNT_ID_1=BrokerA \
--label ACCOUNT_ID_2=BrokerB \
--out ./report.md --csv ./anomalies.csv --json ./summary.json
For recurring monitoring use --config monitor.yaml. See
scripts/config.example.yaml to specify paths, labels, thresholds, and
optional webhook URL.
Parsing. MT5 writes one line per event. Files use UTF-16 LE with BOM (most common) or UTF-8. Dates come from the filename, not the line content. The parser classifies each line into event types and extracts symbol, order_id, side, volume, price, duration_ms where present.
Analysis. Events are grouped by account. For each account the analyser computes: drop count and cluster count, latency stats for pending/modify/cancel/market categories, deal count, failed order count, fast SL hits via same-symbol opposite-side deals with equal volume within a time window, and per-symbol breakdowns.
Output. Markdown report for humans, CSV for spreadsheet analysis, JSON for
integration. Optional Discord-compatible webhook fires when any error anomaly
exists or warn count exceeds threshold.
Workflow A — "I uploaded some journal files, what do they show?"
monitor.py --path <upload_dir> --label ...=Broker ...Workflow B — "Compare execution across my brokers"
Workflow C — "Set up nightly monitoring"
references/collecting_journals.md for the matching setupmonitor.yaml from scripts/config.example.yamlWorkflow D — "Extend the detection"
analyzer.py — add detection in analyze()parser.py — extend _classify()monitor.py — add a CLI flag and write logic| File | Contents | Read when |
|---|---|---|
references/journal_format.md | Detailed line format, key message patterns (pending, deal, modify, cancel, failed, connection, auth), important gotchas | Parsing logic understanding; debugging misclassified events; learning every message pattern |
references/collecting_journals.md | Centralising journals from Wine prefixes, Docker containers, Backtest Manager; rsync scripts; cron entries; retention | Setting up journal collection on Linux; configuring nightly monitoring |
scripts/parser.py | parse_paths() → list of JournalEvent objects | Core parsing logic |
scripts/analyzer.py | analyze() → dict of AccountReport; format_report() → markdown | Analysis and reporting logic |
scripts/monitor.py | CLI entry point; supports files, dirs, --days, labels, thresholds, YAML config, webhook | Running the monitor |
scripts/config.example.yaml | Annotated config template | Creating a production config |
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/platformMetaTrader 5 platform operations reference skill. Use for: installing MT5 on Windows/macOS/Linux; configuring startup modes and CLI keys; managing SSL certificates and 2FA/TOTP; understanding file/folder layout; managing accounts and transfers; reading platform logs, Task Manager, and live update behaviour; keyboard shortcuts; chart analysis workspace and templates; trading UI, DOM, Market Watch, margin models; platform drawing objects; custom symbols; MQL5 chart operations API; MQL5 object API. For MQL5 constants, use the constants skill. For the Python module, use the python skill. For the HTTP bridge, use the httpapi skill.
/pythonMetaTrader 5 Python package (MetaTrader5 module) integration. Use for: connecting Python code to a local MT5 terminal; initialising and shutting down sessions; reading account, terminal, symbol, tick, rate, order, position, and deal data; calculating margin or profit; validating and sending trade requests; building pandas-based MT5 data workflows; converting MT5 responses into DataFrame-friendly structures. Trigger: "MetaTrader5", "MT5 Python", "python mt5", "initialize MT5", "mt5 login", "mt5 order_send", "mt5 copy_rates", "mt5 account info", "pandas mt5", "mt5 symbol select".
Other plugins' skills for the same job
npx claudepluginhub algotradingspace-dev/metatrader-skills --plugin metatrader-platform