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 条
  • [31] Attention (to Virtuosity) Is All You Need: Religious Studies Pedagogy and Generative AI
    Barlow, Jonathan
    Holt, Lynn
    RELIGIONS, 2024, 15 (09)
  • [32] ANN for FOREX Forecasting and Trading
    Czekalski, Piotr
    Niezabitowski, Michal
    Styblinski, Rafal
    2015 20TH INTERNATIONAL CONFERENCE ON CONTROL SYSTEMS AND COMPUTER SCIENCE, 2015, : 322 - 328
  • [33] Autonomous forex trading agents
    Continuous Education College, Guiyang University, Guiyang, China
    不详
    ACM Int. Conf. Proc. Ser., 1600, (205-210):
  • [34] All the attention you need: Global-local, spatial-channel attention for image retrieval
    Song, Chull Hwan
    Han, Hye Joo
    Avrithis, Yannis
    2022 IEEE WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION (WACV 2022), 2022, : 439 - 448
  • [35] Knowledge Is All You Need
    Miracchi, Lisa
    PHILOSOPHICAL ISSUES, 2015, 25 (01) : 353 - 378
  • [36] Love Is All You Need
    Stables, Kate
    SIGHT AND SOUND, 2013, 23 (05): : 100 - 100
  • [37] All the Tools You Need
    Shook, Ray
    WELDING JOURNAL, 2010, 89 (10) : 4 - 4
  • [38] ALL YOU NEED IS A BOWL
    HANNIGAN, KJ
    FOOD ENGINEERING, 1969, 41 (07): : 46 - &
  • [39] All You Need is Love
    Hartwig, Mervyn
    JOURNAL OF CRITICAL REALISM, 2015, 14 (02) : 205 - 224
  • [40] All you need is compassion
    Pnueli, Amir
    Sa'ar, Yaniv
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, 2008, 4905 : 233 - +