Candlestick Type Prediction in Financial Charts
Abstract
AI-powered financial market prediction is a leading and popular research area nowadays. While most research has focused on portfolio optimization, trend analysis, and price prediction, the primary focus of this paper is the prediction of candlestick type in financial charts. As this is a relatively new field in market prediction, few studies have been conducted, and this study aims to advance this developing topic. Candlesticks provide a visual representation of price changes over time. Candlestick patterns can be classified into reversal and continuation patterns, which can signal potential market changes. While continuation patterns indicate that the same trend continues for a bullish or bearish market, reversal patterns signal the opposite, showing transitions from upward to downward momentum or vice versa. We first proposed thirty-three attributes, including thirty-two input features and an output/prediction variable, to build our datasets. In practice, we considered four types of candlesticks—Doji, Hanging Man, Hammer, and Marubozu—that have the highest frequencies in the price chart. Second, numerous machine learning and deep learning models have been developed to achieve optimal accuracy. An ablation study validated the significant contribution of the newly engineered features, while SHAP-based explainable AI analysis highlighted their interpretability and impact on model decisions. When evaluated on hourly data, the proposed Hybrid Transformer-LSTM (HTL) model could enhance performance, achieving an accuracy of approximately 86%.
Keywords
Ethical Statement
References
- D. Nath, Ankit, D. R. Neog, and S. S. Gautam, “Application of machine learning and deep learning in finite element analysis: A comprehensive review,” Arch. Comput. Methods Eng., vol. 31, pp. 2945–2984, 2024, doi: 10.1007/S11831-024-10063-0.
- C. Zhang, Y. Zhang, M. Cucuringu, and Z. Qian, “Volatility forecasting with machine learning and intraday commonality,” J. Financ. Econom., vol. 22, no. 2, pp. 492–530, 2024, doi: 10.1093/JJFINEC/NBAD005.
- S. M. Acosta, R. M. A. Oliveira, and ˆA. M. O. Sant’Anna, “Machine learning algorithms applied to intelligent tyre manufacturing,” Int. J. Comput. Integr. Manuf., vol. 37, no. 4, pp. 497–507, 2024, doi: 10.1080/0951192X.2023.2177734.
- K. Hernandez and A. B. Hoskins, “Machine learning algorithms applied to wildfire data in California’s central valley,” Trees For. People, vol. 15, p. 100516, 2024, doi: 10.1016/J.TFP.2024.100516.
- Y. W. Bhowte, A. Roy, K. B. Raj, M. Sharma, K. Devi, and P. LathaSoundarraj, “Advanced fraud detection using machine learning techniques in accounting and finance sector,” in Proc. 9th Int. Conf. Sci. Technol. Eng. Math. (ICONSTEM), 2024, pp. 1–6, doi: 10.1109/ICONSTEM60960.2024.10568756.
- S. Mousavi and M. Bahaghighat, “Phishing website detection: An in-depth investigation of feature selection and deep learning,” Expert Syst., vol. 42, no. 1, p. e13824, 2025, doi: 10.1111/EXSY.13824.
- M. Rostami, M. Bahaghighat, and M. M. Zanjireh, “Bitcoin daily close price prediction using optimized grid search method,” Acta Univ. Sapientiae, Inform., vol. 13, no. 2, pp. 265–287, 2021, doi: 10.2478/AUSI-2021-0012.
- J. Shen and M. O. Shafiq, “Short-term stock market price trend prediction using a comprehensive deep learning system,” J. Big Data, vol. 7, p. 66, 2020, doi: 10.1186/S40537-020-00333-6.
Details
Primary Language
English
Subjects
Artificial Intelligence (Other), Computer Software
Journal Section
Research Article
Authors
Early Pub Date
October 28, 2026
Publication Date
October 30, 2026
Submission Date
December 31, 2025
Acceptance Date
July 21, 2026
Published in Issue
Year 2026 Volume: 9 Number: 5