Is attention all you need for intraday Forex trading?

被引:2
|
作者
Gradzki, Przemyslaw [1 ]
Wojcik, Piotr [1 ]
机构
[1] Univ Warsaw, Fac Econ Sci, Warsaw, Poland
关键词
algorithmic investment strategies; convolutional neural networks; financial forecasting; Forex; machine learning; ResNet; self-attention; Transformer;
D O I
10.1111/exsy.13317
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The main objective of this paper is to analyse whether the Transformer neural network, which has become one of the most influential algorithms in Artificial Intelligence over the last few years, exhibits predictive capabilities for high-frequency Forex data. The prediction task is to classify short-term Forex movements for six currency pairs and five different time intervals from 60 to 720 min. We find that the Transformer exhibits high predictive power in the context of intraday Forex trading. This performance is slightly better than for the carefully selected benchmark - ResNet-LSTM, which currently is a state-of-the-art algorithm. Since intraday Forex trading based on deep learning models is largely unexplored, we offer insight on which currency pair and time interval are amenable to devising a profitable trading strategy. We also show that high predictive accuracy can be misleading in real world trading for short time intervals, as models trained on OHLC data tend to report the highest accuracy when the spread cost is the highest. This renders assessment based on typical machine learning metrics overly optimistic. Therefore, it is critical to backtest frequent intraday Forex trading strategies with realistic cost assumptions, which is rarely the case in empirical literature. Lastly, sensitivity analysis shows that the length of the time interval used for training does not play a critical role in the Transformer's predictive capabilities, whereas features derived from technical analysis are essential.
引用
收藏
页数:19
相关论文
共 50 条
  • [21] Fake News Spreaders Detection: Sometimes Attention Is Not All You Need
    Siino, Marco
    Di Nuovo, Elisa
    Tinnirello, Ilenia
    La Cascia, Marco
    INFORMATION, 2022, 13 (09)
  • [22] Is attention to bounding boxes all you need for pedestrian action prediction?
    Achaji, Lina
    Moreau, Julien
    Fouqueray, Thibault
    Aioun, Francois
    Charpillet, Francois
    2022 IEEE INTELLIGENT VEHICLES SYMPOSIUM (IV), 2022, : 895 - 902
  • [23] Autonomous Forex trading agents
    Barbosa, Rui Pedro
    Belo, Orlando
    ADVANCES IN DATA MINING, PROCEEDINGS: MEDICAL APPLICATIONS, E-COMMERCE, MARKETING, AND THEORETICAL ASPECTS, 2008, 5077 : 389 - 403
  • [24] Forex trading and the WMR Fix
    Evans, Martin D. D.
    JOURNAL OF BANKING & FINANCE, 2018, 87 : 233 - 247
  • [25] Retail investor attention and the limit order book: Intraday analysis of attention-based trading
    Meshcheryakov, Artem
    Winters, Drew B.
    INTERNATIONAL REVIEW OF FINANCIAL ANALYSIS, 2022, 81
  • [26] Getting the attention you need
    Davenport, TH
    Beck, JC
    HARVARD BUSINESS REVIEW, 2000, 78 (05) : 118 - +
  • [27] Retail investor attention and the limit order book: Intraday analysis of attention-based trading
    Meshcheryakov, Artem
    Winters, Drew B.
    INTERNATIONAL REVIEW OF FINANCIAL ANALYSIS, 2022, 81
  • [28] Rapid Speaker Adaptation for Conformer Transducer: Attention and Bias are All You Need
    Huang, Yan
    Ye, Guoli
    Li, Jinyu
    Gong, Yifan
    INTERSPEECH 2021, 2021, : 1309 - 1313
  • [29] Sparse attention is all you need for pre-training on tabular data
    Tokimasa Isomura
    Ryotaro Shimizu
    Masayuki Goto
    Neural Computing and Applications, 2025, 37 (3) : 1509 - 1522
  • [30] A Little Bit Attention Is All You Need for Person Re-Identification
    Eisenbach, Markus
    Luebberstedt, Jannik
    Aganian, Dustin
    Gross, Horst-Michael
    2023 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION (ICRA 2023), 2023, : 7598 - 7605