From an artificial neural network to a stock market day-trading system: A case study on the BM&F BOVESPA

Predicting trends in the stock market is a subject of major interest for both scholars and financial analysts. The main difficulties of this problem are related to the dynamic, complex, evolutive and chaotic nature of the markets. In order to tackle these problems, this work proposes a day-trading system that “translates” the outputs of an artificial neural network into business decisions, pointing out to the investors the best times to trade and make profits. The ANN forecasts the lowest and highest stock prices of the current trading day. The system was tested with the two main stocks of the BM&FBOVESPA, an important and understudied market. A series of experiments were performed using different data input configurations, and compared with four benchmarks. The results were evaluated using both classical evaluation metrics, such as the ANN generalization error, and more general metrics, such as the annualized return. The ANN showed to be more accurate and give more return to the investor than the four benchmarks. The best results obtained by the ANN had an mean absolute percentage error around 50% smaller than the best benchmark, and doubled the capital of the investor.

[1]  N. Baba,et al.  An intelligent forecasting system of stock price using neural networks , 1992, [Proceedings 1992] IJCNN International Joint Conference on Neural Networks.

[2]  Tushar S. Chande Beyond Technical Analysis: How to Develop and Implement a Winning Trading System , 1996 .

[3]  Amir F. Atiya,et al.  An efficient stock market forecasting model using neural networks , 1997, Proceedings of International Conference on Neural Networks (ICNN'97).

[4]  Amir F. Atiya,et al.  Introduction to financial forecasting , 1996, Applied Intelligence.

[5]  Pei-Chann Chang,et al.  A neural network with a case based dynamic window for stock trading prediction , 2009, Expert Syst. Appl..

[6]  Bo Yang,et al.  Hybrid Methods for Stock Index Modeling , 2005, FSKD.

[7]  Yang Yiwen,et al.  Stock market trend prediction based on neural networks, multiresolution analysis and dynamical reconstruction , 2000, Proceedings of the IEEE/IAFE/INFORMS 2000 Conference on Computational Intelligence for Financial Engineering (CIFEr) (Cat. No.00TH8520).

[8]  Hiok Chai Quek,et al.  Brain-inspired genetic complementary learning for stock market prediction , 2005, 2005 IEEE Congress on Evolutionary Computation.

[9]  David M. Bourg,et al.  AI for Game Developers , 2004 .

[10]  Xin Li,et al.  Application of Neural Networks in Financial Data Mining , 2007, International Conference on Computational Intelligence.

[11]  Albert Y. Zomaya,et al.  Nonconventional computing paradigms in the new millennium: a roundtable , 2001, Comput. Sci. Eng..

[12]  Robert W. Colby,et al.  The Encyclopedia of Technical Market Indicators , 1988 .

[13]  Kyung-shik Shin,et al.  A hybrid approach based on neural networks and genetic algorithms for detecting temporal patterns in stock markets , 2007, Appl. Soft Comput..

[14]  R. D. C. T. Raposo,et al.  Stock Market Prediction Based on Fundamentalist Analysis with Fuzzy-Neural Networks , 2022 .

[15]  Ajith Abraham,et al.  Real stock trading using soft computing models , 2005, International Conference on Information Technology: Coding and Computing (ITCC'05) - Volume II.

[16]  Michael G. Madden,et al.  A neural network approach to predicting stock exchange movements using external factors , 2005, Knowl. Based Syst..

[17]  H. Ahmadi Testability of the arbitrage pricing theory by neural network , 1990, 1990 IJCNN International Joint Conference on Neural Networks.

[18]  Yi-Fan Wang,et al.  Predicting stock price using fuzzy grey prediction system , 2002, Expert Syst. Appl..

[19]  James L. McClelland,et al.  Parallel distributed processing: explorations in the microstructure of cognition, vol. 1: foundations , 1986 .

[20]  Tsau Young Lin,et al.  Granular neural web agents for stock prediction , 2002, Soft Comput..

[21]  Luvai Motiwalla,et al.  Predictable variation and profitable trading of US equities: a trading simulation using neural networks , 2000, Comput. Oper. Res..

[22]  David Enke,et al.  The adaptive selection of financial and economic variables for use with artificial neural networks , 2004, Neurocomputing.

[23]  Henrik Jacobsson,et al.  Rule Extraction from Recurrent Neural Networks: ATaxonomy and Review , 2005, Neural Computation.

[24]  Michele Marchesi,et al.  A hybrid genetic-neural architecture for stock indexes forecasting , 2005, Inf. Sci..

[25]  Ki-Tae Kim,et al.  Stock Price Prediction Using Backpropagation Neural Network in KOSPI , 2003, IC-AI.

[26]  A. Neil Burgess,et al.  Neural networks in financial engineering: a study in methodology , 1997, IEEE Trans. Neural Networks.

[27]  Dimitris E. Koulouriotis,et al.  Development of dynamic cognitive networks as complex systems approximators: validation in financial time series , 2005, Appl. Soft Comput..

[28]  Yang Yi Stock Market Trend Prediction Based on Neural Networks, Multiresolution Analysis and Dynamical Reconstruction , 2001 .

[29]  Kyong Joo Oh,et al.  Analyzing Stock Market Tick Data Using Piecewise Nonlinear Model , 2022 .

[30]  Yudong Zhang,et al.  Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network , 2009, Expert Syst. Appl..

[31]  Animesh Chaturvedi,et al.  A Neural Stock Price Predictor using Quantitative Data , 2004, iiWAS.

[32]  Bruce J. Vanstone,et al.  An empirical methodology for developing stockmarket trading systems using artificial neural networks , 2009, Expert Syst. Appl..

[33]  Tak-Chung Fu,et al.  An evolutionary approach to pattern-based time series segmentation , 2004, IEEE Transactions on Evolutionary Computation.

[34]  Kimon P. Valavanis,et al.  Surveying stock market forecasting techniques - Part II: Soft computing methods , 2009, Expert Syst. Appl..

[35]  Ajith Abraham,et al.  Modeling chaotic behavior of stock indices using intelligent paradigms , 2003, Neural Parallel Sci. Comput..

[36]  Ramon Lawrence,et al.  Using Neural Networks to Forecast Stock Market Prices , 2000 .

[37]  Dennis Olson,et al.  Neural network forecasts of Canadian stock returns using accounting ratios , 2003 .

[38]  Bernd Freisleben Stock Market Prediction with Backpropagation Networks , 1992, IEA/AIE.

[39]  G. Kane Parallel Distributed Processing: Explorations in the Microstructure of Cognition, vol 1: Foundations, vol 2: Psychological and Biological Models , 1994 .

[40]  Andreas S. Andreou,et al.  Testing the predictability of the Cyprus Stock Exchange: the case of an emerging market , 2000, Proceedings of the IEEE-INNS-ENNS International Joint Conference on Neural Networks. IJCNN 2000. Neural Computing: New Challenges and Perspectives for the New Millennium.

[41]  Ivan Dong kdong,et al.  Predicting Extreme Stock Performance More Accurately , 2001 .

[42]  Eberhard Schöneburg,et al.  Stock price prediction using neural networks : A project report , 2003 .

[43]  Ajith Abraham,et al.  Hybrid Intelligent Systems for Stock Market Analysis , 2001, International Conference on Computational Science.

[44]  Joachim Diederich,et al.  Survey and critique of techniques for extracting rules from trained artificial neural networks , 1995, Knowl. Based Syst..

[45]  H. White,et al.  Economic prediction using neural networks: the case of IBM daily stock returns , 1988, IEEE 1988 International Conference on Neural Networks.

[46]  Se-Hak Chun,et al.  Dynamic adaptive ensemble case-based reasoning: application to stock market prediction , 2005, Expert Syst. Appl..

[47]  Marc J. Schniederjans,et al.  A comparison between Fama and French's model and artificial neural networks in predicting the Chinese stock market , 2005, Comput. Oper. Res..