IDEAS home Printed from https://ideas.repec.org/p/arx/papers/1707.05642.html
   My bibliography  Save this paper

Sequence Classification of the Limit Order Book using Recurrent Neural Networks

Author

Listed:
  • Matthew F Dixon

Abstract

Recurrent neural networks (RNNs) are types of artificial neural networks (ANNs) that are well suited to forecasting and sequence classification. They have been applied extensively to forecasting univariate financial time series, however their application to high frequency trading has not been previously considered. This paper solves a sequence classification problem in which a short sequence of observations of limit order book depths and market orders is used to predict a next event price-flip. The capability to adjust quotes according to this prediction reduces the likelihood of adverse price selection. Our results demonstrate the ability of the RNN to capture the non-linear relationship between the near-term price-flips and a spatio-temporal representation of the limit order book. The RNN compares favorably with other classifiers, including a linear Kalman filter, using S&P500 E-mini futures level II data over the month of August 2016. Further results assess the effect of retraining the RNN daily and the sensitivity of the performance to trade latency.

Suggested Citation

  • Matthew F Dixon, 2017. "Sequence Classification of the Limit Order Book using Recurrent Neural Networks," Papers 1707.05642, arXiv.org.
  • Handle: RePEc:arx:papers:1707.05642
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/1707.05642
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Leung, Mark T. & Daouk, Hazem & Chen, An-Sing, 2000. "Forecasting stock indices: a comparison of classification and level estimation models," International Journal of Forecasting, Elsevier, vol. 16(2), pages 173-190.
    2. Robert F. Engle & Jeffrey R. Russell, 1998. "Autoregressive Conditional Duration: A New Model for Irregularly Spaced Transaction Data," Econometrica, Econometric Society, vol. 66(5), pages 1127-1162, September.
    3. Rama Cont & Arseniy Kukanov & Sasha Stoikov, 2014. "The Price Impact of Order Book Events," Journal of Financial Econometrics, Oxford University Press, vol. 12(1), pages 47-88.
    4. Helske, Jouni, 2017. "KFAS: Exponential Family State Space Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 78(i10).
    5. Alec N. Kercheval & Yuan Zhang, 2015. "Modelling high-frequency limit order book dynamics with support vector machines," Quantitative Finance, Taylor & Francis Journals, vol. 15(8), pages 1315-1329, August.
    6. Charles Cao & Oliver Hansch & Xiaoxin Wang, 2009. "The information content of an open limit‐order book," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 29(1), pages 16-41, January.
    7. Seppi, Duane J, 1997. "Liquidity Provision with Limit Orders and a Strategic Specialist," The Review of Financial Studies, Society for Financial Studies, vol. 10(1), pages 103-150.
    8. Parlour, Christine A, 1998. "Price Dynamics in Limit Order Markets," The Review of Financial Studies, Society for Financial Studies, vol. 11(4), pages 789-816.
    9. Chávez-Casillas, Jonathan A. & Figueroa-López, José E., 2017. "A one-level limit order book model with memory and variable spread," Stochastic Processes and their Applications, Elsevier, vol. 127(8), pages 2447-2481.
    10. Friedman, Jerome H. & Hastie, Trevor & Tibshirani, Rob, 2010. "Regularization Paths for Generalized Linear Models via Coordinate Descent," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 33(i01).
    11. Bloomfield, Robert & O'Hara, Maureen & Saar, Gideon, 2005. "The "make or take" decision in an electronic market: Evidence on the evolution of liquidity," Journal of Financial Economics, Elsevier, vol. 75(1), pages 165-199, January.
    12. Simon, Noah & Friedman, Jerome H. & Hastie, Trevor & Tibshirani, Rob, 2011. "Regularization Paths for Cox's Proportional Hazards Model via Coordinate Descent," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 39(i05).
    13. Justin Sirignano, 2016. "Deep Learning for Limit Order Books," Papers 1601.01987, arXiv.org, revised Jul 2016.
    14. Glosten, Lawrence R, 1994. "Is the Electronic Open Limit Order Book Inevitable?," Journal of Finance, American Finance Association, vol. 49(4), pages 1127-1161, September.
    15. Rama Cont & Adrien de Larrard, 2013. "Price Dynamics in a Markovian Limit Order Market," Post-Print hal-00552252, HAL.
    16. Iebeling Kaastra & Milton S. Boyd, 1995. "Forecasting futures trading volume using neural networks," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 15(8), pages 953-970, December.
    17. Ban Zheng & Eric Moulines & Frédéric Abergel, 2013. "Price jump prediction in a limit order book," Post-Print hal-00684716, HAL.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Hyejung Chung & Kyung-shik Shin, 2018. "Genetic Algorithm-Optimized Long Short-Term Memory Network for Stock Market Prediction," Sustainability, MDPI, vol. 10(10), pages 1-18, October.
    2. Mostafa Shabani & Dat Thanh Tran & Juho Kanniainen & Alexandros Iosifidis, 2022. "Augmented Bilinear Network for Incremental Multi-Stock Time-Series Classification," Papers 2207.11577, arXiv.org.
    3. Zihao Zhang & Stefan Zohren & Stephen Roberts, 2018. "DeepLOB: Deep Convolutional Neural Networks for Limit Order Books," Papers 1808.03668, arXiv.org, revised Jan 2020.
    4. Ahmet Murat Ozbayoglu & Mehmet Ugur Gudelek & Omer Berat Sezer, 2020. "Deep Learning for Financial Applications : A Survey," Papers 2002.05786, arXiv.org.
    5. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Papers 1803.06917, arXiv.org.
    6. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Working Papers hal-01754054, HAL.
    7. Matthew F Dixon, 2017. "A High Frequency Trade Execution Model for Supervised Learning," Papers 1710.03870, arXiv.org, revised Dec 2017.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Matthew F Dixon, 2017. "A High Frequency Trade Execution Model for Supervised Learning," Papers 1710.03870, arXiv.org, revised Dec 2017.
    2. Mehdi Arzandeh & Julieta Frank, 2019. "Price Discovery in Agricultural Futures Markets: Should We Look beyond the Best Bid-Ask Spread?," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 101(5), pages 1482-1498.
    3. Menkhoff, Lukas & Osler, Carol L. & Schmeling, Maik, 2010. "Limit-order submission strategies under asymmetric information," Journal of Banking & Finance, Elsevier, vol. 34(11), pages 2665-2677, November.
    4. Hall, Anthony D. & Hautsch, Nikolaus, 2007. "Modelling the buy and sell intensity in a limit order book market," Journal of Financial Markets, Elsevier, vol. 10(3), pages 249-286, August.
    5. Arzandeh, Mehdi & Frank, Julieta, 2017. "The Information Content of the Limit Order Book," 7th Annual Canadian Agri-Food Policy Conference, January 11-13, 2017, Ottawa, ON 253251, Canadian Agricultural Economics Society.
    6. Mehdi Arzandeh & Julieta Frank, 2019. "Price Discovery in Agricultural Futures Markets: Should We Look beyond the Best Bid‐Ask Spread?," American Journal of Agricultural Economics, John Wiley & Sons, vol. 101(5), pages 1482-1498, October.
    7. Burton Hollifield & Robert A. Miller & Patrik Sandås, 2004. "Empirical Analysis of Limit Order Markets," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 71(4), pages 1027-1063.
    8. Duong, Huu Nhan & Kalev, Petko S., 2013. "Anonymity and order submissions," Pacific-Basin Finance Journal, Elsevier, vol. 25(C), pages 101-118.
    9. Hollifield, Burton & Sandås, Patrik & Miller, Robert A. & Slive, Joshua, 2002. "Liquidity Supply and Demand in Limit Order Markets," CEPR Discussion Papers 3676, C.E.P.R. Discussion Papers.
    10. Charles Cao & Oliver Hansch & Xiaoxin Wang, 2008. "Order Placement Strategies In A Pure Limit Order Book Market," Journal of Financial Research, Southern Finance Association;Southwestern Finance Association, vol. 31(2), pages 113-140, June.
    11. Johannes Bleher & Michael Bleher & Thomas Dimpfl, 2020. "From orders to prices: A stochastic description of the limit order book to forecast intraday returns," Papers 2004.11953, arXiv.org, revised May 2021.
    12. Jain, Pawan & Jiang, Christine, 2014. "Predicting future price volatility: Empirical evidence from an emerging limit order market," Pacific-Basin Finance Journal, Elsevier, vol. 27(C), pages 72-93.
    13. Roberto Pascual & David Veredas, 2009. "What pieces of limit order book information matter in explaining order choice by patient and impatient traders?," Quantitative Finance, Taylor & Francis Journals, vol. 9(5), pages 527-545.
    14. Anthony D. Hall & Nikolaus Hautsch, 2008. "Order aggressiveness and order book dynamics," Studies in Empirical Economics, in: Luc Bauwens & Winfried Pohlmeier & David Veredas (ed.), High Frequency Financial Econometrics, pages 133-165, Springer.
    15. PASCUAL, Roberto & VEREDAS, David, 2006. "Does the open limit order book matter in explaining long run volatility ?," LIDAM Discussion Papers CORE 2006110, Université catholique de Louvain, Center for Operations Research and Econometrics (CORE).
    16. Tian, Xiao & Duong, Huu Nhan & Kalev, Petko S., 2019. "Information content of the limit order book for crude oil futures price volatility," Energy Economics, Elsevier, vol. 81(C), pages 584-597.
    17. Roberto Pascual & David Veredas, 2010. "Does the Open Limit Order Book Matter in Explaining Informational Volatility?," Journal of Financial Econometrics, Oxford University Press, vol. 8(1), pages 57-87, Winter.
    18. Brunel, Alexandre, 2011. "Impact des rachats d’actions sur la liquidité et la rentabilité des actions," Economics Thesis from University Paris Dauphine, Paris Dauphine University, number 123456789/6404 edited by Hamon, Jacques.
    19. Arzandeh, Mehdi & Frank, Julieta, 2017. "Price Discovery in Agricultural Futures Markets: Should We Look Beyond the Best Bid-Ask Spread?," Annual Meeting, 2017, June 18-21, Montreal, Canada 259344, Canadian Agricultural Economics Society.
    20. Kozhan, Roman & Salmon, Mark, 2012. "The information content of a limit order book: The case of an FX market," Journal of Financial Markets, Elsevier, vol. 15(1), pages 1-28.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:1707.05642. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.