Submitted:
24 September 2025
Posted:
25 September 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- demonstrating the predictability of stock price index direction on the Serbian market using ANN.
- optimizing the ANN architecture through systematic parameter-setting experiments.
- comparing the proposed model’s performance with previously published models on other markets.
1.1. Literature Review
2. Materials and Methods
2.1. Research Data and Features
2.1.1. Data Overview
2.1.2. Feature Selection
2.1.3. Target Values
2.2. Prediction ANN Model
- Phase 1 – Tested 10 training functions and 7 hidden layer sizes (n) → 140 treatments.
- Phase 2 – Refined search with two best training functions and 20–23 levels of hidden neurons → 86 treatments.
- Phase 3 – Optimized additional parameters (maximum validation failures, initial μ) → 84 treatments.
3. Results
3.1. Parameter Setting Experiments
3.2. Comparison with Other Models
- Zhang et al. [39] applied an ANN to predict stock price directions in the Shanghai Stock Exchange.
- Kim and Han [7] developed an ANN with genetic algorithm–based feature discretization (GAFD) and compared it with standard backpropagation (BPLT) and conventional GA (GALT) for predicting the Korea stock index.
- Lendasse et al. [34] used a radial basis function network (RBFN) to forecast the Belgium Bel 20 index.
- Lin et al. [22] compared four models (regression, GARCH-M, ANN, and neuro-fuzzy) for next-day direction prediction across various markets.
- Atsalakis and Valavanis [33] proposed ANFIS (adaptive neuro fuzzy inference system) for ASE and NYSE index forecasting.
- Kara et al. [6] achieved the highest reported accuracy (75.74%) for the ISE-100 index using a backpropagation ANN.
4. Discussion and Conclusions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| A/D | Accumulation/distribution |
| ANFIS | Adaptive neuro fuzzy inference system |
| ANN | Artificial neural network |
| CCI | Commodity channel index |
| GAFD | Genetic algorithm–based feature discretization |
| LSTM | Long short-term memory |
| MA | Moving average |
| MACD | Moving average convergence/divergence |
| RBFN | Radial basis function network |
| RMSE | Root mean square error |
| RSI | Relative strength index |
| RVGWL | Rising visibility graphs and the Weisfeiler–Lehman subtree kernel |
| SVM | Support vector machines |
| VWAP | Volume weighted average price |
References
- Akinrinola, O.; Addy, W.A.; Ajayi-Nifise, A.O.; Odeyemi, O.; Falaiye, T. Predicting stock market movements using neural networks: A review and application study. GSC Advanced Research and Reviews 2024, 18, 297–311. [Google Scholar] [CrossRef]
- Chen, A.S.; Leung, M.T.; Daouk, H. Application of neural networks to an emerging financial market: Forecasting and trading the Taiwan Stock Index. Computers & Operations Research 2003, 30, 901–923. [Google Scholar] [CrossRef]
- Mienye, E.; Jere, N.; Obaido, G.; Mienye, I.D.; Aruleba, K. Deep Learning in Finance: A Survey of Applications and Techniques. AI 2024, 5, 2066–2091. [Google Scholar] [CrossRef]
- Black, F. The trouble with econometrics models. Financial Analysis Journal 1982, 38, 29–37. [Google Scholar] [CrossRef]
- Dourra, H.; Siy, P. Investment using technical analysis and fuzzy logic. Fuzzy Sets and Systems 2002, 127, 221–240. [Google Scholar] [CrossRef]
- Kara, Y.; Boyacioglu, M.A.; Baykan, O.K. Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert Systems with Applications 2011, 38, 5311–5319. [Google Scholar] [CrossRef]
- Kim, K.-J.; Han, I. Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index. Expert Systems with Applications 2000, 19, 125–132. [Google Scholar] [CrossRef]
- Maingo, I.; Ravele, T.; Sigauke, C. Volatility Modelling of the Johannesburg Stock Exchange All Share Index Using the Family GARCH Model. Forecasting 2025, 7, 16. [Google Scholar] [CrossRef]
- Sermpinis, G.; Theofilatos, K.; Karathanasopoulos, A.; Georgopoulos, E.F.; Dunis, C. Forecasting foreign exchange rates with adaptive neural networks using radial-basis functions and Particle Swarm Optimization. European Journal of Operational Research 2013, 225, 528–540. [Google Scholar] [CrossRef]
- Sevim, C.; Oztekin, A.; Bali, O.; Gumus, S.; Guresen, E. Developing an early warning system to predict currency crises. European Journal of Operational Research 2014, 237, 1095–1104. [Google Scholar] [CrossRef]
- Awad, A.L.; Elkaffas, S.M.; Fakhr, M.W. Stock Market Prediction Using Deep Reinforcement Learning. Appl. Syst. Innov. 2023, 6, 106. [Google Scholar] [CrossRef]
- Avci, E. Forecasting daily and sessional returns of the ISE-100 index with neural network models. Journal of Dogus University 2011, 8, 128–142. [Google Scholar] [CrossRef]
- Diler, A.I. Predicting direction of ISE national-100 index with back propagation trained neural network. Journal of Istanbul Stock Exchange 2003, 7, 65–81. [Google Scholar]
- Fernandez-Rodriguez, F.; Gonzalez-Martel, C.; Sosvilla-Rivebo, S. On the profitability of technical trading rules based on artificial neural networks: Evidence from the Madrid stock market. Economics Letters 2000, 69, 89–94. [Google Scholar] [CrossRef]
- Halliday, R.J. Equity trend prediction with neural networks: An Empirical Analysis. Master Thesis, Massey University, Albany, New Zeland, 2012. [Google Scholar]
- Harvey, C.R.; Travens, K.E.; Costa, M.J. Forecasting emerging market returns using neural networks. Emerging Markets Quarterly 2000, 4, 43–55. [Google Scholar]
- Kimoto, T.; Asakawa, K.; Yoda, M.; Takeoka, M. Stock market prediction system with modular neural networks. In Proceedings of the 1990 IJCNN International Joint Conference on Neural Networks, San Diego, California, 17-21 June 1990. [Google Scholar] [CrossRef]
- Olson, D.; Mossman, C. Neural network forecasts of Canadian stock returns using accounting ratios. International Journal of Forecasting 2003, 19, 453–465. [Google Scholar] [CrossRef]
- García-Magariño, I.; Bravo-Agapito, J.; Lacuesta, R. Cybersecure XAI Algorithm for Generating Recommendations Based on Financial Fundamentals Using DeepSeek. AI 2025, 6, 95. [Google Scholar] [CrossRef]
- Atsalakis, G.S.; Valavanis, K.P. Surveying stock market forecasting techniques – Part II: Soft computing methods. Expert Systems with Applications 2009, 36, 5932–5941. [Google Scholar] [CrossRef]
- Kristensen, T.S.; Sognefest, A.H. Can Artificial Neural Networks Be Used to Predict Bitcoin Data? Automation 2023, 4, 232–245. [Google Scholar] [CrossRef]
- Lin, C.-S.; Khan, H.A.; Huang, C.-C. Can the neuro fuzzy model predict stock indexes better than its rivals? CIRJE F-Series CIRJE-F-165, CIRJE, Faculty of Economics, University of Tokyo, 2002.
- Yudong, Z.; Lenan, W. Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network. Expert Systems with Applications 2009, 36, 8849–8854. [Google Scholar] [CrossRef]
- Doeksen, B.; Abraham, A.; Thomas, J.; Paprzycki, M. Real stock trading using soft computing models. In Proceedings of the Int. Conf. on Information Technology: Coding and Computing ITCC 2, Las Vegas, NV, USA, 04-06 April 2005. [Google Scholar] [CrossRef]
- Kim, K.-j. Financial time series forecasting using support vector machines. Neurocomputing 2003, 55, 307–319. [Google Scholar] [CrossRef]
- Perez-Cruz, F.; Alfonso-Rodriguez, J.-A.; Giner, J. Estimating GARCH models using support vector machines. Quantitative Finance 2003, 3, 163–172. [Google Scholar] [CrossRef]
- Ampountolas, A. Comparative Analysis of Machine Learning, Hybrid, and Deep Learning Forecasting Models: Evidence from European Financial Markets and Bitcoins. Forecasting 2023, 5, 472–486. [Google Scholar] [CrossRef]
- Zeng, Z.; Chen, Y. Identifying and Forecasting Recurrently Emerging Stock Trend Structures via Rising Visibility Graphs. Forecasting 2025, 7, 26. [Google Scholar] [CrossRef]
- Saberironaghi, M.; Ren, J.; Saberironaghi, A. Stock market prediction using machine learning and deep learning techniques: A review. Applied Mathematics 2025, 5, 76. [Google Scholar] [CrossRef]
- Phuoc, T.; Anh, P.T.K.; Tam, P.H.; Nguyen, C.V. Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam. Humanities and Social Sciences Communications 2024, 11, 393. [Google Scholar] [CrossRef]
- Khansama, R.R.; Priyadarshini, R.; Nanda, S.K.; Barik, R.K.; Saikia, M.J. SGR-Net: A Synergistic Attention Network for Robust Stock Market Forecasting. Forecasting 2025, 7, 50. [Google Scholar] [CrossRef]
- Jayaraman, G.; Azad, I.; Ahmed, H.M.S.; Khan, M.S.; Hussein, M. Revolutionizing stock market predictions in emerging markets: An in-depth examination of multilayer perceptron artificial neural networks empowered by technical indicators on the NIFTY IT Index. SSRN, 2024. [CrossRef]
- Atsalakis, G.S.; Valavanis, K.P. Forecasting stock market short-term trends using a neuro-fuzzy based methodology. Expert Systems with Applications 2009, 36, 10696–10707. [Google Scholar] [CrossRef]
- Lendasse, A.; de Bodt, E.; Wertz, V.; Verleysen, M. Non-linear financial time series forecasting – Application to the Bel 20 stock market index. European Journal of Economic and Social Systems 2000, 14, 81–91. [Google Scholar] [CrossRef]
- De Oliveira, F.A.; Nobre, C.N.; Zarate, L.E. Applying Artificial Neural Networks to prediction of stock price and improvement of the directional prediction index – Case study of PETR4, Petrobras, Brazil. Expert Systems with Applications 2013, 40, 7596–7606. [Google Scholar] [CrossRef]
- Mishra, R.G.; Sharma, D.; Gadhavi, M.; Pant, S.; Kumar, A. A Deep Reinforcement Learning Framework for Strategic Indian NIFTY 50 Index Trading. AI 2025, 6, 183. [Google Scholar] [CrossRef]
- Altay, E.; Satman, M.H. Stock market forecasting: Artificial neural networks and linear regression comparison in an emerging market. Journal of Financial Management and Analysis 2005, 18, 18–33. [Google Scholar]
- Yongchareon, S. AI-Driven Intelligent Financial Forecasting: A Comparative Study of Advanced Deep Learning Models for Long-Term Stock Market Prediction. Mach. Learn. Knowl. Extr. 2025, 7, 61. [Google Scholar] [CrossRef]
- Zhang, G.; Patuwo, B.E.; Hu, M.Y. Forecasting with artificial neural networks: The state of the art. International Journal of Forecasting 1998, 14, 35–62. [Google Scholar] [CrossRef]
- Ralević, N.M.; Djaković, V.Dj.; Andjelić, G.B.; Kovačević, I.M.; Kiurski, J.S.; Čomić, L.Lj. Fuzzy prediction based on regression models: Evidence from the Belgrade Stock Exchange – Prime market and graphic industry. In Proceedings of the 2011 IEEE Int. Symposium on Intelligent Systems and Informatics (SISY), Subotica, Serbia, 08-10 September 2011. [Google Scholar] [CrossRef]
- Petrović, M. Estimating the movement of BELEX15 index values using the ARIMA model. Journal of Process Management – New Technologies 2020, 8, 1–11. [Google Scholar] [CrossRef]
- Jakšić, M.; Milanović, M.; Stojković, D. Short-term forecasting of BELEXline and BELEX15 movements. Facta Universitatis: Series Economics and Organization 2020, 17, 87–96. [Google Scholar] [CrossRef]
- Zivkovic, A. Forecast of Belex15 and Belexline movement using ARIMA model. Economic Analysis 2022, 55, 90–104. [Google Scholar] [CrossRef]
- Chang, Y.-H.; Huang, C.-W. Utilizing Genetic Algorithms in Conjunction with ANN-Based Stock Valuation Models to Enhance the Optimization of Stock Investment Decisions. AI 2024, 5, 1011–1029. [Google Scholar] [CrossRef]
- Belgrade Stock Exchange – Belex15 historical data. Available online: https://www.belex.rs/eng/trgovanje/indeksi/belex15/istorijski. (accessed on 21-09-2025).
- Sagaceta-Mejía, A.R.; Sánchez-Gutiérrez, M.E.; Fresán-Figueroa, J.A. An intelligent approach for predicting stock market movements in emerging markets using optimized technical indicators and neural networks. Economics 2024, 18, 20220073. [Google Scholar] [CrossRef]

