How to balance financial returns with metalearning for trend prediction


  • Alvaro Valentim Pereira de Menezes Bandeira Universidade de São Paulo
  • Gabriel Monteiro Ferracioli Universidade de São Paulo
  • Moisés Rocha dos Santos Universidade de São Paulo
  • André Carlos Ponce de Leon Ferreira de Carvalho Universidade de São Paulo



market movement, metalearning, stock market, machine learning


The prediction of market price movement is an essential tool for decision-making in trading scenarios. However, there are several candidate methods for this task. Metalearning can be an important ally for the automatic selection of methods, which can be machine learning algorithms for classification tasks, named here classification algorithms. In this work, we present the use of metalearning for classification in market movement prediction and elaborate new analyses of its statistical implications. Different setups and metrics were evaluated for the meta-target selection. Cumulative return was the metric that achieved the best meta and base-level results. According to the experimental results, metalearning was a competitive selection strategy for predicting market price movement. This work is an extension of Bandeira et. al[2022].


Download data is not yet available.


Alcobaça, E., Siqueira, F., Rivolli, A., Garcia, L. P. F., Oliva, J. T., and de Carvalho, A. C. P. L. F. (2020). Mfe: Towards reproducible meta-feature extraction. Journal of Machine Learning Research, 21(111):1–5.

Bandeira, A., Ferracioli, G., dos Santos, M., and de Carvalho, A. P. L. F. (2022). Market movement prediction algorithm selection by metalearning. In Anais do X Symposium on Knowledge Discovery, Mining and Learning, pages 1–8, Porto Alegre, RS, Brasil. SBC. DOI: 10.5753/kdmile.2022.227947.

Brazdil, P., Carrier, C. G., Soares, C., and Vilalta, R. (2008). Metalearning: Applications to data mining. Springer Science & Business Media.

Breiman, L., Friedman, J. H., Olshen, R. A., and Stone, C. J. (2017). Classification and regression trees. Routledge.

Charkha, P. R. (2008). Stock price prediction and trend prediction using neural networks. In 2008 First International Conference on Emerging Trends in Engineering and Technology, pages 592–594. IEEE.

Chen, T. and Guestrin, C. (2016). Xgboost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, pages 785–794.

Cover, T. and Hart, P. (1967). Nearest neighbor pattern classification. IEEE transactions on information theory, 13(1):21–27.

Cox, D. R. (1958). The regression analysis of binary sequences. Journal of the Royal Statistical Society: Series B (Methodological), 20(2):215–232.

Dong, S., Wang, J., Luo, H., Wang, H., and Wu, F.-X. (2021). A dynamic predictor selection algorithm for predicting stock market movement. Expert Systems with Applications, 186:115836.

Dunn, O. J. (1961). Multiple comparisons among means. Journal of the American statistical association, 56(293):52–64.

Freund, Y. and Schapire, R. E. (1997). A decision-theoretic generalization of online learning and an application to boosting. Journal of computer and system sciences, 55(1):119–139.

Fulcher, B. D., Little, M. A., and Jones, N. S. (2013). Highly comparative time-series analysis: the empirical structure of time series and their methods. Journal of the Royal Society Interface, 10(83):20130048.

Ghosh, P., Neufeld, A., and Sahoo, J. K (2022). Forecasting directional movements of stock prices for intraday trading using lstm and random forests. Finance Research Letters, 46:102280.

Haugen, R. A. and Baker, N. L. (1991). The efficient market inefficiency of capitalization–weighted stock portfolios. The journal of portfolio management, 17(3):35–40.

Ho, T. K. (1995). Random decision forests. In Proceedings of 3rd international conference on document analysis and recognition, volume 1, pages 278–282. IEEE.

Huang, C.-J., Yang, D.-X., and Chuang, Y.-T. (2008). Application of wrapper approach and composite classifier to the stock trend prediction. Expert Systems with Applications, 34(4):2870–2878.

Jordan, M. I. and Mitchell, T. M. (2015). Machine learning: Trends, perspectives, and prospects. Science, 349(6245):255–260.

Lee, M.-C. (2009). Using support vector machine with a hybrid feature selection method to the stock trend prediction. Expert Systems with Applications, 36(8):10896–10904.

Lubba, C. H., Sethi, S. S., Knaute, P., Schultz, S. R., Fulcher, B. D., and Jones, N. S. (2019). catch22: Canonical time-series characteristics. Data Mining and Knowledge Discovery, 33(6):1821–1852.

Lundberg, S. M. and Lee, S.-I. (2017). A unified approach to interpreting model predictions. In Guyon, I., Luxburg, U. V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett, R., editors, Advances in Neural Information Processing Systems 30, pages 4765–4774. Curran Associates, Inc.

Mann, H. B. and Whitney, D. R. (1947). On a test of whether one of two random variables is stochastically larger than the other. The annals of mathematical statistics, pages 50–60.

McCallum, A., Nigam, K., et al. (1998). A comparison of event models for naive bayes text classification. In AAAI-98 workshop on learning for text categorization, volume 752, pages 41–48. Citeseer.

Mehtab, S. and Sen, J. (2019). A robust predictive model for stock price prediction using deep learning and natural language processing. arXiv preprint arXiv:1912.07700.

Ni, L.-P., Ni, Z.-W., and Gao, Y.-Z. (2011). Stock trend prediction based on fractal feature selection and support vector machine. Expert Systems with Applications, 38(5):5569–5576.

Pillai, K. S. (1955). Some new test criteria in multivariate analysis. The Annals of Mathematical Statistics, pages 117–121.

Prudêncio, R. B. and Ludermir, T. B. (2004). Meta-learning approaches to selecting time series models. Neurocomputing, 61:121–137.

Teweles, R. J. and Bradley, E. S. (1998). The stock market, volume 64. John Wiley & Sons.

Tsaih, R., Hsu, Y., and Lai, C. C. (1998). Forecasting s&p 500 stock index futures with a hybrid ai system. Decision support systems, 23(2):161–174.

Vapnik, V. (1998). Statistical Learning Theory. NY: Wiley.

Wen, M., Li, P., Zhang, L., and Chen, Y. (2019). Stock market trend prediction using high-order information of time series. Ieee Access, 7:28299–28308.

Zhang, J., Cui, S., Xu, Y., Li, Q., and Li, T. (2018). A novel data-driven stock price trend prediction system. Expert Systems with Applications, 97:60–69.




How to Cite

Valentim Pereira de Menezes Bandeira, A., Monteiro Ferracioli, G., Rocha dos Santos, M., & Carlos Ponce de Leon Ferreira de Carvalho, A. (2024). How to balance financial returns with metalearning for trend prediction. Journal of Information and Data Management, 15(1), 142–151.



Best Papers of KDMiLe 2022 - Extended Papers