mql5-ea-generator

Convert Python-defined trading strategies into MetaTrader 5 Expert Advisor .mq5 files.

13|6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/lauragp28/generador-trading-claude-code --skill mql5-ea-generator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mql5-ea-generator
Source: https://github.com/lauragp28/generador-trading-claude-code/tree/main/skills/mql5-ea-generator
Command: npx skills add https://github.com/lauragp28/generador-trading-claude-code --skill mql5-ea-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Converts trading strategies defined in Python into MetaTrader 5 Expert Advisors (.mq5), enabling automated execution of backtested rules without manual porting.

Core Features & Use Cases

  • Python-to-MQL5 translation: translates the core strategy functions entrada_py, salida_py, and preparar_indicadores_py into MT5-ready logic and indicator handles.
  • Strategy packaging: generates EA files named according to the strategy id (EA_{id_estrategia}.mq5) ready for MT5 testing.
  • Workflow integration: supports selecting strategies from a JSONL catalog and producing a dedicated EA per qualifying record.
  • Documentation alignment: mirrors the provided references for validation and traceability.

Quick Start

Run the generator to translate your Python strategy rules into an MT5 EA file.

Frequently Asked Questions about mql5-ea-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Python trading strategy into an MT5 Expert Advisor?▼

To convert a Python trading strategy into an MT5 Expert Advisor, the generator translates Python functions like entrada_py, salida_py, and preparar_indicadores_py into MQL5 logic and outputs a standalone .mq5 file.

Do I need to manually rewrite my Python indicator logic for MetaTrader 5?▼

No, you do not need to manually rewrite indicator logic for MetaTrader 5. The pipeline automatically translates your preparar_indicadores_py block into MT5-ready logic and indicator handles.

How does Python to MQL5 translation handle multiple trading strategies?▼

Python to MQL5 translation handles multiple strategies by generating a dedicated Expert Advisor file named EA_{id_estrategia}.mq5 for each qualifying record selected from a JSONL catalog.

Can I validate generated MT5 EAs against my existing backtest data?▼

Yes, you can validate generated MT5 EAs against your existing backtest data. The generation pipeline supports optional validation against a backtest JSONL catalog for traceability.

What Python functions are required to generate an MT5 EA?▼

Generating an MT5 EA requires your Python strategy to be defined using the entrada_py, salida_py, and preparar_indicadores_py functions, which are then deterministically translated into MT5 equivalents.

What is the best way to automate MT5 strategy generation from Python rules?▼

The best way to automate MT5 strategy generation from Python rules is using a deterministic translation pipeline that packages each strategy into a standalone EA file with header metadata and structured frontmatter.