Discussing the article: "Neural Networks in Trading: Mesh-Based Approximation of Event Streams as a Tool for Analyzing Price Patterns (Conclusion)"
Did you come up with those words yourself?
Thanks for the new strategy!
I’ve run your expert advisor in its original form (logs aren’t taken into account). The STFS error level is holding steady at 1600+. Is this normal? Or do the indicators need to be normalised after all?
And regarding the M1 timeframe in the last part of the article, you didn’t make a typo there, did you? Perhaps it’s H1 after all?
Dmitry, hello!
Thank you for the new work!
I’ve run your expert advisor in its original form (logs aren’t taken into account). The STFS error level remains at 1600+. Is this normal? Or do the features need to be normalised after all?
Good afternoon, Vladimir.
The STFS error rate, by and large, has little impact on the model’s trading performance. We use it at the initial stage of training to focus the state encoder’s attention as much as possible on features that provide the most information about future price movements. This is the supervised learning stage on a pseudo-ideal trajectory (Self-Supervised Learning).
In the second stage — online training in the strategy tester (StudyOnline.mq5) — STFS is no longer used. We then adjust the model’s parameters based on the performance of completed trades — this is known asreinforcement learning.
I’ve noticed that during training, the graphics card is underutilised — it’s only running at 5–10 per cent, even though it has plenty of resources. As far as I understand, this is because the data is being processed strictly one bar at a time (Batch Size = 1).
I’d like to seek your advice as the author:
- Is it actually possible to implement parallel batching (for example, 32 patterns simultaneously)? So that the graphics card processes them all at once, rather than one after the other.
- How can this be done correctly without disrupting the architecture of your library? Do I need to modify the OpenCL code, or does the library already provide a way to do this via batch parameters?
- Would this break the logic of BatchNorm or the training process as a whole? I really don’t want to disrupt your intended design regarding how the layers interact.
I’d be very grateful for any advice on where to look. I’d like to make the most efficient use of the hardware. My questions may not be entirely accurate, as I’m using LLM for interaction, but I think you’ll understand that anyway. Thank you!
Thank you for the articles!
I’m trying to compile the code in the EEMFlow directory in the zip archive linked in your post. But I’m not sure where to find the Neuronet.mqh and Neuronet.cl files. Sorry if this is a silly question.
Thank you for the articles!
I’m trying to compile the code in the EEMFlow directory in the zip archive linked in your post. But I’m not sure where to find the Neuronet.mqh and Neuronet.cl files. Sorry if this is a silly question.
Hello,
You can find these files in the NeuroNet_DNG directory within the zip file.
Dmitry, thank you for your feedback. I appreciate your interest.
I’ve noticed that during training, the graphics card is underutilised — it’s only running at 5–10 per cent, even though it has plenty of resources. As far as I understand, this is because the data is being processed strictly one bar at a time (Batch Size = 1).
I’d like to seek your advice as the author:
- Is it actually possible to implement parallel batching (for example, 32 patterns simultaneously)? So that the graphics card processes them all at once, rather than one after the other.
- How can this be done correctly without disrupting the architecture of your library? Do I need to modify the OpenCL code, or does the library already provide a way to do this via batch parameters?
- Would this break the logic of BatchNorm or the training process as a whole? I really don’t want to disrupt your intended design regarding how the layers interact.
I’d be very grateful for any advice on which direction to look in. I’d like to make the most efficient use of the hardware. My questions may not be entirely accurate, as I’m using LLM for interaction, but I think you’ll understand that anyway. Thank you!
Good afternoon, Vladimir.
Initially, everything was designed with a focus on online operation within the terminal, and such mechanisms were not envisaged. Implementing them would require significant modifications to both the library itself and the training programmes. In the library, this is primarily due to the size of the data buffers. Whilst maintaining the volume of parameters being trained, it will be necessary to increase the storage buffers for raw data, intermediate values and results several-fold. Furthermore, on the training programme side, it will be necessary to create a correspondingly larger set of raw data and target values.
However, during operation, such large data buffers will be excessive. Consequently, we arrive at the need for separate organisation of the training and operational processes.
Check out the new article: Neural Networks in Trading: Mesh-Based Approximation of Event Streams as a Tool for Analyzing Price Patterns (Conclusion).
A full and detailed description of the architectural solution for the trained models is provided in the attachment, allowing for the replication and scaling of the approach for further experimentation and performance analysis.
The work began with offline training on historical data for EURUSD M1 from January 2024 to June 2025. At this stage, the model developed the ability to identify recurring market patterns, analyze price dynamics and trading volumes, and identify relationships between key features for accurate forecasting. As a result, an internal understanding of the market was formed that combined rigorous mathematical processing of data with the identification of patterns in time series.
The next step was online fine-tuning in the MetaTrader 5 strategy tester. The model was adapted to a real-world data stream, taking into account market noise, liquidity fluctuations, and sharp price spikes. This approach allowed us to integrate accumulated historical experience with current market dynamics, ensuring timely and informed trading decisions.
The final check was carried out on data from July to October 2025, completely new and not previously used in the training process. All model parameters were kept unchanged, which allowed us to objectively evaluate its ability to generalize and adapt to unfamiliar market conditions.
Author: Dmitriy Gizlyk