The evolution of neural network-based chart patterns: a preliminary study

Myoung Hoon Ha, Byung Ro Moon

TL;DR

This paper introduces a novel framework using HyperNEAT to automatically discover and optimize "chart patterns" in financial time series data. By leveraging deep neural network techniques, the authors demonstrate a more effective and efficient approach to finding profitable trading patterns compared to traditional methods.

What Problem Does This Paper Address?

The paper tackles the challenge of identifying profitable chart patterns in financial markets. Traditional technical analysis relies on human-defined patterns (like "head and shoulders") which are limited in their ability to capture complex, non-linear relationships. While some rule-based and template-based approaches exist, they often struggle with highly abstracted features or require manual expert design. The authors aim to bridge this gap by developing a method that can automatically search for and generate novel, potentially more profitable, chart patterns using neural networks.

Methods

The core of the proposed solution is the HyperNEAT framework, specifically its HyperNEAT-LEO variant. HyperNEAT is an evolutionary algorithm that generates neural networks by evolving a "genotype" (a Compositional Pattern Producing Network or CPPN) that then generates the "phenotype" (the actual neural network used for pattern matching). This allows for the creation of complex neural networks from a smaller, more manageable genotype, enabling the encoding of regularities like symmetry and repetition.

For chart pattern matching, the authors use a Multi-Layer Perceptron (MLP) as the discriminant function. The input to the MLP is a preprocessed time series, and its output is a binary decision (match or no match). To enhance the efficiency and effectiveness of this process, they incorporate several state-of-the-art deep neural network techniques:

  • GPGPU: Utilized for massively parallel computation, significantly speeding up the evaluation of millions of charts.
  • Dropout: A regularization technique to prevent overfitting by randomly dropping units during training.
  • Rectified Linear Unit (ReLU): An activation function that offers computational advantages and can improve performance.
  • Weight Scaling: Techniques inspired by deep learning research to manage the variance of activations and prevent exploding/vanishing gradient problems, especially when using ReLU.

Datasets

The study uses daily closing prices of all stocks listed on the Korean stock market from January 2012 to December 2016. This dataset is divided into:

  • Training set: January 2012 - December 2014 (1,018,045 samples)
  • Validation set: January 2015 - December 2015 (294,586 samples)
  • Test set: January 2016 - December 2016 (292,141 samples)

The authors specifically exclude preferred and fund stocks. They also note that the Korean stock market's daily price limits (upper and lower bounds) are considered, where reaching the upper limit is assumed to prevent a match.

Key Insights and Ideas

  • Neural Networks as Pattern Generators: The paper posits that neural networks are a natural fit for representing chart patterns due to their ability to learn adaptive, non-linear features.
  • HyperNEAT for Scalable Pattern Discovery: HyperNEAT's ability to generate complex neural networks from a compact genotype is crucial for exploring the vast space of potential chart patterns efficiently.
  • Synergy of Deep Learning Techniques: The integration of GPGPU, dropout, and ReLU with weight scaling is shown to be critical for making the computationally intensive process of chart pattern search feasible and effective.
  • Neural Network Patterns Outperform: The study suggests that automatically discovered neural network-based patterns can achieve better profitability than traditional rule-based or template-based patterns.
  • Simplicity of Discovered Patterns: Despite their effectiveness, the discovered patterns tend to be relatively simple, hinting at the potential for even more complex and profitable patterns to be found with further research.

Key Results

  • The proposed HyperNEAT framework successfully found attractive and profitable chart patterns on the Korean stock market.
  • Neural network-based chart patterns consistently outperformed rule-based and template-based patterns in terms of profitability across different datasets and look-ahead periods (k=20, 50, 100).
  • GPGPU acceleration provided a significant speedup of approximately 27 times compared to CPU computation for phenotype network evaluation.
  • Dropout was demonstrated to be an effective regularizer, preventing overfitting and improving test set performance.
  • The use of ReLU with careful weight scaling offered a performance improvement and computational efficiency compared to sigmoid networks.

Limitations and Future Work

The authors acknowledge that the chart patterns found by their current model are "fairly simple" and suggest that more complex patterns might exist. They propose several avenues for future research:

  • Incorporating Contextual Information: Integrating time or specific stock item information into the chart pattern search to potentially increase profitability.
  • Accelerating CPPN Computation: Exploring GPGPU for speeding up the CPPN computation itself.
  • Adaptive Weight Scaling: Designing a new CPPN that can adaptively determine weight scaling based on incoming connections.

Summary updated

BibTeX
@inproceedings{ha2017evolution,
  author = {Myoung Hoon Ha and Byung Ro Moon},
  title = {{The evolution of neural network-based chart patterns: a preliminary study}},
  booktitle = {GECCO},
  year = {2017},
  url = {https://openreview.net/forum?id=Iwi5779oQj4},
}
Figure