Revista Română de Informatică și Automatică (Mar 2024)

Cryptocurrency returns prediction using candlestick patterns analysis and multi-layer deep LSTM neural networks

  • Mohammad VAHIDPOUR,
  • Amir DANESHVAR,
  • Mohsen AMINI KHOUZANI,
  • Mahdi HOMAYOUNFAR

DOI
https://doi.org/10.33436/v34i1y202410
Journal volume & issue
Vol. 34, no. 1
pp. 109 – 122

Abstract

Read online

Financial markets are characterised by their dynamic, non-linear, and fluctuating nature. Analysing financial time series in these contexts is a complex and challenging task. Candlestick patterns are recognised as among the most widely used financial tools and offer invaluable insights into market sentiment and psychology. However, manual analysis of these patterns presents significant challenges. Therefore, leveraging machine learning methods becomes a necessity for overcoming these challenges. In this study, a four-step framework was introduced in which the data preparation process is executed on the price data of the 20 cryptocurrencies. Forty-eight candlestick patterns were extracted alongside returns. Employing the long shortterm memory (LSTM) neural network, structured with multiple layers, each specialising in a specific cryptocurrency, enables individualised prediction of market returns. Evaluation of model accuracy and sensitivity is conducted via the confusion matrix, and two distinct trading strategies assess the capital portfolio. The research findings underscore the profitability of the proposed model across all scenarios. Candlestick patterns serve as powerful tools for understanding market sentiments and identifying shifts in market trends. However, their standalone efficacy is limited. Integrating them with other technical analysis tools facilitates more informed decision-making and fosters a deeper understanding of market dynamics.

Keywords