Discussing the article: "Neural Networks in Trading: Mesh Approximation of Event Streams as a Tool for Analyzing Price Patterns (ADM Module)"

Check out the new article: Neural Networks in Trading: Mesh Approximation of Event Streams as a Tool for Analyzing Price Patterns (ADM Module).

The article presents an implementation of the Adaptive Density Module (ADM), a key component of the EEMFlow framework, using MQL5. It examines the steps involved in building and combining the MDC and MDS submodules, as well as integrating ADM into the existing BAT trading model. Backtesting results on historical EURUSD data show robust growth in the account balance, controlled drawdowns, and a highly stable equity curve.

Trading policy training and its backtesting using historical data were carried out in several consecutive stages. The model was first trained offline using EURUSD exchange rate data on the H1 timeframe for the period from January 2024 to June 2025. This period served as a training ground. The model studied historical patterns, analyzed price dynamics and trading volumes, identified relationships between key features, and generated forecasts.

The next step—fine-tuning the model online in the MetaTrader 5 Strategy Tester — allowed the model to adapt to the real-time data stream. Here, it learned to handle the characteristics of a live market — remaining robust amid market noise, adjusting its actions when liquidity declined, and reacting instantly to sharp price spikes. This approach ensured a seamless integration of historical experience with current market signals, making trading decisions as timely and well-founded as possible.

The final test was conducted using data from July through October 2025, which was entirely new and had not been used previously in the training process. All of the model's parameters remained unchanged, which made it possible to objectively assess its ability to generalize and adapt to unfamiliar conditions.


Author: Dmitriy Gizlyk