- Home
- Skills
- Trading & Investing
- MQL5 & MetaTrader Algorithmic Trading Pack
MQL5 & MetaTrader Algorithmic Trading Pack
7 specialized skills for MetaTrader 4 & 5 algorithmic trading: Expert Advisors, custom indicators, Pine Script to MQL5 porting, static EA code review, TA-Lib analysis, and MQL5.com signal due diligence.
$15
MQL5 & MetaTrader Algorithmic Trading Pack
Example session with this skill installed
I have an MT5 Expert Advisor source file. Can you review it for any trading logic red flags and performance bottlenecks in the OnTick handler?
- Read your context and instructions
- Compiled the mql5 & metatrader
I have analyzed the Expert Advisor source code using the static code review patterns and the mql5_redflags.py scanner. The audit focused on trade logic correctness, per-tick efficiency, and state persistence.
MQL5 Static Analysis Report
| Category | Finding | Severity | Recommendation |
|---|---|---|---|
| Performance | OnTick contains ObjectsDeleteAll without scope | High | Move UI cleanup to OnDeinit or use specific prefixes to avoid chart flicker. |
| Risk Logic | Missing LotStep normalization in OrderSend | Medium | Wrap volume calculations in MathFloor(vol/step)*step to prevent broker rejects. |
| State | static vars used for position tracking without MagicNumber check | High | Implement PositionSelectByMagic to prevent interference from other EAs. |
| Reliability | Indicator handles initialized in OnTick | Medium | Move iMA and iRSI handle creation to OnInit to prevent handle leakage. |
| Parity | Use of TimeCurrent() for bar closing logic | Low | Use iTime with a specific symbol index to ensure tester-vs-live parity. |
Logic Red Flags Detected
- Hot Path Inefficiency: String concatenations detected inside the primary trading loop.
- Numeric Precision: Floating point comparisons found without
_Pointor epsilon thresholds. - Global State: EA lacks a persistent state recovery mechanism for terminal restarts during open drawdowns.
Next steps
- Refactor the indicator handle initialization into the
OnInit()block to reduce CPU overhead. - Apply the volume normalization fix to the
Trade.mqhinclude or local risk function. - Add a unique
MagicNumberinput and filter allPositionGetcalls to ensure multi-instance compatibility.
Connects securely to your tools. The creator never sees your data.
About this skill
Algorithmic trading demands precision, yet MetaTrader development often suffers from silent execution errors, tester-vs-live parity issues, and fragmented documentation. This skill provides a comprehensive engineering suite to build, audit, and optimize MQL4 and MQL5 systems with professional rigor.
What it does
- Architect Expert Advisors by implementing modular EA structures, state machines, and multi-symbol frameworks.
- Port Pine Script to MQL5 using a shift-invariance model that preserves indicator fidelity and closed-bar states.
- Perform Static Audits with a regex red-flag scanner to identify risk management bugs and per-tick performance bottlenecks.
- Analyze Copy-Trading Signals via trade-history forensics to expose strategy shifts, tail risk, and hidden capital injections.
- Bridge MQL5 to Python by mapping built-in indicators to TA-Lib and aligning MT5 quote CSVs to handle hidden timeframe gaps.
- Implement UI Panels and REST API integrations using
WebRequestand JSON for external communication.
How it works
- Initialize Project by selecting the MQL4 procedural or MQL5 OOP paradigm based on target platform requirements.
- Develop Logic using battle-tested
OnCalculatepatterns for indicators orCTradehandlers for position management. - Audit Source by running the static code reviewer to catch failure modes like restart races or weekend gap handling.
- Validate Data through the quote alignment script to ensure historical backtests are not corrupted by coarse data segments.
Frameworks & tools
This skill utilizes MQL4, MQL5, and Pine Script. It integrates with Python 3 for quantitative analysis via TA-Lib and includes a specialized regex scanner for static code analysis.
Why this beats prompting it yourself
Standard prompting often confuses MQL4 and MQL5 syntax or fails to account for the complex Order-Deal-Position model in MT5. This skill uses specific architecture patterns and a red-flag scanner to catch silent numeric errors and execution logic gaps that generic models miss.
Use cases
- Porting complex TradingView indicators to native MT5 buffers without repainting issues.
- Auditing third-party EA source code for malicious "dead-hang" holding patterns or risk failures.
- Automating the due diligence of MQL5.com signals before committing capital.
- Building high-performance indicators that require hidden calculation buffers and proper warmup handling.
Known limitations
Static analysis cannot replace live execution testing for latency-sensitive slippage. Pine Script porting is limited to open-source scripts and excludes drawing-heavy strategies or closed-source masked code.
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 4 days ago
- Accounts
GitHub
Tradingview
Ta Lib
Tadoc
- Software
Node.js
Python
Git
Permissions
Allowed Hosts
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.