Submitted:
21 June 2025
Posted:
23 June 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literatura Review
3. Materials and Methods
3.1. Data
3.2. Machine Learning: LSTM Deep Learning Models
3.2.1. Classification Metrics
- Accuracy =
- Sensitivity, recall or true positive rate (TPR)
- Specificity, selectivity or true negative rate (TNR)
- Precision or Positive Predictive Value (PPV)
- False Omission Rate (FOR)
- Balanced Accuracy (BA)
- F1 score .
3.2.2. Bitcoin’s price direction
3.3. Technical analysis: EMA cross-strategy
3.4. Technical analysis: MACD+ADX
4. Results
5. Discussion
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Graham, B.; McGowan, B. The intelligent investor; HarperBusiness Essentials New York, 2003.
- Baur, D.G.; Hong, K.; Lee, A.D. Bitcoin: Medium of exchange or speculative assets? Journal of International Financial Markets, Institutions and Money 2018, 54, 177–189. [Google Scholar] [CrossRef]
- Gronwald, M. Is Bitcoin a Commodity? On price jumps, demand shocks, and certainty of supply. Journal of international money and finance 2019, 97, 86–92. [Google Scholar] [CrossRef]
- White, R.; Marinakis, Y.; Islam, N.; Walsh, S. Is Bitcoin a currency, a technology-based product, or something else? Technological forecasting and social change 2020, 151, 119877. [Google Scholar] [CrossRef]
- Baldan, C.; Zen, F. The bitcoin as a virtual commodity: Empirical evidence and implications. Frontiers in artificial intelligence 2020, 3, 21. [Google Scholar] [CrossRef]
- Rotta, T.N.; Paraná, E. Bitcoin as a digital commodity. New Political Economy 2022, 27, 1046–1061. [Google Scholar] [CrossRef]
- Santos, A.A.; Torrent, H.S. Markowitz meets technical analysis: Building optimal portfolios by exploiting information in trend-following signals. Finance Research Letters 2022, 49, 103063. [Google Scholar] [CrossRef]
- Nti, I.K.; Adekoya, A.F.; Weyori, B.A. A systematic review of fundamental and technical analysis of stock market predictions. Artificial Intelligence Review 2020, 53, 3007–3057. [Google Scholar] [CrossRef]
- Chong, T.T.L.; Ng, W.K. Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30. Applied Economics Letters 2008, 15, 1111–1114. [Google Scholar] [CrossRef]
- Chong, T.T.L.; Ng, W.K.; Liew, V.K.S. Revisiting the Performance of MACD and RSI Oscillators. Journal of risk and financial management 2014, 7, 1–12. [Google Scholar] [CrossRef]
- Li, A.W.; Bastos, G.S. Stock market forecasting using deep learning and technical analysis: a systematic review. IEEE access 2020, 8, 185232–185242. [Google Scholar] [CrossRef]
- Singh, A.; Bhardwaj, G.; Srivastava, A.P.; Bindra, A.; Chaudhary, P.; et al. Application of neural network to technical analysis of stock market prediction. In Proceedings of the 2022 3rd International Conference on Intelligent Engineering and Management (ICIEM). IEEE; 2022; pp. 302–306. [Google Scholar]
- Macedo, L.L.; Godinho, P.; Alves, M.J. A comparative study of technical trading strategies using a genetic algorithm. Computational Economics 2020, 55, 349–381. [Google Scholar] [CrossRef]
- Fang, F.; Ventre, C.; Basios, M.; Kanthan, L.; Martinez-Rego, D.; Wu, F.; Li, L. Cryptocurrency trading: a comprehensive survey. Financial Innovation 2022, 8, 13. [Google Scholar] [CrossRef]
- Goutte, S.; Le, H.V.; Liu, F.; Von Mettenheim, H.J. Deep learning and technical analysis in cryptocurrency market. Finance Research Letters 2023, 54, 103809. [Google Scholar] [CrossRef]
- Grobys, K.; Ahmed, S.; Sapkota, N. Technical trading rules in the cryptocurrency market. Finance Research Letters 2020, 32, 101396. [Google Scholar] [CrossRef]
- Omran, S.M.; El-Behaidy, W.H.; Youssif, A.A. Optimization of Cryptocurrency Algorithmic Trading Strategies Using the Decomposition Approach. Big Data and Cognitive Computing 2023, 7, 174. [Google Scholar] [CrossRef]
- Dixon, M.; Klabjan, D.; Bang, J.H. Implementing deep neural networks for financial market prediction on the Intel Xeon Phi. In Proceedings of the Proceedings of the 8th workshop on high performance computational finance, 2015, pp.
- Fischer, T.; Krauss, C. Deep learning with long short-term memory networks for financial market predictions. European journal of operational research 2018, 270, 654–669. [Google Scholar] [CrossRef]
- García-Medina, A.; Aguayo-Moreno, E. LSTM–GARCH hybrid model for the prediction of volatility in cryptocurrency portfolios. Computational Economics 2024, 63, 1511–1542. [Google Scholar] [CrossRef] [PubMed]
- García-Medina, A.; Luu Duc Huynh, T. What drives bitcoin? An approach from continuous local transfer entropy and deep learning classification models. Entropy 2021, 23, 1582. [Google Scholar] [CrossRef] [PubMed]
- Goodfellow, I.; Bengio, Y.; Courville, A.; Bengio, Y. Deep learning; Vol. 1, MIT press Cambridge, 2016.
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural computation 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Kim, H.Y.; Won, C.H. Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Systems with Applications 2018, 103, 25–37. [Google Scholar] [CrossRef]
- Reddi, S.J.; Kale, S.; Kumar, S. On the convergence of adam and beyond. arXiv preprint arXiv:1904.09237 2019.





| Case | Cumulative Return |
|---|---|
| LSTM | 65.23% |
| Buy & Hold | 42.51% |
| MACD + ADX | 35.45% |
| EMA | 26.07% |
| Value | |
|---|---|
| Metric | |
| Accuracy | 0.5611 |
| TPR | 0.4887 |
| TNR | 0.6357 |
| PPV | 0.5804 |
| FOR | 0.4533 |
| BA | 0.5622 |
| F1 Score | 0.5306 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).