Automated Forex Trading Bot Using MQL4: A Reinforcement Learning-based Approach

Foreign exchange (Forex) trading is a high-liquidity, high-volatility global market that requires rapid decision-making. Manual trading often suffers from human limitations, including emotional biases and inconsistent decision-making. This paper presents the design and implementation of an automated Forex trading bot developed using MetaQuotes Language 4 (MQL4) and reinforcement learning (RL) strategies. The system integrates real-time market data analysis, technical indicators (MACD, RSI, Bollinger Bands), and dynamic risk management. Leveraging a custom RL environment, the bot adapts to changing market conditions, learns optimal strategies, and executes trades with reduced human intervention. Simulation results show improved trading performance, higher Sharpe ratios, and reduced drawdown compared to manual strategies. The bot architecture consisted of distinct layers, including the market data input layer, decision engine, order execution module, and risk management system. The bot was tested in a demo trading environment over a one-week period. Results demonstrated a win rate of 62%, a profit factor of 1.45, and a maximum drawdown of 4.2%. These outcomes validate the bot's ability to achieve stable performance under simulated market conditions. This study underscores the potential of AI-driven automation for enhancing algorithmic trading efficacy.

Authors

Institutions

Publication Details

Journal
Automation Control and Intelligent Systems
Published
2025-08-27
DOI
https://doi.org/10.11648/j.acis.20251303.11
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automated Forex Trading Bot Using MQL4: A Reinforcement Learning-based Approach

Baku Agyo Raphael, Ismaila Jesse Mazadu, Ján Markus
Automation Control and Intelligent Systems
Stock Market Forecasting Methods
article

Automated Forex Trading Bot Using MQL4: A Reinforcement Learning-based Approach

Baku Agyo Raphael, Ismaila Jesse Mazadu, Ján Markus
article en

Abstract

Foreign exchange (Forex) trading is a high-liquidity, high-volatility global market that requires rapid decision-making. Manual trading often suffers from human limitations, including emotional biases and inconsistent decision-making. This paper presents the design and implementation of an automated Forex trading bot developed using MetaQuotes Language 4 (MQL4) and reinforcement learning (RL) strategies. The system integrates real-time market data analysis, technical indicators (MACD, RSI, Bollinger Bands), and dynamic risk management. Leveraging a custom RL environment, the bot adapts to changing market conditions, learns optimal strategies, and executes trades with reduced human intervention. Simulation results show improved trading performance, higher Sharpe ratios, and reduced drawdown compared to manual strategies. The bot architecture consisted of distinct layers, including the market data input layer, decision engine, order execution module, and risk management system. The bot was tested in a demo trading environment over a one-week period. Results demonstrated a win rate of 62%, a profit factor of 1.45, and a maximum drawdown of 4.2%. These outcomes validate the bot's ability to achieve stable performance under simulated market conditions. This study underscores the potential of AI-driven automation for enhancing algorithmic trading efficacy.

Automation Control and Intelligent SystemsVol. 13(3)
Kwararafa University (NG)
Openalex Percentile: Top 73%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Automated Forex Trading Bot Using MQL4: A Reinforcement Learning-based Approach — Baku Agyo Raphael, Ismaila Jesse Mazadu, et al. · Automation Control and Intelligent Systems (2025) | TGRS Research Map | TGRS