Skip to content
All library documents

Decoder-Free Transformers for Direct Trading Decisions

Article MQL5 articles

Summary

This article adapts the Decoder-Free Fully Transformer-based object detection method to a reinforcement learning agent for trading. Its motivation is to let an actor choose actions from historical market data directly, avoiding an intermediate forecast of future price trajectories that may compound prediction errors. The proposed design uses a detection-oriented transformer backbone to extract features at multiple scales, then combines them into a single feature map for prediction.

The article explains components including local and channel attention, Semantic-Augmented Attention, a Scale-Aggregated Encoder, and a Task-Aligned Encoder that connects classification and regression features. It then describes implementing a modified version in MQL5 and reports that the model was trained and tested on historical data, with results the author considers promising. The supplied excerpt gives no quantitative performance figures or experimental details, so it does not establish that the approach is profitable or superior for trading. The author also frames the programs as demonstrations that require further development and thorough testing before live use.

Key ideas

  • The approach removes the decoder and predicts from a single aggregated feature map.
  • The transformer backbone combines multi-scale features and adds semantic information through attention modules.
  • A connected task-aligned encoder is intended to coordinate classification and regression features.
  • The article adapts a computer vision architecture for an agent that selects trading actions from historical data.
  • The reported historical-data evaluation lacks enough detail in the excerpt to assess trading performance.

Tags

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