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 条
  • [41] ALL YOU NEED IS DEATH
    Luckhurst, Roger
    SIGHT AND SOUND, 2024, 34 (04): : 74 - 74
  • [42] 'All you need is love'
    Palmer, Tony
    SIGHT AND SOUND, 2008, 18 (09): : 90 - 90
  • [43] All you need is flow!
    Sunde, Kjetil
    RESUSCITATION, 2010, 81 (04) : 371 - 372
  • [44] All the news you need
    Nature, 2009, 460 : 1057 - 1057
  • [45] All You Need Is Sleep
    Otte, Andreas
    Turkheimer, Federico
    Rosenzweig, Ivana
    EBIOMEDICINE, 2016, 12 : 2 - +
  • [46] All you need is sleep
    Esther Bood
    TPO - De Praktijk, 2020, 15 (3): : 16 - 18
  • [47] ALL YOU NEED IS LOVE!
    Moffat, J. P.
    Millar, H.
    Smith, S.
    Miller, L.
    JOURNAL OF INTELLECTUAL DISABILITY RESEARCH, 2019, 63 (07) : 843 - 843
  • [48] All you need is LOV
    不详
    CELL, 2007, 130 (05) : 761 - 761
  • [49] All you need is love?
    Costello, John
    INTERNATIONAL JOURNAL OF PALLIATIVE NURSING, 2016, 22 (06) : 263 - 263
  • [50] ALL YOU NEED IS NIM
    OLIVASTRO, D
    SCIENCES-NEW YORK, 1991, 31 (06): : 51 - 53