Abstract

Investors need analytical tools to predict the price and to determine trading positions. Candlestick pattern is one of the analytical tools that predict price trends. However, the patterns are difficult to recognize, and some studies show doubts regarding the robustness of the recognizing system. In this study, we tested the predictive ability of candlestick patterns to determine trading positions. We use Gramian Angular Field (GAF) to encode candlestick patterns as images to recognize 3-hour and 5-hour of 6 candlestick patterns with Convolutional Neural Network (CNN), coupled with the Long short-term memory (LSTM) model to predict the close price. The trading position consists of buying and selling position with a hold period of several hours. Our results show CNN successfully detected 3-hour and 5-hour GAF candlestick patterns with an accuracy of 90% and 93%. LSTM can predict the close price trend with 155.458 RMSE scores and 0.9754% MAPE with 10-hour look back. With a hold duration of three hours and CNN-LSTM as an additional model, the test data's 85 candlestick patterns are recognized with 82.7% accuracy, compared to 60% accuracy of profitable trading positions when CNN candlestick pattern recognition is used alone. Compared to employing CNN candlestick pattern identification alone, the CNN-LSTM model combination can improve the prediction power of candlestick patterns and offer more lucrative trading positions.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call