Works with the AI Agents you already use
Selam
Forensic trade analysis and market reconstruction tool for MT5/MQL5 developers and XAUUSD traders.
$8.99
Selam
Example session with this skill installed
selam. Read the chart screenshot I just pasted. Why did my XAUUSD EA enter a sell here when price was clearly rallying? Check the logs for the context at entry.
- Read your context and instructions
- Compiled the selam
I have analyzed the XAUUSD M15 chart and the provided MT5 logs for the trade at 14:30.
Trade Autopsy: XAUUSD Sell #402
| Metric | Value |
|---|---|
| Facts | Entry: 2045.30 |
| HTF Context | H4 is Trending Bullish; M15 showed a minor CHoCH to the downside. |
| Location | Entry was at the very bottom of a 15-pip supply zone (Position 5%). |
| Reaction | Trigger candle was a small doji (Body 12%) rather than a displacement bar. |
| Primary Cause | Category B (Wrong Location): Chasing the entry at the edge of the zone. |
The logs show [Ctx] zone_pos=5%, vol_rel=0.8, atr=1.2. The EA triggered on a wick touch rather than waiting for a candle close confirmation. While the supply zone was valid, the entry geometry offered poor R:R because price had already moved significantly away from the rejection edge before the order was sent.
Next steps
- Add a
zone_positionfilter to the EA to prevent entries below the 25% mark of a supply zone. - Update the trigger logic to require a closed candle with
Body% > 50%to confirm rejection. - Run a backtest on the last 30 days to see if this filter reduces the number of "chase" losses.
Connects securely to your tools. The creator never sees your data.
About this skill
Trading algorithms often fail because developers look at backtest summaries instead of raw market behavior. Selam solves this by providing a deep-dive forensic analysis of MT5 logs and raw price action. It bridges the gap between MQL5 code logic and the "trader's eye" needed to understand why a strategy actually wins or loses.
What it does
- Trade Autopsy identifies the primary cause of losses using a 10-point evidence-based template.
- Market Reconstruction builds a narrative from OHLC data to identify high-timeframe structure, zones, and liquidity sweeps.
- Engine Troubleshooting audits MQL5 logs and EA code to find state-loss bugs, handle leaks, and execution errors.
- Disciplined Tuning conducts controlled experiments to optimize parameters like ATR-based stops and entry cooldowns without overfitting.
- Missed Trade Analysis scans logs to determine why specific setups were skipped by filters or session rules.
How it works
- Log Ingestion parses MT5 terminal, tester, and agent logs to build a complete Trade Register with MAE/MFE metrics.
- Chart Annotation calculates candle anatomy including Body%, Wick%, and Relative Volume to find displacement clusters.
- Hypothesis Testing runs one-change-at-a-time experiments, comparing results against a baseline to verify improvements.
- Validation applies overfitting protection through out-of-sample testing and plateau analysis of parameter neighbors.
Frameworks & tools
Specifically designed for MetaTrader 5 (MT5) and MQL5. Uses PowerShell for log filtering and Python for raw bar analysis via the market_story.py script.
Why this beats prompting it yourself
Generic prompts often hallucinate price levels or miss technical MQL5 state bugs. This skill enforces a "Facts First" protocol that separates observation from interpretation, ensuring every conclusion is cited with log evidence or candle coordinates.
Use cases
- Debugging why an EA entered a trade that a human trader would have skipped.
- Analyzing MT5 logs to find hidden execution issues like slippage or requotes.
- Stress-testing a strategy's sensitivity to spread widening and news events.
- Creating a weekly trading journal that segments performance by session and regime.
Known limitations
Requires raw OHLC data or specific [Ctx] log tags for full accuracy. Visual chart reading is approximate without a visible scale.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
New in Trading & Investing
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.