Fecha
2026-06-02
Derechos de acceso
info:eu-repo/semantics/openAccess
Título de la revista
ISSN de la revista
Título del volumen
Editorial
Institute of Electrical and Electronics Engineers

Citas

0 citas en WOS
0 citas en
Proyectos de investigación
Unidades organizativas
Número de la revista
Resumen
This paper presents a generative-AI-assisted methodology for developing domain-specific trading automation tools, focusing on the detection and visualization of liquidity gaps—commonly known as Fair Value Gaps (FVGs)—in derivative markets. Using the MQL4 domain-specific language (DSL) of the MetaTrader 4 (MT4) platform, we design and implement an Expert Advisor (EA) capable of identifying bullish and bearish FVGs, classifying them as mitigated or unmitigated, and rendering them as real-time visual overlays. The proposed approach leverages Copilot to accelerate code generation, reduce development time, and support iterative refinement through prompt-driven interaction. Nine refinement cycles were sufficient to converge on a stable, functionally correct implementation, reducing total development time to approximately four hours—a reduction of roughly 70% compared to a baseline manual estimate of one to two working days derived from published DSL development benchmarks. Functional correctness was validated against 150 historical bars on seven financial instruments and further confirmed through several months of live deployment processing hundreds of candles daily across a diverse set of symbols. The resulting system integrates body-based mitigation logic, multi-timeframe analysis, and optional Fibonacci-based retracement visualization to assist traders in identifying high-probability liquidity zones. The study highlights the potential of AI-assisted DSL development as a practical pathway for rapid prototyping and deployment of algorithmic trading tools, while also documenting domain-specific hallucination patterns and the iterative prompt strategies required to resolve them.
Descripción
The registered version of this article, first published in IEEE Access, is available online at the publisher's website: Institute of Electrical and Electronics Engineers, https://doi.org/10.1109/ACCESS.2026.3699382
La versión registrada de este artículo, publicado por primera vez en IEEE Access, está disponible en línea en el sitio web del editor: Institute of Electrical and Electronics Engineers, https://doi.org/10.1109/ACCESS.2026.3699382
Categorías UNESCO
Palabras clave
Algorithmic trading, domain-specific languages, fair value gaps, generative AI, Copilot, liquidity gaps, MQL4
Citación
Fumanal-Andrés, "Generative AI-Assisted Development of Domain-Specific Trading Automation: A Framework for Liquidity Gap Detection in MQL4," in IEEE Access, vol. 14, pp. 83921-83933, 2026, doi: 10.1109/ACCESS.2026.3699382.
Centro
E.T.S. de Ingeniería Informática
Departamento
Ingeniería de Software y Sistemas Informáticos
Grupo de investigación
Grupo de innovación
Programa de doctorado
Cátedra
Datos de investigación relacionados