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 条
  • [1] Attention Is All You Need
    Vaswani, Ashish
    Shazeer, Noam
    Parmar, Niki
    Uszkoreit, Jakob
    Jones, Llion
    Gomez, Aidan N.
    Kaiser, Lukasz
    Polosukhin, Illia
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 30 (NIPS 2017), 2017, 30
  • [2] Moral Attention Is All You Need
    Graves, Mark
    THEOLOGY AND SCIENCE, 2025,
  • [3] Attention Is (not) All You Need for Commonsense Reasoning
    Klein, Tassilo
    Nabi, Moin
    57TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2019), 2019, : 4831 - 4836
  • [4] ATTENTION IS ALL YOU NEED IN SPEECH SEPARATION
    Subakan, Cem
    Ravanelli, Mirco
    Cornell, Samuele
    Bronzi, Mirko
    Zhong, Jianyuan
    2021 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP 2021), 2021, : 21 - 25
  • [5] Intraday return inefficiency and long memory in the volatilities of forex markets and the role of trading volume
    Shahzad, Syed Jawad Hussain
    Hernandez, Jose Areola
    Hanif, Waqas
    Kayani, Ghulam Mujtaba
    PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2018, 506 : 433 - 450
  • [6] Attention Is All You Need for Chinese Word Segmentation
    Duan, Sufeng
    Zhao, Hai
    PROCEEDINGS OF THE 2020 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP), 2020, : 3862 - 3872
  • [7] Is Attention all You Need in Medical Image Analysis? A Review
    Papanastasiou, Giorgos
    Dikaios, Nikolaos
    Huang, Jiahao
    Wang, Chengjia
    Yang, Guang
    IEEE JOURNAL OF BIOMEDICAL AND HEALTH INFORMATICS, 2024, 28 (03) : 1398 - 1411
  • [8] ATTENTION IN A LITTLE NETWORK IS ALL YOU NEED TO GO GREEN
    Dewan, Dipayan
    Borthakur, Anupam
    Sheet, Debdoot
    2023 IEEE 20TH INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING, ISBI, 2023,
  • [9] A Transcription Is All You Need: Learning to Align Through Attention
    Torras, Pau
    Ali Souibgui, Mohamed
    Chen, Jialuo
    Fornes, Alicia
    DOCUMENT ANALYSIS AND RECOGNITION, ICDAR 2021 WORKSHOPS, PT I, 2021, 12916 : 141 - 146
  • [10] Attention in a Little Network is All You Need to Go Green
    Dewan, Dipayan
    Borthakur, Anupam
    Sheet, Debdoot
    Proceedings - International Symposium on Biomedical Imaging, 2023, 2023-April