[Paper Review] Using Deep Learning Neural Networks and Candlestick Chart Representation to Predict Stock Market
This paper proposes a deep learning approach that converts stock market time series data into candlestick chart images and uses Convolutional Neural Networks (CNNs), Residual Networks (ResNets), and VGG-like architectures to predict future price movements. The method achieves 92.2% and 92.1% accuracy on Taiwan and Indonesian stock datasets, respectively, outperforming prior methods in accuracy and F-measure.
Stock market prediction is still a challenging problem because there are many factors effect to the stock market price such as company news and performance, industry performance, investor sentiment, social media sentiment and economic factors. This work explores the predictability in the stock market using Deep Convolutional Network and candlestick charts. The outcome is utilized to design a decision support framework that can be used by traders to provide suggested indications of future stock price direction. We perform this work using various types of neural networks like convolutional neural network, residual network and visual geometry group network. From stock market historical data, we converted it to candlestick charts. Finally, these candlestick charts will be feed as input for training a Convolutional Neural Network model. This Convolutional Neural Network model will help us to analyze the patterns inside the candlestick chart and predict the future movements of stock market. The effectiveness of our method is evaluated in stock market prediction with a promising results 92.2% and 92.1% accuracy for Taiwan and Indonesian stock market dataset respectively. The constructed model have been implemented as a web-based system freely available at http://140.138.155.216/deepcandle/ for predicting stock market using candlestick chart and deep learning neural networks.
Motivation & Objective
- To improve stock market prediction accuracy by leveraging visual patterns in candlestick charts.
- To evaluate the effectiveness of deep neural networks—specifically CNN, ResNet, and VGG—on image-based stock price movement prediction.
- To investigate how trading period length, image size, and inclusion of volume data affect model performance.
- To develop a publicly accessible web-based decision support system for traders using the trained model.
- To compare the proposed method with existing approaches using standardized metrics like accuracy, F-measure, and MCC.
Proposed method
- Historical stock data (open, high, low, close, volume) from Taiwan and Indonesia were converted into candlestick chart images using computer graphics techniques.
- A sliding window technique was applied to generate multi-period sequences (1, 2, 3 months) for training and evaluation.
- The candlestick images were fed into deep learning models, including standard CNN, ResNet, and VGG-like architectures, to learn spatial patterns.
- Two image sizes—50x50 and 20x20 pixels—were tested to assess the impact of resolution on prediction performance.
- Traditional machine learning models (Random Forest, K-Nearest Neighbors) were also evaluated for comparison.
- The final model was deployed as a web application at http://140.138.155.216/deepcandle/ for public access and real-time prediction.
Experimental results
Research questions
- RQ1Can deep convolutional neural networks effectively learn predictive patterns from candlestick chart images of stock market data?
- RQ2How does the length of the trading period (1, 2, or 3 months) influence the predictive accuracy of the model?
- RQ3Does including volume data in candlestick charts improve the performance of deep learning models in stock price direction prediction?
- RQ4How does the proposed method compare in accuracy and F-measure to existing approaches like Patel (2015), Khaidem et al., and Zhang (2018)?
- RQ5Can a web-based system using this model provide practical, user-friendly stock market predictions for traders?
Key findings
- The proposed method achieved 92.2% accuracy on the Taiwan stock market dataset and 92.1% on the Indonesian dataset, significantly outperforming prior methods.
- The model using a 3-month trading period achieved the highest performance across all metrics, including sensitivity, specificity, accuracy, and Matthews Correlation Coefficient (MCC).
- Adding volume information to candlestick charts did not significantly improve model performance, suggesting that visual patterns without volume are sufficient for high accuracy.
- The model outperformed Patel’s method, achieving 97.2% accuracy on the S&P BSE Sensex compared to Patel’s 89.84%, and 93.9% on Reliance Industries versus Patel’s 92.22%.
- Compared to Zhang’s method using sentiment analysis on social media and news, the proposed model achieved 92.6% accuracy versus Zhang’s 61.7%, demonstrating superior performance.
- The web-based system DeepCandle (http://140.138.155.216/deepcandle/) was successfully implemented and made publicly available for real-time predictions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.