Skip to main content

Deep Hybrid Models for Forecasting Stock Midprices from the High-Frequency Limit Order Book

  • Conference paper
  • First Online:
Future Data and Security Engineering. Big Data, Security and Privacy, Smart City and Industry 4.0 Applications (FDSE 2022)

Abstract

This paper aims to develop deep learning models for forecasting stock’s mid-price movements based on the high-frequency limit order book (LOB) data. We acquire a relatively large (\(\sim \)15GB) dataset from the well-known Wharton Research Data Services (WRDS), which contains Millisecond Trade and Quote, consolidated from “Daily Product” in WRDS. Stock prices in millisecond are carefully aggregated to stock prices in seconds so that stock price trends remains relatively the same after the aggregation. To predict the stock price, we apply popular machine learning models: ResNet50, LSTM, and two of their hybrid forms. Our tested results are comparable with other recent studies regarding accuracy and F1-score.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Discussed in Sect. 5.

  2. 2.

    https://www.nasdaq.com/articles/10-most-popular-stocks-on-nasdaq.com-in-2020-2021-01-04.

  3. 3.

    https://www.tensorflow.org/hub.

References

  1. Abadi, M., et al.: Tensorflow: Large-scale machine learning on heterogeneous systems (2015)

    Google Scholar 

  2. Chollet, F., et al.: Keras (2015). https://keras.io

  3. Doering, J., Fairbank, M., Markose, S.: Convolutional neural networks applied to high-frequency market microstructure forecasting. 2017 9th Computer Science and Electronic Engineering (CEEC), pp. 31–36. IEEE (2017)

    Google Scholar 

  4. Fend, V.: An overview of resnet and its variant

    Google Scholar 

  5. Gandhmal, D.P., Kumar, K.: Systematic analysis and review of stock market prediction techniques. Comput. Sci. Rev. 34, 100190 (2019)

    Article  MathSciNet  Google Scholar 

  6. Goodfellow, I., Bengio, Y., Courville, A., Bengio, Y.: Deep learning, vol. 1. MIT Press Cambridge (2016)

    Google Scholar 

  7. Grandini, M., Bagli, E., Visani, G.: Metrics for multi-class classification: an overview, arXiv preprint arXiv:2008.05756 (2020)

  8. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016-December (2016)

    Google Scholar 

  9. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9, 1735–1780 (1997)

    Article  Google Scholar 

  10. Kingma, D.P., Ba, J.: Adam: A method for stochastic optimization, arXiv preprint arXiv:1412.6980 (2014)

  11. Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. ACM International Conference Proceeding Series, pp. 145–151 (2012)

    Google Scholar 

  12. Ozbayoglu, A.M., Gudelek, M.U., Sezer, O.B.: Deep learning for financial applications: A survey. Appli. Soft Comput. J. 93, 106384 (2020)

    Article  Google Scholar 

  13. Sirignano, J.A.: Deep learning for limit order books. Quant. Finance 19, 549–570 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  14. Tsantekidis, A., et al.: Using deep learning to detect price change indications in financial markets. In: 25th European Signal Processing Conference (EUSIPCO), pp. 2511–251 (2017)

    Google Scholar 

  15. Tsantekidis, A., Passalis, N., Tefas, A., Kanniainen, J., Gabbouj, M., Iosifidis, A.:Forecasting stock prices from the limit order book using convolutional neural networks. In: Proceedings - 2017 IEEE 19th Conference on Business Informatics, CBI 2017, vol. 1, pp. 7–12 (2017)

    Google Scholar 

  16. Zavadskaya, A., et al.: Artificial intelligence in finance: Forecasting stock market returns using artificial neural networks (2017)

    Google Scholar 

  17. Zhang, Z., Zohren, S., Roberts, S.: DeepLOB: Deep convolutional neural networks for limit order books. IEEE Trans. Signal Process. 67, 3001–3012 (2019)

    Article  MATH  Google Scholar 

Download references

Acknowledgment

We acknowledge Ho Chi Minh City University of Technology (HCMUT), VNU-HCM, for supporting this study.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Khuong Nguyen-An .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nguyen, DP. et al. (2022). Deep Hybrid Models for Forecasting Stock Midprices from the High-Frequency Limit Order Book. In: Dang, T.K., Küng, J., Chung, T.M. (eds) Future Data and Security Engineering. Big Data, Security and Privacy, Smart City and Industry 4.0 Applications. FDSE 2022. Communications in Computer and Information Science, vol 1688. Springer, Singapore. https://doi.org/10.1007/978-981-19-8069-5_26

Download citation

  • DOI: https://doi.org/10.1007/978-981-19-8069-5_26

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-19-8068-8

  • Online ISBN: 978-981-19-8069-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics