pp 1–13 | Cite as

Training ensembles of faceted classification models for quantitative stock trading

  • Luca CaglieroEmail author
  • Paolo Garza
  • Giuseppe Attanasio
  • Elena Baralis


Forecasting the stock markets is among the most popular research challenges in finance. Several quantitative trading systems based on supervised machine learning approaches have been presented in literature. Recently proposed solutions train classification models on historical stock-related datasets. Training data include a variety of features related to different facets (e.g., stock price trends, exchange volumes, price volatility, news and public mood). To increase the accuracy of the predictions, multiple models are often combined together using ensemble methods. However, understanding which models should be combined together and how to effectively handle features related to different facets within different models are still open research questions. In this paper we investigate the use of ensemble methods to combine faceted classification models for supporting stock trading. To this aim, separate classification models are trained on each subset of features belonging to the same facet. They produce trading signals tailored to a specific facet. Signals are then combined together and filtered to generate a unified, multi-faceted recommendation. The experimental validation, performed on different markets and in different conditions, shows that, in many cases, some of the faceted models perform as good as or better than models trained on a mix of different features. An ensemble of the faceted recommendations makes the generated trading signals more profitable yet robust to draw-down periods.


Quantitative stock trading Classification Ensemble methods Financial application 

Mathematics Subject Classification



Supplementary material

607_2019_776_MOESM1_ESM.xlsx (5.5 mb)
Supplementary material 1 (xlsx 5600 KB)


  1. 1.
    Baralis E, Cagliero L, Cerquitelli T, Garza P, Pulvirenti F (2017) Discovering profitable stocks for intraday trading. Inf Sci 405:91–106CrossRefGoogle Scholar
  2. 2.
    Chan E (2013) Algorithmic trading: winning strategies and their rationale, 1st edn. Wiley, Hoboken Google Scholar
  3. 3.
    Chen Y, Hao Y (2017) A feature weighted support vector machine and k-nearest neighbor algorithm for stock market indices prediction. Expert Syst Appl 80:340–355CrossRefGoogle Scholar
  4. 4.
    Chiang WC, Enke D, Wu T, Wang R (2016) An adaptive stock index trading decision support system. Expert Syst Appl 59:195–207CrossRefGoogle Scholar
  5. 5.
    Enke D, Thawornwong S (2005) The use of data mining and neural networks for forecasting stock market returns. Expert Syst Appl 29(4):927–940CrossRefGoogle Scholar
  6. 6.
    Gaaken M, Afezaalaca M, Boru A, Dosdoayru AT (2016) Integrating metaheuristics and artificial neural networks for improved stock price prediction. Expert Syst Appl 44:320–331CrossRefGoogle Scholar
  7. 7.
    Kim MJ, Min SH, Han I (2006) An evolutionary approach to the combination of multiple classifiers to predict a stock price index. Expert Syst Appl 31:241–247CrossRefGoogle Scholar
  8. 8.
    Kim Y, Ahn W, Oh KJ, Enke D (2017) An intelligent hybrid trading system for discovering trading rules for the futures market using rough sets and genetic algorithms. Appl Soft Comput 55:127–140CrossRefGoogle Scholar
  9. 9.
    Kwon Y, Moon B (2007) A hybrid neurogenetic approach for stock forecasting. IEEE Trans Neural Netw 18(3):851–864CrossRefGoogle Scholar
  10. 10.
    Li Q, Chen Y, Jiang LL, Li P, Chen H (2016) A tensor-based information framework for predicting the stock market. ACM Trans Inf Syst 34(2):11:1–11:30CrossRefGoogle Scholar
  11. 11.
    Loper E, Bird S (2002) Nltk: the natural language toolkit. In: In Proceedings of the ACL workshop on effective tools and methodologies for teaching natural language processing and computational linguistics. Association for Computational Linguistics, PhiladelphiaGoogle Scholar
  12. 12.
    Murphy J (1999) Technical analysis of the financial markets: a comprehensive guide to trading methods and applications. New York Institute of Finance Series. New York Institute of Finance.
  13. 13.
    Naranjo R, Arroyo J, Santos M (2018) Fuzzy modeling of stock trading with fuzzy candlesticks. Expert Syst Appl 93:15–27CrossRefGoogle Scholar
  14. 14.
    Nayak RK, Mishra D, Rath AK (2015) A naive svm-knn based stock market trend reversal analysis for Indian benchmark indices. Appl Soft Comput 35:670–680CrossRefGoogle Scholar
  15. 15.
    Nelson DMQ, Pereira ACM, de Oliveira RA (2017) Stock market’s price movement prediction with lstm neural networks. In: 2017 International joint conference on neural networks (IJCNN), pp 1419–1426Google Scholar
  16. 16.
    Patel J, Shah S, Thakkar P, Kotecha K (2015) Predicting stock market index using fusion of machine learning techniques. Expert Syst Appl 42(4):2162–2172CrossRefGoogle Scholar
  17. 17.
    Malagrino LS, Roman NT, Monteiro AM (2018) Forecasting stock market index daily direction: a Bayesian network approach. Expert Syst Appl 105:11–22 CrossRefGoogle Scholar
  18. 18.
    Selvin S, Vinayakumar R, Gopalakrishnan EA, Menon VK, Soman KP (2017) Stock price prediction using lstm, RNN and cnn-sliding window model. In: ICACCI. IEEE, pp 1643–1647Google Scholar
  19. 19.
    Tan PN, Steinbach M, Karpatne A, Kumar V (2018) Introduction to data mining, 2nd edn. Pearson, LondonGoogle Scholar
  20. 20.
    Tsai CF, Lin YC, Yen DC, Chen YM (2011) Predicting stock returns by classifier ensembles. Appl Soft Comput 11(2):2452–2459CrossRefGoogle Scholar
  21. 21.
    Zhong X, Enke D (2017) Forecasting daily stock market return using dimensionality reduction. Expert Syst Appl 67:126–139CrossRefGoogle Scholar

Copyright information

© Springer-Verlag GmbH Austria, part of Springer Nature 2020

Authors and Affiliations

  1. 1.Dipartimento di Automatica e InformaticaPolitecnico di TorinoTurinItaly

Personalised recommendations