MQL5 & MetaTrader Algorithmic Trading Pack

    by Aquilas Cleveland

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    CategoryFindingSeverityRecommendation
    PerformanceOnTick contains ObjectsDeleteAll without scopeHighMove UI cleanup to OnDeinit or use specific prefixes to avoid chart flicker.
    Risk LogicMissing LotStep normalization in OrderSendMediumWrap volume calculations in MathFloor(vol/step)*step to prevent broker rejects.
    Statestatic vars used for position tracking without MagicNumber checkHighImplement PositionSelectByMagic to prevent interference from other EAs.
    ReliabilityIndicator handles initialized in OnTickMediumMove iMA and iRSI handle creation to OnInit to prevent handle leakage.
    ParityUse of TimeCurrent() for bar closing logicLowUse 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 _Point or 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.mqh include or local risk function.
    • Add a unique MagicNumber input and filter all PositionGet calls 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 WebRequest and JSON for external communication.

    How it works

    1. Initialize Project by selecting the MQL4 procedural or MQL5 OOP paradigm based on target platform requirements.
    2. Develop Logic using battle-tested OnCalculate patterns for indicators or CTrade handlers for position management.
    3. Audit Source by running the static code reviewer to catch failure modes like restart races or weekend gap handling.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    GitHubTradingviewTa LibTadoc
    Software
    Node.jsPythonGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    pine-facade.tradingview.com
    www.tradingview.com
    ta-lib.org
    github.com
    ta-lib.github.io
    pages.github.com
    www.tadoc.org
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a professional engineering suite for MetaTrader 4 and 5 development. It solves common issues like silent execution errors, tester vs live parity gaps, and the difficulty of porting TradingView indicators to native MQL5 without repainting issues.

    You typically need MQL4 or MQL5 source files (mq4, mq5, mqh), TradingView Pine Script URLs, or exported trade history CSVs from MQL5.com. The skill also utilizes Python 3 with TA-Lib for advanced quantitative analysis and quote alignment.

    The skill generates production ready Expert Advisors and indicators, detailed static code audit reports, and evidence based due diligence verdicts for copy trading signals. It can also produce aligned quote data in TSV format and mapped technical analysis outputs.

    Static analysis cannot replace live execution testing for latency sensitive slippage. Additionally, Pine Script porting is restricted to open source scripts and excludes drawing heavy strategies or closed source masked code.

    You can ask your agent to architect a new Expert Advisor using modular patterns, audit an existing MQ5 file for risk bugs using the red flag scanner, or port a specific TradingView indicator URL to MetaTrader 5.

    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.