# Encoding Candlesticks as Images for Patterns Classification Using Convolutional Neural Networks

arXiv: https://arxiv.org/abs/1901.05237 · HTML: https://mlsanity.com/paper/1901.05237/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 16 Jan 2019.

## Built on by (most cited first, 2 of 2)

- [Denoised Labels for Financial Time-Series Data via Self-Supervised Learning](https://mlsanity.com/paper/2112.10139/) (2021)
- [When Fusion Helps and When It Breaks: View-Aligned Robustness in Same-Source Financial Imaging](https://mlsanity.com/paper/2602.11020/) (2026)

## Abstract (arXiv)

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 method can identify the eight types of candlestick patterns with 90.7% average accuracy automatically in real-world data, outperforming the LSTM model.
