Encoding candlesticks as images for pattern classification using convolutional neural networks

被引:49
作者
Chen, Jun-Hao [1 ]
Tsai, Yun-Cheng [1 ]
机构
[1] Soochow Univ, Taipei, Taiwan
关键词
Convolutional Neural Networks (CNN); Gramian Angular Field (GAF); Candlestick; Patterns Classification; Time-Series; Financial Vision; TRADING STRATEGIES; TIME-SERIES; PREDICTION; MODEL;
D O I
10.1186/s40854-020-00187-0
中图分类号
F8 [财政、金融];
学科分类号
0202 ;
摘要
Candlestick charts display the high, low, opening, and closing prices in a specific period. Candlestick patterns emerge because human actions and reactions are patterned and continuously replicate. These patterns capture information on the candles. According to Thomas Bulkowski's Encyclopedia of Candlestick Charts, there are 103 candlestick patterns. Traders use these patterns to determine when to enter and exit. Candlestick pattern classification approaches take the hard work out of visually identifying these patterns. To highlight its capabilities, we propose a two-steps approach to recognize candlestick patterns automatically. The first step uses the Gramian Angular Field (GAF) to encode the time series as different types of images. The second step uses the Convolutional Neural Network (CNN) with the GAF images to learn eight critical kinds of candlestick patterns. In this paper, we call the approach GAF-CNN. In the experiments, our approach can identify the eight types of candlestick patterns with 90.7% average accuracy automatically in real-world data, outperforming the LSTM model.
引用
收藏
页数:19
相关论文
共 31 条
[1]  
[Anonymous], 1995, HDB BRAIN THEORY NEU
[2]  
[Anonymous], 2012, ENCY CANLESTICK CHAR
[3]  
[Anonymous], 2014, MAJOR CANDLESTICKS S
[4]  
[Anonymous], 2008, Advances in neural information processing systems
[5]  
[Anonymous], 2015, NATURE
[6]  
[Anonymous], 2008, The secret code of Japanese candlesticks
[7]  
[Anonymous], ADV ANAL LEARN TEMPO
[8]  
[Anonymous], TRADING APPL JAPANES
[9]  
[Anonymous], 2002, J FINANCIAL SERVICE
[10]  
[Anonymous], 2017, On the Origin of Deep Learning