Utilizing Machine Learning and Deep Learning for Predicting Crypto-currency Trends

Authors

DOI:

https://doi.org/10.56294/sctconf2024638

Keywords:

Technical Analysis, Machine Learning, Deep Learning, Charting Techniques, Cryptocurrency Price Forecasting, Heikin-Ashi Candlesticks

Abstract

In the dynamic and often volatile world of the cryptocurrency market, accurately predicting future market movements is crucial for making informed trading decisions. While manual trading involves traders making subjective judgments based on market observations, the development of algorithmic trading systems, incorporating Machine Learning and Deep Learning, has introduced a more systematic approach to trading. These systems often employ technical analysis and machine learning techniques to analyze historical price data and generate trading signals. This study delves into a comparative analysis of two charting techniques, Heikin-Ashi and alternate candlestick patterns, in the context of forecasting single-step future price movements of cryptocurrency pairs. Utilizing a range of time windows (1 day, 12 hours, 8 hours, ..., 5 minutes) and various regression algorithms (Huber regressor, k-nearest neighbors regressor, Light Gradient Boosting Machine, linear regression, and random forest regressor), the study evaluates the effectiveness of each technique in forecasting future price movements. The primary outcomes of the research indicate that the application of ensemble learning methods to the alternate candlestick patterns consistently surpasses the performance of Heikin-Ashi candlesticks across all examined time windows. This suggests that alternate candlestick patterns provide more reliable information for predicting short-term price movements. Additionally, the study highlights the varying behavior of Heikin-Ashi candlesticks over different time windows

References

1. Dyhrberg AH. Bitcoin, gold and the dollar – A GARCH volatility analysis. Finance Research Letters. 2016 Feb;16,85–92.

2. Hubrich S. “Know When to Hodl Em, Know When to Fodl Em”: An Investigation of Factor Based Investing in the Cryptocurrency Space. SSRN Journal [Internet]. 2017 [cited 2023 Dec 6]; Available from: https://www.ssrn.com/abstract=3055498

3. El Youssefi A, Hessane A, Farhaoui Y, Zeroual I. Cryptocurrency Returns Clustering Using Japanese Candlesticks: Towards a Programmatic Trading System. In: Mabrouki J, Mourade A, Irshad A, Chaudhry SA, editors. Advanced Technology for Smart Environment and Energy [Internet]. Cham: Springer International Publishing; 2023 [cited 2023 Dec 7]. p. 93,103. (Environmental Science and Engineering). Available from: https://link.springer.com/10,1007/978,3-031,25662-2,8

4. Aspris A, Foley S, Svec J, Wang L. Decentralized exchanges: The “wild west” of cryptocurrency trading. International Review of Financial Analysis. 2021 Oct;77,101845.

5. Barbon A, Ranaldo A. On The Quality Of Cryptocurrency Markets: Centralized Versus Decentralized Exchanges. 2021 [cited 2023 Dec 4]; Available from: https://arxiv.org/abs/2112,07386

6. Lyukevich I, Gorbatenko I, Bessonova E. Cryptocurrency Market: Choice of Technical Indicators in Trading Strategies of Individual Investors. In: 3rd International Scientific Conference on Innovations in Digital Economy [Internet]. Saint - Petersburg Russian Federation: ACM; 2021 [cited 2023 Dec 4]. p. 408,16. Available from: https://dl.acm.org/doi/10,1145/3527049,3527089

7. Corbet S, Eraslan V, Lucey B, Sensoy A. The effectiveness of technical trading rules in cryptocurrency markets. Finance Research Letters. 2019 Dec;31,32–7.

8. Amirzadeh R, Nazari A, Thiruvady D. Applying Artificial Intelligence in Cryptocurrency Markets: A Survey. Algorithms. 2022 Nov 14,15(11):428.

9. Thakkar A, Chaudhari K. A Comprehensive Survey on Portfolio Optimization, Stock Price and Trend Prediction Using Particle Swarm Optimization. Arch Computat Methods Eng. 2021 Jun;28,4):2133,64.

10. Almansour BY, Alshater MM, Almansour AY. Performance of ARCH and GARCH Models in Forecasting Cryptocurrency Market Volatility. iems. 2021 Jun 30,20(2):130,9.

