Encoding candlesticks as images for pattern classification using convolutional neural networks

被引:43
作者
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], 2012, ENCY CANLESTICK CHAR
  • [2] [Anonymous], 2014, MAJOR CANDLESTICKS S
  • [3] [Anonymous], 2015, LENET 5 CONVOLUTIONA
  • [4] [Anonymous], 2008, The secret code of Japanese candlesticks
  • [5] [Anonymous], ADV ANAL LEARN TEMPO
  • [6] [Anonymous], TRADING APPL JAPANES
  • [7] [Anonymous], 2002, J FINANCIAL SERVICE
  • [8] Aziz R., 2018, Annals of Data Science, V5, P615, DOI [10.1007/s40745-018-0155-2, DOI 10.1007/S40745-018-0155-2]
  • [9] Support vector machine with adaptive parameters in financial time series forecasting
    Cao, LJ
    Tay, FEH
    [J]. IEEE TRANSACTIONS ON NEURAL NETWORKS, 2003, 14 (06): : 1506 - 1518
  • [10] Ciresan D, 2012, PROC CVPR IEEE, P3642, DOI 10.1109/CVPR.2012.6248110