This research attempts to fit a polynomial auto regression (PAR) model to intraday price data of four major cryptocurrencies and convert the model into a real-time profitable automated trading system. A PAR model was constructed to fit cryptocurrencies' behavior and to attempt to predict their short-term trends and trade them profitably. We used machine learning (ML) procedures enabling our system to train using minutes' data for six months and perform actual trading and reporting for the next six months. Results have shown that our system has dramatically outperformed the naive buy and hold (B & H) strategy for all four examined cryptocurrencies. Results show that our system's best performances were achieved trading Ethereum and Bitcoin and worse trading Cardano. The highest net profit (NP) for Bitcoin trades was 15.58%, achieved by using 67 minutes bars to form the prediction model, compared to −44.8% for the B & H strategy. Trading Ethereum, the system generated 16.98% NP, compared to −33.6% for the B & H strategy, 61 minutes bars. Moreover, the highest NPs achieved trading Binance Coin (BNB) and Cardano were 9.33% and 4.26%, compared to 0.28% and −41.8% for the B & H strategy, respectively. Furthermore, the system better predicted Ethereum and Cardano uptrends than downtrends while it better predicted Bitcoin and BNB downtrends than uptrends.
Citation: Gil Cohen. Intraday trading of cryptocurrencies using polynomial auto regression[J]. AIMS Mathematics, 2023, 8(4): 9782-9794. doi: 10.3934/math.2023493
This research attempts to fit a polynomial auto regression (PAR) model to intraday price data of four major cryptocurrencies and convert the model into a real-time profitable automated trading system. A PAR model was constructed to fit cryptocurrencies' behavior and to attempt to predict their short-term trends and trade them profitably. We used machine learning (ML) procedures enabling our system to train using minutes' data for six months and perform actual trading and reporting for the next six months. Results have shown that our system has dramatically outperformed the naive buy and hold (B & H) strategy for all four examined cryptocurrencies. Results show that our system's best performances were achieved trading Ethereum and Bitcoin and worse trading Cardano. The highest net profit (NP) for Bitcoin trades was 15.58%, achieved by using 67 minutes bars to form the prediction model, compared to −44.8% for the B & H strategy. Trading Ethereum, the system generated 16.98% NP, compared to −33.6% for the B & H strategy, 61 minutes bars. Moreover, the highest NPs achieved trading Binance Coin (BNB) and Cardano were 9.33% and 4.26%, compared to 0.28% and −41.8% for the B & H strategy, respectively. Furthermore, the system better predicted Ethereum and Cardano uptrends than downtrends while it better predicted Bitcoin and BNB downtrends than uptrends.
[1] | M. Balcilar, E. Bouri, R. Gupta, D. Roubaud, Can volume predict Bitcoin returns and volatility? A quantiles-based approach, Econ. Model., 64 (2017), 74–81. https://doi.org/10.1016/j.econmod.2017.03.019 doi: 10.1016/j.econmod.2017.03.019 |
[2] | B. M. Blau, Price dynamics and speculative trading in Bitcoin, Res. Bus. Financ., 41 (2017), 493–499. https://doi.org/10.1016/j.ribaf.2017.05.010 doi: 10.1016/j.ribaf.2017.05.010 |
[3] | S. Borovkova, I. Tsiamas, An ensemble of LSTM neural networks for high-frequency stock market classification, J. Forecasting, 38 (2019), 600–619. https://doi.org/10.1002/for.2585 doi: 10.1002/for.2585 |
[4] | M. Brandvold, P. Molner, K. Vagstad, O. C. Andreas Valstad, Price discovery on Bitcoin exchanges, J. Int. Financ. Markets Institutions Money., 36 (2015), 18–35. https://doi.org/10.1016/j.intfin.2015.02.010 doi: 10.1016/j.intfin.2015.02.010 |
[5] | M. G. Caporale, A. Plastun, The day of the week effect in the cryptocurrency market, Financ. Res. Lett., 31 (2019), 258–269. https://doi.org/10.1016/j.frl.2018.11.012 doi: 10.1016/j.frl.2018.11.012 |
[6] | X. De Luna, Projected polynomial autoregression for prediction of stationary time series, J. Appl. Stat., 25 (1998), 763–775. https://doi.org/10.1080/02664769822756 doi: 10.1080/02664769822756 |
[7] | A. Detzel, H. Liu, J. Strauss, G. Zhou, Y. Zhu, Learning and predictability via technical analysis: Evidence from bitcoin and stocks with hard-to-value fundamentals, Financ. Manage., 50 (2021), 107–137. https://doi.org/10.1111/fima.12310 doi: 10.1111/fima.12310 |
[8] | W. Feng, Y. Wang, Z. Zang, Informed trading in the Bitcoin market, Financ. Res. Lett., 26 (2018), 63–70. https://doi.org/10.1016/j.frl.2017.11.009 doi: 10.1016/j.frl.2017.11.009 |
[9] | C. Fernandes, J. Mota, G. Favier, MIMO Volterra modeling for nonlinear communication channels, Learn. Nonlinear Models, 2 (2010), 71–92. https://doi.org/10.21528/LNLM-vol8-no2-art1 doi: 10.21528/LNLM-vol8-no2-art1 |
[10] | T. Fischer, C. Krauss, Deep learning with long short-term memory networks for financial market predictions, Eur. J. Oper. Res., 270 (2018), 654–669. https://doi.org/10.1016/j.ejor.2017.11.054 doi: 10.1016/j.ejor.2017.11.054 |
[11] | D. Fister, M. Perc, T. D. Jagric, Two robust long short-term memory frameworks for trading stocks, Appl. Intell., 51 (2021), 7177–7195. https://doi.org/10.1007/s10489-021-02249-x doi: 10.1007/s10489-021-02249-x |
[12] | D. Garcia, F. Schweizer, Social signals and algorithmic trading of Bitcoin, R. Soc. Open Sci., 2 (2015). https://doi.org/10.1098/rsos.150288 doi: 10.1098/rsos.150288 |
[13] | J. M. Griffin, M. Shams, Is Bitcoin Really Untethered? J. Financ., 52 (2020), 57–87. |
[14] | J. Gruber, C. Bordons, R. Bars, R. Haber, Nonlinear predictive control of smooth nonlinear systems based on Volterra models, Application to a pilot plant, Int. J. Robust Nonlinear Control., 20 (2010), 1817–1835. https://doi.org/10.1002/rnc.1549 doi: 10.1002/rnc.1549 |
[15] | S. Hansun, A. Wicaksana, A. Q. M, Khaliq, Multivariate cryptocurrency prediction: Comparative analysis of three recurrent neural networks approaches, J. Big Data., 9 (2022). https://doi.org/10.1186/s40537-022-00601-7 doi: 10.1186/s40537-022-00601-7 |
[16] | T. Hong, P. Pinson, S. Fan, Global energy forecasting competition 2012, Int. J. Forecast, 30 (2014), 357–363. https://doi.org/10.1016/j.ijforecast.2013.07.001 doi: 10.1016/j.ijforecast.2013.07.001 |
[17] | C. L. Jan, An effective financial statements fraud detection model for the sustainable development of financial markets: Evidence from Taiwan, Sustainability, 10 (2018), 513. https://doi.org/10.3390/su10020513 doi: 10.3390/su10020513 |
[18] | P. Jay, V. Kalariya, P. Parmar, S. Tanwar, N. Kumar, M. Alazab, Stochastic neural networks for cryptocurrency price prediction. IEEE Access., 8 (2020), 28804–82818. https://doi.org/10.1109/ACCESS.2020.2990659 |
[19] | O. Karakuş, E. E. Kuruoğlu, M. A. Altinkaya, One-day ahead wind speed/power prediction based on polynomial autoregressive model, IET Institution Eng. Technol., 11 (2017), 1430–1439. https://doi.org/10.1049/iet-rpg.2016.0972 doi: 10.1049/iet-rpg.2016.0972 |
[20] | Y. B. Kim, J. G. Kim, W. Kim, J. H. Im, T. H. Kim, S. J. Kang, et al., Predicting fluctuations in cryptocurrency transactions based on user comments and replies, PLoS ONE, 11 (2016). https://doi.org/10.1371/journal.pone.0161197 doi: 10.1371/journal.pone.0161197 |
[21] | E. Kuruoğlu, Nonlinear least LP-norm filters for nonlinear autoregressive α-stable processes. Digit. Signal Process, 2 (2002), 19–142. https://doi.org/10.1006/dspr.2001.0416 doi: 10.1006/dspr.2001.0416 |
[22] | X. Liu, Target and position article - Analyzing the impact of user-generated content on B2B Firms' stock performance: Big data analysis with machine learning methods, Ind. Market. Manag., 86 (2020), 30–39. https://doi.org/10.1016/j.indmarman.2019.02.021 doi: 10.1016/j.indmarman.2019.02.021 |
[23] | Y. Liu, A. Tsyvinski, Risks and Returns of Cryptocurrency, Rev. Financ. Stud., 34 (2021), 2689–2727. https://doi.org/10.1093/rfs/hhaa113 doi: 10.1093/rfs/hhaa113 |
[24] | M. Matta, L. Lunesu, M. Marcesi, The predictor impact of Web search media on Bitcoin trading volumes, In 7th international joint conference on knowledge discovery, knowledge engineering and knowledge management. 2015. https://doi.org/10.5220/0005618606200626 |
[25] | D. M. Q. Nelson, A. C. M. Pereira, D. Oliveira, Stock market's price movement prediction with LSTM neural networks, International Joint Conference on Neural Networks (IJCNN), 1419–1426, 2017. https://doi.org/10.1109/IJCNN.2017.7966019 |
[26] | A. A. Oyedele, A. O. Ajayi, L. O. Oyedele, S. A. Bello, K. O. Jimoh, Performance evaluation of deep learning and boosted trees for cryptocurrency closing price prediction, Expert Syst. Appl., 213 (2023), https://doi.org/10.1016/j.eswa.2022.119233 doi: 10.1016/j.eswa.2022.119233 |
[27] | Z. Shahriari, F. Nazarimehr, K. Rajagopal, S. Jafari, M. Perc, M. Svetec, Cryptocurrency price analysis with ordinal partition networks, Appl. Math. Comput., 430 (2022). https://doi.org/10.1016/j.amc.2022.127237 doi: 10.1016/j.amc.2022.127237 |
[28] | G. Senthuran, M. Halgamuge, Prediction of Cryptocurrency Market Price Using Deep Learning and Blockchain Information: Bitcoin and Ethereum, New York, NY, USA, Taylor & Francis, 349–364, 2019. https://doi.org/10.1201/9780429674457-15 |
[29] | S. Sohangir, D. Wang, A. Pomerantes, T. M. Khoshgoftaar, Big Data: Deep Learning for financial sentiment analysis, J. Big Data, 5 (2018). https://doi.org/10.1186/s40537-017-0111-6 doi: 10.1186/s40537-017-0111-6 |
[30] | V. N. Vapnik, The Nature of Statistical Learning Theory, New York, Springer, 1995. https://doi.org/10.1007/978-1-4757-2440-0 |
[31] | C. Xiao, W. Xia, J. Jiang, Stock price forecast based on combined model of ARI-MA-LS-SVM, Neural Comput. Appl., 32 (2020), 5379–5388. https://doi.org/10.1007/s00521-019-04698-5 doi: 10.1007/s00521-019-04698-5 |