IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v42y2023i4p852-871.html
   My bibliography  Save this article

Forecasting and trading Bitcoin with machine learning techniques and a hybrid volatility/sentiment leverage

Author

Listed:
  • Mingzhe Wei
  • Georgios Sermpinis
  • Charalampos Stasinakis

Abstract

This paper explores the use of machine learning algorithms and narrative sentiments when applied to the task of forecasting and trading Bitcoin. The forecasting framework starts from the selection among 295 individual prediction models. Three machine learning approaches, namely, neural networks, support vector machines, and gradient boosting approach, are used to further improve the forecasting performance of individual models. By taking data‐snooping bias into account, three different metrics are applied to examine the forecasting ability of each model. Our results suggest that the machine learning techniques always outperform the best individual model whereas the gradient boosting framework has the best performance among all the models. Finally, a time‐varying leverage trading strategy combined with narrative sentiments and volatility is proposed to enhance trading performance. This suggests that the hybrid leverage strategy provides the highest Bitcoin profits consistently among all trading exercises.

Suggested Citation

  • Mingzhe Wei & Georgios Sermpinis & Charalampos Stasinakis, 2023. "Forecasting and trading Bitcoin with machine learning techniques and a hybrid volatility/sentiment leverage," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(4), pages 852-871, July.
  • Handle: RePEc:wly:jforec:v:42:y:2023:i:4:p:852-871
    DOI: 10.1002/for.2922
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/for.2922
    Download Restriction: no

    File URL: https://libkey.io/10.1002/for.2922?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Wolfgang Karl Härdle & Campbell R Harvey & Raphael C G Reule, 2020. "Understanding Cryptocurrencies," Journal of Financial Econometrics, Oxford University Press, vol. 18(2), pages 181-208.
    2. Pavel Ciaian & Miroslava Rajcaniova & d’Artis Kancs, 2016. "The economics of BitCoin price formation," Applied Economics, Taylor & Francis Journals, vol. 48(19), pages 1799-1815, April.
    3. Tetsuya Takaishi, 2017. "Statistical properties and multifractality of Bitcoin," Papers 1707.07618, arXiv.org, revised May 2018.
    4. Hansen, Peter Reinhard, 2005. "A Test for Superior Predictive Ability," Journal of Business & Economic Statistics, American Statistical Association, vol. 23, pages 365-380, October.
    5. Sun, Xiaolei & Liu, Mingxi & Sima, Zeqian, 2020. "A novel cryptocurrency price trend forecasting model based on LightGBM," Finance Research Letters, Elsevier, vol. 32(C).
    6. Cathy Yi-Hsuan Chen & Christian M. Hafner, 2019. "Sentiment-Induced Bubbles in the Cryptocurrency Market," JRFM, MDPI, vol. 12(2), pages 1-12, April.
    7. Bige Kahraman & Heather E. Tookes, 2017. "Trader Leverage and Liquidity," Journal of Finance, American Finance Association, vol. 72(4), pages 1567-1610, August.
    8. Lahmiri, Salim & Bekiros, Stelios, 2020. "Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market," Chaos, Solitons & Fractals, Elsevier, vol. 133(C).
    9. Urquhart, Andrew, 2018. "What causes the attention of Bitcoin?," Economics Letters, Elsevier, vol. 166(C), pages 40-44.
    10. George Milunovich & Seung Ah Lee, 2022. "Cryptocurrency exchanges: Predicting which markets will remain active," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(5), pages 945-955, August.
    11. Nikolay Archak & Anindya Ghose & Panagiotis G. Ipeirotis, 2011. "Deriving the Pricing Power of Product Features by Mining Consumer Reviews," Management Science, INFORMS, vol. 57(8), pages 1485-1509, August.
    12. Sermpinis, Georgios & Stasinakis, Charalampos & Hassanniakalager, Arman, 2017. "Reverse adaptive krill herd locally weighted support vector regression for forecasting and trading exchange traded funds," European Journal of Operational Research, Elsevier, vol. 263(2), pages 540-558.
    13. Shapiro, Arnold F., 2000. "A Hitchhiker's guide to the techniques of adaptive nonlinear models," Insurance: Mathematics and Economics, Elsevier, vol. 26(2-3), pages 119-132, May.
    14. Guégan, Dominique & Renault, Thomas, 2021. "Does investor sentiment on social media provide robust information for Bitcoin returns predictability?," Finance Research Letters, Elsevier, vol. 38(C).
    15. Katsiampa, Paraskevi, 2017. "Volatility estimation for Bitcoin: A comparison of GARCH models," Economics Letters, Elsevier, vol. 158(C), pages 3-6.
    16. López-Cabarcos, M. Ángeles & Pérez-Pico, Ada M. & Piñeiro-Chousa, Juan & Šević, Aleksandar, 2021. "Bitcoin volatility, stock market and investor sentiment. Are they connected?," Finance Research Letters, Elsevier, vol. 38(C).
    17. S M Raju & Ali Mohammad Tarif, 2020. "Real-Time Prediction of BITCOIN Price using Machine Learning Techniques and Public Sentiment Analysis," Papers 2006.14473, arXiv.org.
    18. Stefan Feuerriegel & Nicolas Prollochs, 2018. "Investor Reaction to Financial Disclosures Across Topics: An Application of Latent Dirichlet Allocation," Papers 1805.03308, arXiv.org.
    19. Vytautas Karalevicius & Niels Degrande & Jochen De Weerdt, 2018. "Using sentiment analysis to predict interday Bitcoin price movements," Journal of Risk Finance, Emerald Group Publishing Limited, vol. 19(1), pages 56-75, December.
    20. Caferra, Rocco, 2022. "Sentiment spillover and price dynamics: Information flow in the cryptocurrency and stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 593(C).
    21. Sermpinis, Georgios & Stasinakis, Charalampos & Dunis, Christian, 2014. "Stochastic and genetic neural network combinations in trading and hybrid time-varying leverage effects," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 30(C), pages 21-54.
    22. Takaishi, Tetsuya, 2018. "Statistical properties and multifractality of Bitcoin," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 506(C), pages 507-519.
    23. Diebold, Francis X. & Pauly, Peter, 1990. "The use of prior information in forecast combination," International Journal of Forecasting, Elsevier, vol. 6(4), pages 503-508, December.
    24. Suhwan Ji & Jongmin Kim & Hyeonseung Im, 2019. "A Comparative Study of Bitcoin Price Prediction Using Deep Learning," Mathematics, MDPI, vol. 7(10), pages 1-20, September.
    25. Harvey, David & Leybourne, Stephen & Newbold, Paul, 1997. "Testing the equality of prediction mean squared errors," International Journal of Forecasting, Elsevier, vol. 13(2), pages 281-291, June.
    26. Erdinc Akyildirim & Ahmet Goncu & Ahmet Sensoy, 2021. "Prediction of cryptocurrency returns using machine learning," Annals of Operations Research, Springer, vol. 297(1), pages 3-36, February.
    27. Wolfgang Karl Hardle & Campbell R. Harvey & Raphael C. G. Reule, 2020. "Editorial: Understanding Cryptocurrencies," Papers 2007.14702, arXiv.org.
    28. Tay, Francis E. H. & Cao, Lijuan, 2001. "Application of support vector machines in financial time series forecasting," Omega, Elsevier, vol. 29(4), pages 309-317, August.
    29. Chen, Wei & Xu, Huilin & Jia, Lifen & Gao, Ying, 2021. "Machine learning model for Bitcoin exchange rate prediction using economic and technology determinants," International Journal of Forecasting, Elsevier, vol. 37(1), pages 28-43.
    30. Laia Subirats & Natalia Reguera & Antonio Miguel Bañón & Beni Gómez-Zúñiga & Julià Minguillón & Manuel Armayones, 2018. "Mining Facebook Data of People with Rare Diseases: A Content-Based and Temporal Analysis," IJERPH, MDPI, vol. 15(9), pages 1-13, August.
    31. David Garcia & Frank Schweitzer, 2015. "Social signals and algorithmic trading of Bitcoin," Papers 1506.01513, arXiv.org, revised Sep 2015.
    Full references (including those not matched with items on IDEAS)

    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. Ren, Yi-Shuai & Ma, Chao-Qun & Kong, Xiao-Lin & Baltas, Konstantinos & Zureigat, Qasim, 2022. "Past, present, and future of the application of machine learning in cryptocurrency research," Research in International Business and Finance, Elsevier, vol. 63(C).
    2. López-Martín, Carmen & Arguedas-Sanz, Raquel & Muela, Sonia Benito, 2022. "A cryptocurrency empirical study focused on evaluating their distribution functions," International Review of Economics & Finance, Elsevier, vol. 79(C), pages 387-407.
    3. Hajek, Petr & Hikkerova, Lubica & Sahut, Jean-Michel, 2023. "How well do investor sentiment and ensemble learning predict Bitcoin prices?," Research in International Business and Finance, Elsevier, vol. 64(C).
    4. Ahmed, Walid M.A., 2022. "Robust drivers of Bitcoin price movements: An extreme bounds analysis," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    5. Panagiotidis, Theodore & Stengos, Thanasis & Vravosinos, Orestis, 2019. "The effects of markets, uncertainty and search intensity on bitcoin returns," International Review of Financial Analysis, Elsevier, vol. 63(C), pages 220-242.
    6. Gaies, Brahim & Nakhli, Mohamed Sahbi & Sahut, Jean-Michel & Schweizer, Denis, 2023. "Interactions between investors’ fear and greed sentiment and Bitcoin prices," The North American Journal of Economics and Finance, Elsevier, vol. 67(C).
    7. Flori, Andrea, 2019. "News and subjective beliefs: A Bayesian approach to Bitcoin investments," Research in International Business and Finance, Elsevier, vol. 50(C), pages 336-356.
    8. Park, Sangjin & Jang, Kwahngsoo & Yang, Jae-Suk, 2021. "Information flow between bitcoin and other financial assets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 566(C).
    9. Andrea Flori, 2019. "Cryptocurrencies In Finance: Review And Applications," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 22(05), pages 1-22, August.
    10. Constandina Koki & Stefanos Leonardos & Georgios Piliouras, 2019. "A Peek into the Unobservable: Hidden States and Bayesian Inference for the Bitcoin and Ether Price Series," Papers 1909.10957, arXiv.org, revised Jul 2021.
    11. Aurelio F. Bariviera & Ignasi Merediz‐Solà, 2021. "Where Do We Stand In Cryptocurrencies Economic Research? A Survey Based On Hybrid Analysis," Journal of Economic Surveys, Wiley Blackwell, vol. 35(2), pages 377-407, April.
    12. Goodell, John W. & Ben Jabeur, Sami & Saâdaoui, Foued & Nasir, Muhammad Ali, 2023. "Explainable artificial intelligence modeling to forecast bitcoin prices," International Review of Financial Analysis, Elsevier, vol. 88(C).
    13. Dunbar, Kwamie & Owusu-Amoako, Johnson, 2023. "Predictability of crypto returns: The impact of trading behavior," Journal of Behavioral and Experimental Finance, Elsevier, vol. 39(C).
    14. Garcia-Jorcano, Laura & Benito, Sonia, 2020. "Studying the properties of the Bitcoin as a diversifying and hedging asset through a copula analysis: Constant and time-varying," Research in International Business and Finance, Elsevier, vol. 54(C).
    15. Mokni, Khaled & Bouteska, Ahmed & Nakhli, Mohamed Sahbi, 2022. "Investor sentiment and Bitcoin relationship: A quantile-based analysis," The North American Journal of Economics and Finance, Elsevier, vol. 60(C).
    16. Dias, Ishanka K. & Fernando, J.M. Ruwani & Fernando, P. Narada D., 2022. "Does investor sentiment predict bitcoin return and volatility? A quantile regression approach," International Review of Financial Analysis, Elsevier, vol. 84(C).
    17. Gaies, Brahim & Nakhli, Mohamed Sahbi & Sahut, Jean Michel & Guesmi, Khaled, 2021. "Is Bitcoin rooted in confidence? – Unraveling the determinants of globalized digital currencies," Technological Forecasting and Social Change, Elsevier, vol. 172(C).
    18. Tan, Chia-Yen & Koh, You-Beng & Ng, Kok-Haur & Ng, Kooi-Huat, 2021. "Dynamic volatility modelling of Bitcoin using time-varying transition probability Markov-switching GARCH model," The North American Journal of Economics and Finance, Elsevier, vol. 56(C).
    19. Tetsuya Takaishi & Takanori Adachi, 2019. "Market efficiency, liquidity, and multifractality of Bitcoin: A dynamic study," Papers 1902.09253, arXiv.org.
    20. Zhuhua Jiang & Walid Mensi & Seong-Min Yoon, 2023. "Risks in Major Cryptocurrency Markets: Modeling the Dual Long Memory Property and Structural Breaks," Sustainability, MDPI, vol. 15(3), pages 1-15, January.

    More about this item

    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:wly:jforec:v:42:y:2023:i:4:p:852-871. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www3.interscience.wiley.com/cgi-bin/jhome/2966 .

    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.