Forecasting and trading cryptocurrencies with machine learning under changing market conditions
Tóm tắt
This study examines the predictability of three major cryptocurrencies—bitcoin, ethereum, and litecoin—and the profitability of trading strategies devised upon machine learning techniques (e.g., linear models, random forests, and support vector machines). The models are validated in a period characterized by unprecedented turmoil and tested in a period of bear markets, allowing the assessment of whether the predictions are good even when the market direction changes between the validation and test periods. The classification and regression methods use attributes from trading and network activity for the period from August 15, 2015 to March 03, 2019, with the test sample beginning on April 13, 2018. For the test period, five out of 18 individual models have success rates of less than 50%. The trading strategies are built on model assembling. The ensemble assuming that five models produce identical signals (Ensemble 5) achieves the best performance for ethereum and litecoin, with annualized Sharpe ratios of 80.17% and 91.35% and annualized returns (after proportional round-trip trading costs of 0.5%) of 9.62% and 5.73%, respectively. These positive results support the claim that machine learning provides robust techniques for exploring the predictability of cryptocurrencies and for devising profitable trading strategies in these markets, even under adverse market conditions.
Từ khóa
Tài liệu tham khảo
Alessandretti L, ElBahrawy A, Aiello LM, Baronchelli A (2019) Anticipating cryptocurrency prices using machine learning. Complexity 2018:8983590
Atsalakis GS, Atsalaki IG, Pasiouras F, Zopounidis C (2019) Bitcoin price forecasting with neuro-fuzzy techniques. Eur J Oper Res 276(2):770–780
Bação P, Duarte AP, Sebastião H, Redzepagic S (2018) Information transmission between cryptocurrencies: does bitcoin rule the cryptocurrency world? Sci Ann Econ Bus 65(2):97–117
Balcilar M, Bouri E, Gupta R, Roubaud D (2017) Can volume predict Bitcoin returns and volatility? A quantiles-based approach. Econ Model 64:74–81
Baur DG, Hong K, Lee AD (2018) Bitcoin: medium of exchange or speculative assets? J Int Financ Mark Inst Money 54:177–189
Ben-Hur A, Weston J (2010) A user’s guide to support vector machines. In: Data mining techniques for the life sciences. Humana Press, London, pp 223–239
Borges TA, Neves RF (2020) Ensemble of machine learning algorithms for cryptocurrency investment with different data resampling methods. Appl Soft Comput 90:106187
Bouoiyour J, Selmi R (2015) What does Bitcoin look like? Ann Econ Finance 16(2):449–492
Bouri E, Molnár P, Azzi G, Roubaud D, Hagfors LI (2017) On the hedge and safe haven properties of Bitcoin: Is it really more than a diversifier? Finance Res Lett 20:192–198
Caporale GM, Plastun A (2019) The day of the week effect in the cryptocurrency market. Finance Res Lett 31:258–269
Catania L, Grassi S, Ravazzolo F (2018) Predicting the volatility of cryptocurrency time-series. Mathematical and statistical methods for actuarial sciences and finance. Springer, Cham, pp 203–207
Catania L, Grassi S, Ravazzolo F (2019) Forecasting cryptocurrencies under model and parameter instability. Int J Forecast 35(2):485–501
Charfeddine L, Mauchi Y (2019) Are shocks on the returns and volatility of cryptocurrencies really persistent? Finance Res Lett 28:423–430
Cheah ET, Fry J (2015) Speculative bubbles in Bitcoin markets? An empirical investigation into the fundamental value of Bitcoin. Econ Lett 130:32–36
Chen C, Liu L, Zhao N (2020a) Fear sentiment, uncertainty, and bitcoin price dynamics: the case of COVID-19. Emerg Mark Finance Trade 56(10):2298–2309
Chen Z, Li C, Sun W (2020b) Bitcoin price prediction using machine learning: an approach to sample dimension engineering. J Comput Appl Math 365:112395
Cheung A, Roca E, Su JJ (2015) Crypto-currency bubbles: an application of the Phillips-Shi-Yu (2013) methodology on Mt.Gox Bitcoin prices. Appl Econ 47(23):2348–2358
Chu J, Chan S, Zhang Y (2020) High frequency momentum trading with cryptocurrencies. Res Int Bus Finance 52:101176
Ciaian P, Rajcaniova M, Kancs A (2016) The economics of Bitcoin price formation. Appl Econ 48(19):1799–1815
Corbet S, Lucey B, Yarovaya L (2018a) Datestamping the Bitcoin and Ethereum bubbles. Finance Res Lett 26:81–88
Corbet S, Meegan A, Larkin C, Lucey B, Yarovaya L (2018b) Exploring the dynamic relationships between cryptocurrencies and other financial assets. Econ Lett 165:28–34
Dastgir S, Demir E, Downing G, Gozgor G, Lau CKM (2019) The causal relationship between Bitcoin attention and Bitcoin returns: evidence from the Copula-based Granger causality test. Finance Res Lett 28:160–164
de Souza MJS, Almudhaf FW, Henrique BM, Negredo ABS, Ramos DGF, Sobreiro VA, Kimura H (2019) Can artificial intelligence enhance the Bitcoin bonanza. J Finance Data Sci 5(2):83–98
Dorfleitner G, Lung C (2018) Cryptocurrencies from the perspective of euro investors: a re-examination of diversification benefits and a new day-of-the-week effect. J Asset Manag 19(7):472–494
Dwyer GP (2015) The economics of Bitcoin and similar private digital currencies. J Financ Stab 17:81–91
Fang F, Ventrea C, Basios M, Kong H, Kanthan L, Martinez-Rego D, Wub F, Li L (2020) Cryptocurrency trading: a comprehensive survey. Preprint arXiv:2003.11352
Foley S, Karlsen JR, Putniņš TJ (2019) Sex, drugs, and bitcoin: how much illegal activity is financed through cryptocurrencies? Rev Financ Stud 32(5):1798–1853
Gkillas K, Katsiampa P (2018) An application of extreme value theory to cryptocurrencies. Econ Lett 164:109–111
Gurdgiev C, O’Loughlin D (2020) Herding and anchoring in cryptocurrency markets: Investor reaction to fear and uncertainty. J Behav Exp Finance 25:100271
Han J-B, Kim S-H, Jang M-H, Ri K-S (2019) Using genetic algorithm and NARX neural network to forecast daily bitcoin price. Comput Econ. https://doi.org/10.1007/s10614-019-09928-5
Huang JZ, Huang W, Ni J (2019) Predicting Bitcoin returns using high-dimensional technical indicators. J Finance Data Sci 5(3):140–155
Hyun S, Lee J, Kim JM, Jun C (2019) What coins lead in the cryptocurrency market: using Copula and neural networks models. J Risk Financ Manag 12(3):132. https://doi.org/10.3390/jrfm12030132
Jang H, Lee J (2018) An empirical study on modeling and prediction of Bitcoin prices with Bayesian neural networks based on blockchain information. IEEE Access 6:5427–5437
Ji Q, Bouri E, Lau CKM, Roubaud D (2019a) Dynamic connectedness and integration in cryptocurrency markets. Int Rev Financ Anal 63:257–272
Ji S, Kim J, Im H (2019b) A comparative study of bitcoin price prediction using deep learning. Mathematics 7(10):898. https://doi.org/10.3390/math7100898
Jiang Z, Liang J (2017) Cryptocurrency portfolio management with deep reinforcement learning. In: 2017 intelligent systems conference (intelliSys). IEEE, New York, pp 905–913
Kim YB, Kim JG, Kim W, Im JH, Kim TH, Kang SJ, Kim CH (2016) Predicting fluctuations in cryptocurrency transactions based on user comments and replies. PLoS ONE 11(8):e0161197
Kou G, Lu Y, Peng Y, Shi Y (2012) Evaluation of classification algorithms using MCDM and rank correlation. Int J Inf Technol Decis Mak 11(1):197–225
Kou G, Peng Y, Wang G (2014) Evaluation of clustering algorithms for financial risk analysis using MCDM methods. Inf Sci 275:1–12
Kristoufek L (2013) BitCoin meets Google trends and wikipedia: quantifying the relationship between phenomena of the Internet era. Sci Rep. https://doi.org/10.1038/srep03415
Kristoufek L (2015) What are the main drivers of the bitcoin price? Evidence from wavelet coherence analysis. PLoS ONE 10(4):e0123923
Lahmiri S, Bekiros S (2019) Cryptocurrency forecasting with deep learning chaotic neural networks. Chaos Solitons Fractals 118:35–40
Li X, Wang CA (2017) The technology and economic determinants of cryptocurrency exchange rates: the case of Bitcoin. Decis Support Syst 95:49–60
Li T, Kou G, Peng Y (2020a) Improving malicious URLs detection via feature engineering: linear and nonlinear space transformation methods. Inf Syst 91:101494
Li T, Kou G, Peng Y, Shi Y (2020b) Classifying with adaptive hyper-spheres: an incremental classifier based on competitive learning. IEEE Trans Syst Man Cybern Syst 50(4):1218–1229
Liaw A, Wiener M (2002) Classification and regression by randomForest. R News 2(3):18–22
Madan I, Saluja S, Zhao A (2015) Automated bitcoin trading via machine learning algorithms. http://cs229.stanford.edu/proj2014/Isaac%20Madan,20
Mallqui DC, Fernandes RA (2019) Predicting the direction, maximum, minimum and closing prices of daily Bitcoin exchange rate using machine learning techniques. Appl Soft Comput 75:596–606
Marsh A (2018) “What is Bitcoin?” Topped Google's 2018 what asked trending list, Bloomberg. https://www.bloomberg.com/news/articles/2018-12-12/-what-is-bitcoitopped-google-s-2018-what-asked-trending-list
Meyer D, Dimitriadou E, Hornik K, Weingessel A, Leisch F (2017) e1071: Misc functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien. R package version 1.6-8. https://CRAN.R-project.org/package=e1071
Nakamoto S (2008) Bitcoin: a peer-to-peer electronic cash system. https://Bitcoin.org/Bitcoin.pdf.
Nakano M, Takahashi A, Takahashi S (2018) Bitcoin technical trading with artificial neural network. Phys A 510:587–609
McNally S, Roche J, Caton S (2018) Predicting the price of Bitcoin using machine learning. In: 2018 26th Euromicro international conference on parallel, distributed and network-based processing (PDP). IEEE, New York, pp 339–343
Omane-Adjepong M, Alagidede IP (2019) Multiresolution analysis and spillovers of major cryptocurrency markets. Res Int Bus Finance 49:191–206
Panagiotidis T, Stengos T, Vravosinos O (2018) On the determinants of bitcoin returns: a LASSO approach. Finance Res Lett 27:235–240
Panagiotidis T, Stengos T, Vravosinos O (2019) The effects of markets, uncertainty and search intensity on bitcoin returns. Int Rev Financ Anal 63:220–242
Parkinson M (1980) The extreme value method for estimating the variance of the rate of return. J Bus 53(1):61–65
Patel J, Shah S, Thakkar P, Kotecha K (2015) Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Syst Appl 42:259–268
Phillips R C, Gorse D (2017) Predicting cryptocurrency price bubbles using social media data and epidemic modelling. In: 2017 IEEE symposium series on computational intelligence (SSCI). https://doi.org/10.1109/SSCI.2017.8280809
Phillips RC, Gorse D (2018) Cryptocurrency price drivers: wavelet coherence analysis revisited. PLoS ONE 13(4):e0195200
Polasik M, Piotrowska AI, Wisniewski TP, Kotkowski R, Lightfoot G (2015) Price fluctuations and the use of Bitcoin: an empirical inquiry. Int J Electron Commerce 20(1):9–49
Politis DN, White H (2004) Automatic block-length selection for the dependent bootstrap. Econ Rev 23(1):53–70
Politis DN, White H (2009) Correction to “Automatic block-length selection for the dependent bootstrap.” Econ Rev 28(4):372–375
Pyo S, Lee J (2019) Do FOMC and macroeconomic announcements affect Bitcoin prices? Finance Res Lett. https://doi.org/10.1016/j.frl.2019.101386
Sebastião H, Duarte AP, Guerreiro G (2017) Where is the information on USD/Bitcoin hourly prices? Notas Econ 45:7–25
Shintate T, Pichl L (2019) Trend prediction classification for high frequency bitcoin time series with deep learning. J Risk Financ Manag 12(1):17. https://doi.org/10.3390/jrfm12010017
Smuts N (2019) What drives cryptocurrency prices? An investigation of google trends and telegram sentiment. ACM SIGMETRICS Perform Eval Rev 46(3):131–134
Sovbetov Y (2018) Factors influencing cryptocurrency prices: evidence from Bitcoin, Ethereum, Dash, Litcoin, and Monero. J Econ Financ Anal 2(2):1–27
Stavroyiannis S, Babalos V (2019) Herding behavior in cryptocurrencies revisited: novel evidence from a TVP model. J Behav Exp Finance 22:57–63
Sun X, Liu M, Sima Z (2020) A novel cryptocurrency price trend forecasting model based on LightGBM. Finance Res Lett 32:101084
Tay FE, Cao L (2001) Application of support vector machines in financial time series forecasting. Omega 29:309–317
Tiwari AK, Jana RK, Das D, Roubaud D (2018) Informational efficiency of Bitcoin—an extension. Econ Lett 163:106–109
Torgo L (2016) Data mining with R: learning with case studies. CRC Press, London. https://doi.org/10.1201/9781315399102
Tran VL, Leirvik T (2020) Efficiency in the markets of crypto-currencies. Finance Res Lett 35:101382
Vo A, Yost-Bremm C (2018) A high-frequency algorithmic trading strategy for cryptocurrency. J Comput Inf Syst. https://doi.org/10.1080/08874417.2018.1552090
Wen F, Xu L, Ouyang G, Kou G (2019) Retail investor attention and stock price crash risk: Evidence from China. Int Rev Financ Anal 65:101376
Yermack D (2015) Is bitcoin a real currency? An economic appraisal. In: Handbook of digital currency. Academic Press, London, pp 31–43
Yu H, Kim S (2012) SVM tutorial-classification, regression and ranking. In: Handbook of natural computing. Springer, Berlin, pp 479–506
Żbikowski K (2016) Application of machine learning algorithms for bitcoin automated trading. In: Machine intelligence and big data in industry. Springer, Cham, pp 161–168
Zhang Y, Chan S, Chu J, Sulieman H (2020) On the market efficiency and liquidity of high-frequency cryptocurrencies in a bull and bear market. J Risk Financ Manag 13(1):8. https://doi.org/10.3390/jrfm13010008