11. Dudek G, Fiszeder P, Kubus P, Orzeszko W. Forecasting Cryptocurrencies Volatility Using Statistical and Machine Learning Methods: A Comparative Study [Internet]. SSRN; 2023 [cited 2023 Dec 4]. Available from: https://www.ssrn.com/abstract=4409549

12. Akyildirim E, Goncu A, Sensoy A. Prediction of cryptocurrency returns using machine learning. Ann Oper Res. 2021 Feb;297,1–2):3,36.

13. Shakri IH. Time series prediction using machine learning: a case of Bitcoin returns. SEF. 2022 Apr 22,39(3):458,70.

14. Mahayana D, Madyaratri SA, Fadhl ’Abbas M. Predicting Price Movement of the BTCUSDT Pair Using LightGBM Classification Modeling for Cryptocurrency Trading. In: 2022,12th International Conference on System Engineering and Technology (ICSET) [Internet]. Bandung, Indonesia: IEEE; 2022 [cited 2023 Dec 5]. p. 01,6. Available from: https://ieeexplore.ieee.org/document/10010808/

15. Lahmiri S, Bekiros S. Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market. Chaos, Solitons & Fractals. 2020 Apr;133,109641.

16. Madbouly MM, Elkholy M, Gharib YM, Darwish SM. Predicting Stock Market Trends for Japanese Candlestick Using Cloud Model. In: Hassanien AE, Azar AT, Gaber T, Oliva D, Tolba FM, editors. Proceedings of the International Conference on Artificial Intelligence and Computer Vision (AICV2020) [Internet]. Cham: Springer International Publishing; 2020 [cited 2023 Dec 4]. p. 628,45. (Advances in Intelligent Systems and Computing; vol. 1153). Available from: http://link.springer.com/10,1007/978,3-030,44289-7,59

17. Piasecki K, Łyczkowska-Hanćkowiak A. Heikin-Ashi Technique with Use of Oriented Fuzzy Numbers. In: Atanassov KT, Atanassova V, Kacprzyk J, Kałuszko A, Krawczak M, Owsiński JW, et al., editors. Uncertainty and Imprecision in Decision Making and Decision Support: New Advances, Challenges, and Perspectives [Internet]. Cham: Springer International Publishing; 2022 [cited 2023 Dec 4]. p. 60,71. (Lecture Notes in Networks and Systems; vol. 338). Available from: https://link.springer.com/10,1007/978,3-030,95929-6,5

18. El Youssefi A, Hessane A, El Allaoui A, Zeroual I, Farhaoui Y. Heikin Ashi Candlesticks for Cryptocurrency Returns Clustering. In: Farhaoui Y, Rocha A, Brahmia Z, Bhushab B, editors. Artificial Intelligence and Smart Environment [Internet]. Cham: Springer International Publishing; 2023 [cited 2023 Dec 5]. p. 481,5. (Lecture Notes in Networks and Systems; vol. 635). Available from: https://link.springer.com/10,1007/978,3-031,26254-8,69

19. Akyildirim E, Cepni O, Corbet S, Uddin GS. Forecasting mid-price movement of Bitcoin futures using machine learning. Ann Oper Res. 2023 Nov;330,1–2):553,84.

20. Cohen G. Intraday algorithmic trading strategies for cryptocurrencies. Rev Quant Finan Acc. 2023 Jul;61,1):395,409.

21. Binance archived historical spot trading data [Internet]. [cited 2023 Nov 7]. Available from: https://data.binance.vision/?prefix=data/spot/

22. Kolte A, Pawar A, Kumar Roy J, Vida I, Vasa L. Evaluating the Return Volatility of Cryptocurrency Market: An Econometrics Modelling Method. ACTA POLYTECH HUNG. 2022,19(5):107,26.

23. Pichl L, Nan Z, Kaizoji T. Time Series Analysis of Ether Cryptocurrency Prices: Efficiency, Predictability, and Arbitrage on Exchange Rates. In: Pichl L, Eom C, Scalas E, Kaizoji T, editors. Advanced Studies of Financial Technologies and Cryptocurrency Markets [Internet]. Singapore: Springer Singapore; 2020 [cited 2023 Dec 3]. p. 183,96. Available from: http://link.springer.com/10,1007/978,981-15,4498-9,10

