Exploring the Advantages of Transformers for High-Frequency Trading

Fazl Barez, Paul Bilokon, Arthur Gervais, Nikita Lisitsyn
2/20/2023
q-fin.STcs.LG

No official code found. Best implementation: Nakols/HFformerV2 (38 stars, last commit 2022-11-30).

Abstract

This paper explores the novel deep learning Transformers architectures for high-frequency Bitcoin-USDT log-return forecasting and compares them to the traditional Long Short-Term Memory models. A hybrid Transformer model, called \textbf{HFformer}, is then introduced for time series forecasting which incorporates a Transformer encoder, linear decoder, spiking activations, and quantile loss function, and does not use position encoding. Furthermore, possible high-frequency trading strategies for use with the HFformer model are discussed, including trade sizing, trading signal aggregation, and minimal trading threshold. Ultimately, the performance of the HFformer and Long Short-Term Memory models are assessed and results indicate that the HFformer achieves a higher cumulative PnL than the LSTM when trading with multiple signals during backtesting.

View on arXivView PDF

Code Implementations(1)

Nakols/HFformerV2Community100%
389Python, Jupyter NotebookAug 15, 20223 years ago

Similar Papers

Cite this paper

@article{barez2023exploring,
  title  = {Exploring the Advantages of Transformers for High-Frequency Trading},
  author = {Fazl Barez and Paul Bilokon and Arthur Gervais and Nikita Lisitsyn},
  year   = {2023},
  eprint = {2302.13850},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.13850v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.13850.svg)](https://codeofpaper.com/paper/2302.13850)

Discussion