Discussing the article: "Neural Networks in Trading: A Spiking Architecture for Spatio-Temporal Market Analysis (Conclusion)"

Check out the new article: Neural Networks in Trading: A Spiking Architecture for Spatio-Temporal Market Analysis (Conclusion).

The SDformerFlow framework transforms complex events in financial time series into structured representations, enabling the model to identify local fluctuations and global trends simultaneously. The multi-level U-structure ensures consistency between the forward pass and the backward pass, synchronization of gradients, and computational stability. Ultimately, SDformerFlow proves to be a powerful and flexible tool for building modern trading systems.

The model's architecture was largely carried over from previous work without any major changes, which made it possible to retain time-tested signal processing and learning algorithms. The main innovations involved the environment encoder, into which the top-level object CNeuronSDformerFlow was integrated. This approach makes it easier to integrate the framework into the model, preserves modularity, and simplifies maintenance. The complete architecture description code is available in the attachment.

Training the model on historical data for the first time is like a novice trader's practice session. Think of EURUSD from January 2024 to June 2025 as a huge training ground. The model is like a young trader, carefully scrutinizing every candlestick, analyzing volume, and looking for patterns between indicators and market reactions. SDformerFlow is both a microscope, allowing you to see the tiniest movements of each candlestick, and a telescope, revealing global market trends. It generates an informative state for the Actor and the Critic, combines multiscale features, and learns alongside the model. With each new candlestick, the model learns to predict market movements and assess risks, gradually transforming from a timid learner into a confident practitioner capable of making independent decisions.

The real test comes during the online training phase in the MetaTrader 5 Strategy Tester. Here, there is no luxury of working calmly with historical data. Each candlestick is like a blow from the real market. The model responds quickly and accurately, analyzes noise fluctuations, adapts to sudden spikes, and adjusts its behavior during periods of low liquidity. SDformerFlow combines multiscale features, synchronizes the operation of all blocks, and learns alongside the model.

The final exam is a test based on data from July through September 2025. There are no hints here, no historical data to draw on. Only the market and the model's own decisions. Every market move tests the model's preparedness: how well it has mastered the principles of analysis and learned to combine multiscale features and anticipate market reactions. The test results presented below demonstrate how SDformerFlow transforms a complex architecture into a well-coordinated, adaptive, and efficient trading system capable of performing almost like an experienced trader.


Author: Dmitriy Gizlyk