Skip to main content
QUICK REVIEW

[Paper Review] Deep Stock Representation Learning: From Candlestick Charts to Investment Decisions

Guosheng Hu, Yuxin Hu|arXiv (Cornell University)|Sep 12, 2017
Stock Market Forecasting MethodsDecision Sciences17 references4 citations
TL;DR

This paper proposes a deep learning-based investment strategy that uses Convolutional Autoencoders (CAE) to learn nonlinear, translation-invariant stock representations from synthetic candlestick charts, enabling improved stock clustering via modularity optimization and high-risk-adjusted return portfolio construction by selecting top Sharpe ratio stocks per cluster. The method outperforms the FTSE 100 index and multiple well-known funds over 2,000–4,000 trading days with a 283.5% total return and 0.50 daily Sharpe ratio.

ABSTRACT

We propose a novel investment decision strategy (IDS) based on deep learning. The performance of many IDSs is affected by stock similarity. Most existing stock similarity measurements have the problems: (a) The linear nature of many measurements cannot capture nonlinear stock dynamics; (b) The estimation of many similarity metrics (e.g. covariance) needs very long period historic data (e.g. 3K days) which cannot represent current market effectively; (c) They cannot capture translation-invariance. To solve these problems, we apply Convolutional AutoEncoder to learn a stock representation, based on which we propose a novel portfolio construction strategy by: (i) using the deeply learned representation and modularity optimisation to cluster stocks and identify diverse sectors, (ii) picking stocks within each cluster according to their Sharpe ratio (Sharpe 1994). Overall this strategy provides low-risk high-return portfolios. We use the Financial Times Stock Exchange 100 Index (FTSE 100) data for evaluation. Results show our portfolio outperforms FTSE 100 index and many well known funds in terms of total return in 2000 trading days.

Motivation & Objective

  • To address limitations in existing stock similarity metrics, such as linearity, high data dependency, and lack of translation-invariance.
  • To develop a data-driven, deterministic method for market segmentation into diverse sectors to enhance portfolio diversification.
  • To improve investment performance by leveraging deep visual representations of stock price time series for portfolio construction.
  • To provide a stable, repeatable, and risk-managed investment strategy suitable for real-world financial applications.

Proposed method

  • Convert 4-channel stock price time series (open, high, low, close) into synthetic candlestick charts for visual representation.
  • Train a Convolutional Autoencoder (CAE) in an unsupervised manner on millions of synthetic candlestick images to learn deep, compact, and semantically rich stock representations.
  • Use the learned deep features to compute stock similarities for clustering, replacing traditional linear metrics like covariance.
  • Apply modularity optimization—a deterministic, community-detection method originally for networks—to cluster stocks into diverse, data-driven sectors.
  • Select the stock with the highest Sharpe ratio within each cluster for portfolio construction to maximize risk-adjusted returns.
  • Evaluate the strategy on the FTSE 100 index over 2,000–4,000 trading days, comparing performance against benchmarks and well-known funds.

Experimental results

Research questions

  • RQ1Can deep learning-based visual representation of candlestick charts capture nonlinear dynamics and translation-invariant patterns in stock price time series more effectively than raw time series?
  • RQ2Does modularity optimization-based clustering using deep features enable more stable and diversified portfolio segmentation than k-means or other non-deterministic clustering methods?
  • RQ3Can a portfolio constructed by selecting the highest Sharpe ratio stock per cluster based on deep features outperform the FTSE 100 index and major mutual funds in terms of total return and risk-adjusted performance?
  • RQ4To what extent do deep features improve portfolio performance compared to raw time series in similarity-based clustering and investment strategies?

Key findings

  • The proposed method achieved a total return of 283.5% over 4,000 trading days, significantly outperforming the FTSE 100 index and the raw time series baseline (208.8%).
  • The daily Sharpe ratio of 0.50 with deep features and modularity clustering surpassed both the raw time series baseline (0.44) and k-means clustering (0.49), indicating better risk-adjusted returns.
  • The strategy achieved a maximum drawdown of -60.5%, which was lower than the raw time series baseline (-55.6%), demonstrating improved risk management.
  • In a 2,000-day evaluation, the method achieved a 215.4% total return and a 0.80 daily Sharpe ratio—higher than all compared funds, including top-performing PXI (152.2% return, 0.60 Sharpe).
  • The portfolio was profitable in 69.52% of years, outperforming most funds and showing strong stability across diverse market conditions.
  • The modularity-based clustering method proved superior and deterministic, unlike k-means, which introduces non-reproducible results due to random initialization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.