24. Moez A. PyCaret: An open source, low-code machine learning library in Python [Internet]. 2020. Available from: https://www.pycaret.org

25. Scikit-learn documentation [Internet]. [cited 2023 Nov 19]. Available from: https://scikit-learn.org/stable/modules/linear_model.html#huber-regression

26. Al Hawi L, Sharqawi S, Al-Haija QA, Qusef A. Empirical Evaluation of Machine Learning Performance in Forecasting Cryptocurrencies. JAIT. 2023,14(4):639--647.

27. Uras N, Marchesi L, Marchesi M, Tonelli R. Forecasting Bitcoin closing price series using linear regression and neural networks models. PeerJ Computer Science. 2020 Jul 6,6:e279.

28. Md AQ, Narayanan SMSS, Sabireen H, Sivaraman AK, Tee KF. A novel approach to detect fraud in Ethereum transactions using stacking. Expert Systems. 2023 Aug;40,7):e13255.

29. Liapis CM, Karanikola A, Kotsiantis S. Investigating Deep Stock Market Forecasting with Sentiment Analysis. Entropy. 2023 Jan 23,25(2):219.

30. Farhaoui, Y., “Design and implementation of an intrusion prevention system” International Journal of Network Security, vol.19,5), pp. 675,683, 2017. DOI: 10,6633/IJNS.201709,19(5).04

31. Farhaoui, Y.and All, Big Data Mining and Analytics, 2023, 6,3), pp. I–II, DOI: 10,26599/BDMA.2022,9020045

32. Farhaoui, Y., “Intrusion prevention system inspired immune systems” Indonesian Journal of Electrical Engineering and Computer Science, vol. 2,1), pp. 168,179, 2016.

33. Farhaoui, Y. , "Big data analytics applied for control systems" Lecture Notes in Networks and Systems, 2018, 25, pp. 408,415. https://doi.org/10,1007/978,3-319,69137-4,36

34. Farhaoui, Y. and All, Big Data Mining and Analytics, 2022, 5,4), pp. I IIDOI: 10,26599/BDMA.2022,9020004

35. Alaoui, S.S., and all. "Hate Speech Detection Using Text Mining and Machine Learning", International Journal of Decision Support System Technology, 2022, 14,1), 80. DOI: 10,4018/IJDSST.286680

36. Alaoui, S.S., and all. ,"Data openness for efficient e-governance in the age of big data", International Journal of Cloud Computing, 2021, 10,5-6), pp. 522,532, https://doi.org/10,1504/IJCC.2021,120391

37. El Mouatasim, A., and all. "Nesterov Step Reduced Gradient Algorithm for Convex Programming Problems", Lecture Notes in Networks and Systems, 2020, 81, pp. 140,148. https://doi.org/10,1007/978,3-030,23672-4,11

38. Tarik, A., and all."Recommender System for Orientation Student" Lecture Notes in Networks and Systems, 2020, 81, pp. 367,370.https://doi.org/10,1007/978,3-030,23672-4,27

39. Sossi Alaoui, S., and all. "A comparative study of the four well-known classification algorithms in data mining", Lecture Notes in Networks and Systems, 2018, 25, pp. 362,373. https://doi.org/10,1007/978,3-319,69137-4,32

40. Farhaoui, Y."Teaching Computer Sciences in Morocco: An Overview", IT Professional, 2017, 19,4), pp. 12,15, 8012307. DOI: 10,1109/MITP.2017,3051325

41. Farhaoui, Y., "Securing a Local Area Network by IDPS Open Source", Procedia Computer Science, 2017, 110, pp. 416,421. https://doi.org/10,1016/j.procs.2017,06.106

Downloads

Published

2024-03-11

How to Cite

1.
El Youssefi A, Hessane A, Zeroual I, Farhaoui Y. Utilizing Machine Learning and Deep Learning for Predicting Crypto-currency Trends. Salud, Ciencia y Tecnología - Serie de Conferencias [Internet]. 2024 Mar. 11 [cited 2024 Nov. 21];3:638. Available from: https://conferencias.ageditor.ar/index.php/sctconf/article/view/1078