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

Learning to Predict Short-Term Volatility with Order Flow Image Representation

Author

Listed:
  • Artem Lensky
  • Mingyu Hao

Abstract

Introduction: The paper addresses the challenging problem of predicting the short-term realized volatility of the Bitcoin price using order flow information. The inherent stochastic nature and anti-persistence of price pose difficulties in accurate prediction. Methods: To address this, we propose a method that transforms order flow data over a fixed time interval (snapshots) into images. The order flow includes trade sizes, trade directions, and limit order book, and is mapped into image colour channels. These images are then used to train both a simple 3-layer Convolutional Neural Network (CNN) and more advanced ResNet-18 and ConvMixer, with additionally supplementing them with hand-crafted features. The models are evaluated against classical GARCH, Multilayer Perceptron trained on raw data, and a naive guess method that considers current volatility as a prediction. Results: The experiments are conducted using price data from January 2021 and evaluate model performance in terms of root mean square error (RMSPE). The results show that our order flow representation with a CNN as a predictive model achieves the best performance, with an RMSPE of 0.85+/-1.1 for the model with aggregated features and 1.0+/-1.4 for the model without feature supplementation. ConvMixer with feature supplementation follows closely. In comparison, the RMSPE for the naive guess method was 1.4+/-3.0.

Suggested Citation

  • Artem Lensky & Mingyu Hao, 2023. "Learning to Predict Short-Term Volatility with Order Flow Image Representation," Papers 2304.02472, arXiv.org, revised Mar 2024.
  • Handle: RePEc:arx:papers:2304.02472
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Fulvio Corsi, 2009. "A Simple Approximate Long-Memory Model of Realized Volatility," Journal of Financial Econometrics, Oxford University Press, vol. 7(2), pages 174-196, Spring.
    2. Andersen, Torben G & Bollerslev, Tim, 1998. "Answering the Skeptics: Yes, Standard Volatility Models Do Provide Accurate Forecasts," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 39(4), pages 885-905, November.
    3. Qinkai Chen & Christian-Yann Robert, 2021. "Multivariate Realized Volatility Forecasting with Graph Neural Network," Papers 2112.09015, arXiv.org, revised Dec 2021.
    4. Asger Lunde & Peter Reinhard Hansen, 2001. "A Forecast Comparison of Volatility Models: Does Anything Beat a GARCH(1,1)?," Working Papers 2001-04, Brown University, Department of Economics.
    5. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    6. Asger Lunde & Peter R. Hansen, 2005. "A forecast comparison of volatility models: does anything beat a GARCH(1,1)?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 20(7), pages 873-889.
    7. Carol Alexander & Jun Deng & Bin Zou, 2021. "Hedging with Bitcoin Futures: The Effect of Liquidation Loss Aversion and Aggressive Trading," Papers 2101.01261, arXiv.org, revised Aug 2021.
    8. Bandi, Federico M. & Russell, Jeffrey R. & Yang, Chen, 2008. "Realized volatility forecasting and option pricing," Journal of Econometrics, Elsevier, vol. 147(1), pages 34-46, November.
    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. Wenbo Ge & Pooia Lalbakhsh & Leigh Isai & Artem Lensky & Hanna Suominen, 2023. "Comparing Deep Learning Models for the Task of Volatility Prediction Using Multivariate Data," Papers 2306.12446, arXiv.org, revised Jun 2023.

    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. Vortelinos, Dimitrios I., 2017. "Forecasting realized volatility: HAR against Principal Components Combining, neural networks and GARCH," Research in International Business and Finance, Elsevier, vol. 39(PB), pages 824-839.
    2. Harry-Paul Vander Elst, 2015. "FloGARCH: Realizing Long Memory and Asymmetries in Returns Valitility," Working Papers ECARES ECARES 2015-12, ULB -- Universite Libre de Bruxelles.
    3. Nikolaos A. Kyriazis, 2021. "A Survey on Volatility Fluctuations in the Decentralized Cryptocurrency Financial Assets," JRFM, MDPI, vol. 14(7), pages 1-46, June.
    4. repec:uts:finphd:39 is not listed on IDEAS
    5. Radovan Parrák, 2013. "The Economic Valuation of Variance Forecasts: An Artificial Option Market Approach," Working Papers IES 2013/09, Charles University Prague, Faculty of Social Sciences, Institute of Economic Studies, revised Aug 2013.
    6. Degiannakis, Stavros & Potamia, Artemis, 2017. "Multiple-days-ahead value-at-risk and expected shortfall forecasting for stock indices, commodities and exchange rates: Inter-day versus intra-day data," International Review of Financial Analysis, Elsevier, vol. 49(C), pages 176-190.
    7. Wang Pu & Yixiang Chen & Feng Ma, 2016. "Forecasting the realized volatility in the Chinese stock market: further evidence," Applied Economics, Taylor & Francis Journals, vol. 48(33), pages 3116-3130, July.
    8. Ma, Feng & Wei, Yu & Huang, Dengshi & Chen, Yixiang, 2014. "Which is the better forecasting model? A comparison between HAR-RV and multifractality volatility," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 405(C), pages 171-180.
    9. Masato Ubukata & Toshiaki Watanabe, 2013. "Pricing Nikkei 225 Options Using Realized Volatility," Global COE Hi-Stat Discussion Paper Series gd12-273, Institute of Economic Research, Hitotsubashi University.
    10. Chen Liu & Chao Wang & Minh-Ngoc Tran & Robert Kohn, 2023. "Deep Learning Enhanced Realized GARCH," Papers 2302.08002, arXiv.org, revised Oct 2023.
    11. repec:uts:finphd:38 is not listed on IDEAS
    12. Denisa Georgiana Banulescu & Ferrara Laurent & Marsilli Clément, 2019. "Prévoir la volatilité d’un actif financier à l’aide d’un modèle à mélange de fréquences," Working Papers hal-03563168, HAL.
    13. Masato Ubukata & Toshiaki Watanabe, 2014. "Pricing Nikkei 225 Options Using Realized Volatility," The Japanese Economic Review, Japanese Economic Association, vol. 65(4), pages 431-467, December.
    14. Hua, Jian & Manzan, Sebastiano, 2013. "Forecasting the return distribution using high-frequency volatility measures," Journal of Banking & Finance, Elsevier, vol. 37(11), pages 4381-4403.
    15. Fei Su, 2018. "Essays on Price Discovery and Volatility Dynamics in the Foreign Exchange Market," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 2-2018.
    16. Ma, Feng & Li, Yu & Liu, Li & Zhang, Yaojie, 2018. "Are low-frequency data really uninformative? A forecasting combination perspective," The North American Journal of Economics and Finance, Elsevier, vol. 44(C), pages 92-108.
    17. Gkillas, Konstantinos & Gupta, Rangan & Pierdzioch, Christian, 2020. "Forecasting realized oil-price volatility: The role of financial stress and asymmetric loss," Journal of International Money and Finance, Elsevier, vol. 104(C).
    18. Takahashi, Makoto & Watanabe, Toshiaki & Omori, Yasuhiro, 2016. "Volatility and quantile forecasts by realized stochastic volatility models with generalized hyperbolic distribution," International Journal of Forecasting, Elsevier, vol. 32(2), pages 437-457.
    19. Liu, Lily Y. & Patton, Andrew J. & Sheppard, Kevin, 2015. "Does anything beat 5-minute RV? A comparison of realized measures across multiple asset classes," Journal of Econometrics, Elsevier, vol. 187(1), pages 293-311.
    20. Papantonis, Ioannis & Rompolis, Leonidas & Tzavalis, Elias, 2023. "Improving variance forecasts: The role of Realized Variance features," International Journal of Forecasting, Elsevier, vol. 39(3), pages 1221-1237.
    21. Bernardi, Mauro & Costola, Michele, 2019. "High-dimensional sparse financial networks through a regularised regression model," SAFE Working Paper Series 244, Leibniz Institute for Financial Research SAFE.
    22. Efimova, Olga & Serletis, Apostolos, 2014. "Energy markets volatility modelling using GARCH," Energy Economics, Elsevier, vol. 43(C), pages 264-273.

    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:2304.02472. 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.