| Year | Increase | % | Decrease | % | Total |
|---|---|---|---|---|---|
| 2006 | 148 | 59.7 | 100 | 40.3 | 248 |
| 2007 | 130 | 51.8 | 121 | 48.2 | 251 |
| 2008 | 88 | 34.6 | 166 | 65.4 | 254 |
| 2009 | 121 | 47.6 | 133 | 52.4 | 254 |
| 2010 | 129 | 51.4 | 122 | 48.6 | 251 |
| 2011 | 121 | 47.8 | 132 | 52.2 | 253 |
| 2012 | 117 | 46.6 | 134 | 53.4 | 251 |
| 2013 | 136 | 54.0 | 116 | 46.0 | 252 |
| 2014 | 133 | 52.8 | 119 | 47.2 | 252 |
| 2015 | 122 | 48.4 | 130 | 51.6 | 252 |
| 2016 | 134 | 53.0 | 119 | 47.0 | 253 |
| 2017 | 129 | 51.2 | 123 | 48.8 | 252 |
| 2018 | 123 | 49.0 | 128 | 51.0 | 251 |
| 2019 | 133 | 52.8 | 119 | 47.2 | 252 |
| 2020 | 126 | 50.0 | 126 | 50.0 | 252 |
| 2021 | 135 | 53.8 | 116 | 46.2 | 251 |
| 2022 | 133 | 53.2 | 117 | 46.8 | 250 |
| 2023 | 133 | 53.6 | 115 | 46.4 | 248 |
| 2024 | 149 | 59.4 | 102 | 40.6 | 251 |
| Total | 2,480 | 51.2 | 2,365 | 48.8 | 4,845 |
| Name of indicator | Formula |
|---|---|
| Closing price / simple 10-day moving average |
|
| Closing price / day-weighted 10-day moving average |
|
| Closing price / 5-day VWAP (Volume Weighted Average Price) | |
| 10-day momentum rate of change | |
| 2-day momentum rate of change | |
| Stochastic %K | |
| Stochastic %D | |
| RSI (Relative Strength Index) | |
| MACD (Moving Average Convergence Divergence) |
|
| A/D (Accumulation/Distribution) Oscillator | |
| CCI (Commodity Channel Index) |
| Feature | Max | Min | Mean | Standard deviation |
|---|---|---|---|---|
| Ct / simple MA | 1.199 | 0.859 | 1.000 | 0.024 |
| Ct / day-weighted MA | 1.179 | 0.889 | 1.000 | 0.017 |
| Ct / VWAP | 1.237 | 0.892 | 0.999 | 0.015 |
| 10-day momentum | 0.492 | -0.217 | 0.001 | 0.045 |
| 2-day momentum | 0.227 | -0.152 | 0.000 | 0.017 |
| Stochastic %K | 100 | 0 | 48.501 | 30.102 |
| Stochastic %D | 98.229 | 1.243 | 48.508 | 28.263 |
| RSI | 100 | 0 | 48.219 | 23.407 |
| MACD | 230.14 | -147.187 | -1.691 | 39.435 |
| A/D Oscillator | 7.185 | -2.791 | 0.47 | 0.606 |
| CCI | 287.185 | -269.617 | -0.502 | 110.35 |
| Target | 12.93 | -10.29 | 0.009 | 1.083 |
| Parameter | Level |
|---|---|
| Training function | BFGS quasi-Newton, Bayesian regulation, Conjugate gradient with Powell-Beale restarts, Conjugate gradient with Fletcher-Reeves updates, Conjugate gradient with Polak-Ribiére updates, Levenberg-Marquardt, One-step secant, Resilient, Sequential order incremental training with learning functions, Scaled conjugate gradient |
| Hidden neurons (n) | Phase 1: 10, 15, 23, 35, 50, 75, 90 Phase 2 (classification): 40, 45, …, 135 Phase 2 (prediction): 25, 30, …, 135 |
| Initial μ (Phase 3) | 0.0000016, 0.000008, 0.00004, 0.0002, 0.001, 0.005, 0.025 |
| Max validation failures (Phase 3) |
3, 4, 5, 6, 7, 10, 15, 20, 30, 40, 50, 60 |
| Max epochs | 10,000 (Phase 1-2), 20,000 (Phase 3) |
| Minimum performance gradient | 1e-7 |
| No | Training function | n | Initial μ | Max Fails | Performance (%) |
|---|---|---|---|---|---|
| 1 | Levenberg-Marquardt | 60 | 0.001 | 6 | 90.85 |
| 2 | Levenberg-Marquardt | 60 | 0.005 | 7 | 90.05 |
| 3 | Levenberg-Marquardt | 80 | 0.001 | 6 | 89.65 |
| Parameter Combination (n; Initial μ; Max Fails) | Train (%) | Validation (%) | Test (%) |
|---|---|---|---|
| (60; 0.001; 6) | 68.28 | 66.10 | 70.60 |
| (60; 0.005; 7) | 71.23 | 69.01 | 71.39 |
| (80; 0.001; 6) | 76.06 | 65.30 | 70.60 |
| Author(s) | Market (Index) | Model | Performance (%) |
|---|---|---|---|
| Altay and Satman, 2005 [37] | ISE 100 | BPN | 57.8 |
| Atsalakis and Valavanis, 2009 [33] | ASE & NYSE | ANFIS | 68.33 1 |
| Diler, 2003 [13] | ISE 100 | BPN | 60.81 |
| Doeksen et al., 2005 [24] | NYSE | M-FIS | 53.31 |
| TS-FIS | 56 | ||
| Fernandez-Rodriguez et al., 2000 [14] | Madrid | ANN | 58 |
| Halliday, 2004 [15] | NYSE | ANN | 55.57 |
| Harvey et al., 2000 [16] | NYSE | ANN | 59 |
| Kara et al., 2011 [6] | ISE 100 | BPN | 75.74 |
| Kim and Han, 2000 [7] | Korea | ANN BPLT | 51.81 |
| ANN GALT | 50.6 | ||
| ANN GAFD | 61.7 | ||
| Lendasse et al., 2000 [34] | Belgium Bel 20 | RBFN | 57.2 |
| Lin et al., 2002 [22] | Various | Regression | 52.47 |
| Garch_M | 52.83 | ||
| ANN | 55.77 | ||
| Neuro-fuzzy | 58.03 | ||
| Perez-Cruz et al., 2003 [26] | Madrid | SVM | 57 |
| Zhang et al., 1998 [39] | Shanghai | ANN | 56.3 |
| Kara et al. (comparison) | BELEX15 | BPN | 47.8 |
| Proposed model | BELEX15 | ANN | 71.39 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).