Skip to content
All library documents

Dynamic Feature-Aggregated Queries for Video-Based Trading Models

Article MQL5 articles

Summary

The article explains Feature Aggregated Queries (FAQ), a Transformer technique for video object detection, and considers how temporal features could help models interpret changing market states. Rather than averaging randomly initialized queries from adjacent frames, FAQ generates dynamic queries conditioned on frame features. It groups base queries, combines them with learned weights derived from global features, and aggregates dynamic and base queries during training with an agreement loss. At inference, it uses the dynamic queries.

The article also describes an MQL5 implementation that adds a decoder and a dynamic-query module to a trading model. It reports training on historical data and testing on a separate period, with results described as supportive of the approach. However, the test period is explicitly said to be too short for firm conclusions, and the programs are presented as demonstrations. The article provides no detailed performance figures in the supplied text, so it does not establish trading profitability or generalization across markets.

Key ideas

  • FAQ uses information across adjacent frames to make Transformer queries more responsive to temporal changes.
  • Dynamic queries are generated from base queries using features from current and neighboring frames.
  • The method trains with both dynamic and base queries, then uses dynamic queries at inference.
  • The MQL5 implementation adds a decoder and FAQ module to a trading model.
  • The reported test is brief and does not support firm conclusions about trading performance.

Tags

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