Skip to content
All library documents

Conformer: Continuous Attention and Neural ODEs for Market Forecasting

Article MQL5 articles

Summary

The article adapts Conformer, a spatio-temporal continuous-attention transformer originally proposed for weather forecasting, to financial market modeling. It explains how the method uses attention across the same variables at different states, estimates changes with derivatives, and combines attention with Neural ODE layers to represent transitions over time. It also discusses derivative normalization and the use of an adaptive Dormand–Prince solver, then describes an MQL5 implementation with query, key, and value projections, attention scores, Neural ODE blocks, and feed-forward layers.

The article reports that its trained model produced profit on both training and testing data, with a profit factor of 1.72 and reported balance and equity drawdowns. These results are presented as an example rather than proof of a robust trading edge: the document gives limited detail in the supplied text about data construction, comparison baselines, or independent validation. The authors explicitly frame the software and results as informational demonstrations, so the reported performance should not be treated as evidence of future returns.

Key ideas

  • Conformer applies continuous attention across corresponding variables in different temporal states.
  • Derivative features and Neural ODE layers are used to represent evolving system dynamics.
  • The described MQL5 architecture combines attention, differential-equation layers, and feed-forward blocks.
  • The article reports profitable training and testing results but presents them as an informational demonstration.
  • The supplied evidence does not establish that the reported performance will generalize to other data or periods.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.