Prediction of Capital Market Trends in Volatile Periods through Modeling Investors’ Financial Behavior Based on a Genetic Algorithm

Authors

    Iman Hedayati PhD student, Department of Accounting, Bo.c., Islamic Azad University ,Borujerd, Iran
    Alireza Ghiyasvand * Assistant professor, Department of Accounting , Bo.c. Islamic Azad University, Borujerd,Iran 4130700286@iau.ac.ir
    Farid Sefaty Assistant professor, Department of Accounting, Bo.c., Islamic Azad University, Borujerd, Iran

Keywords:

investors’ financial behavior, capital market trend prediction, genetic algorithm, structural equation modeling, volatile periods, Tehran Stock Exchange, behavioral finance, machine learning

Abstract

The present study was conducted with the aim of designing a comprehensive framework for modeling investors’ financial behavior under conditions of volatility in the Iranian capital market and forecasting future market trends using a genetic algorithm. This research adopted a sequential exploratory mixed-methods approach. In the qualitative phase, in-depth interviews were conducted with 20 academic experts and capital market practitioners, and the components of financial behavior were identified using the grounded theory method. In the quantitative phase, a researcher-developed questionnaire was distributed among 350 active investors in the Tehran Stock Exchange during the second half of 2024. Data analysis was performed using structural equation modeling and a genetic algorithm. The results of path analysis indicated that all five research hypotheses were confirmed at a 99% confidence level. Trading strategy, with a path coefficient of β = 0.42, had the strongest effect on investors’ financial behavior, followed by risk-taking (β = 0.34), reaction to volatility (β = 0.28), and liquidity and trading volume (β = 0.19). The most significant finding of the study was the very strong effect of financial behavior on market trend prediction, with a path coefficient of β = 0.68. The structural model fit indices, including GFI = 0.92, CFI = 0.94, NFI = 0.91, and RMSEA = 0.047, were all within acceptable ranges. The coefficient of determination for financial behavior was obtained as 0.68, indicating strong explanatory power of the model. The optimization results using the genetic algorithm showed that prediction accuracy improved from 78.5% to 89.2%, and the mean squared error decreased by 45.2%. The genetic algorithm was able to predict future capital market trends based on investors’ financial behavior with an accuracy of 96%. By developing an integrated and simulation-based framework for modeling investors’ financial behavior, this study demonstrated that the integration of behavioral variables with evolutionary algorithms can significantly enhance the accuracy of capital market trend prediction. The findings confirmed that investors’ financial behavior plays a decisive role in future market developments, and that trading strategy is the most influential factor shaping financial behavior during volatile periods. These results have important practical implications for capital market policymakers, portfolio managers, and investors, suggesting that the combined use of machine learning, evolutionary algorithms, and behavioral data can provide a more efficient framework for risk management and investment decision-making.

References

[1] R. J. Shiller, Irrational Exuberance. Princeton University Press, 2000.

[2] G. Bekaert and G. Wu, "Asymmetric Volatility and Risk in Equity Markets," Review of Financial Studies, vol. 13, no. 1, pp. 1-42, 2000, doi: 10.1093/rfs/13.1.1.

[3] A. Ang and J. Chen, "Asymmetric Correlations of Equity Portfolios," Journal of Financial Economics, vol. 63, no. 3, pp. 443-494, 2002, doi: 10.1016/S0304-405X(02)00068-5.

[4] G. Bekaert, M. Hoerova, and M. Lo Duca, "Risk, Uncertainty and Monetary Policy," Journal of Monetary Economics, vol. 60, no. 7, pp. 771-788, 2013, doi: 10.1016/j.jmoneco.2013.06.003.

[5] M. Baker and J. Wurgler, "Investor Sentiment and the Cross-Section of Stock Returns," Journal of Finance, vol. 61, no. 4, pp. 1645-1680, 2006, doi: 10.1111/j.1540-6261.2006.00885.x.

[6] T. J. Chang, N. Meade, J. E. Beasley, and Y. M. Sharaiha, "Heuristics for Cardinality Constrained Portfolio Optimisation," Computers & Operations Research, vol. 27, no. 13, pp. 1271-1302, 2000, doi: 10.1016/S0305-0548(99)00074-X.

[7] B. Saadatzadeh Hesar, R. Abdi, H. Mohammadzadeh Salteh, and M. Narimani, "Investigating the Relationship between Cognitive Bias in Investor Behavior and Stock Price Volatility," Financial Economics, vol. 15, no. 56, pp. 303-320, 2021, doi: 10.30495/fed.2021.687880.

[8] V. Farmanara, A. Komijani, A. Farzinvash, and F. Ghaffari, "The Role of the Capital Market in Financing and Economic Growth: A Case Study of Iran and Selected Developing Countries," Financial Economics, vol. 13, no. 47, pp. 19-37, 2019. [Online]. Available: https://sid.ir/paper/229015/fa.

[9] Y. Dadgar and B. Varmazyari, "An Empirical Test of Stability, Predictability, and Volatility in the Capital Markets of Persian Gulf Countries," Economic Modeling, vol. 5, no. 16, pp. 1-20, 2011. [Online]. Available: https://journals.iau.ir/article_555499.html.

[10] F. Fernandez-Rodriguez, C. Gonzalez-Martel, and S. Sosvilla-Rivero, "On the Profitability of Technical Trading Rules Based on Artificial Neural Networks: Evidence from the Madrid Stock Market," Economics Letters, vol. 69, no. 1, pp. 89-94, 2000, doi: 10.1016/S0165-1765(00)00270-6.

[11] E. C. Chang, J. W. Cheng, and A. Khorana, "An Examination of Herd Behavior in Equity Markets: An International Perspective," Journal of Banking & Finance, vol. 24, no. 10, pp. 1651-1679, 2000, doi: 10.1016/S0378-4266(99)00096-5.

[12] M. Zamani, A. Afsar, S. Saghafinejad, and A. Bayat, "An Expert System for Stock Price Prediction and Portfolio Optimization Using Fuzzy Neural Networks, Fuzzy Modeling, and Genetic Algorithm," Financial Engineering and Securities Management, vol. 5, no. 21, pp. 107-130, 2014. [Online]. Available: https://www.sid.ir/paper/197688/fa.

[13] M. Salemi Najafabadi, N. Saadatfar, and F. Karimi, "Predicting the Return of Investment Opportunities in Iranian Financial Markets Considering Market Interactions and Forming an Optimal Investment Portfolio Using Artificial Intelligence," Asset Management and Financing, vol. 2, no. 4, pp. 35-50, 2014. [Online]. Available: https://amf.ui.ac.ir/article_19897.html.

[14] B. Kelly and D. Xiu, "Financial Machine Learning," Foundations and Trends in Finance, vol. 13, no. 3-4, pp. 205-363, 2023, doi: 10.1561/500000064.

[15] C. Krauss, X. A. Do, and N. Huck, "Deep Neural Networks, Gradient-Boosted Trees, Random Forests: Statistical Arbitrage on the S&P 500," European Journal of Operational Research, vol. 259, no. 2, pp. 689-702, 2017, doi: 10.1016/j.ejor.2016.10.031.

[16] A. T. Oyewole, O. B. Adeoye, W. A. Addy, C. C. Okoye, O. C. Ofodile, and C. E. Ugochukwu, "Predicting Stock Market Movements Using Neural Networks: A Review and Application Study," Computer Science & IT Research Journal, vol. 5, no. 3, pp. 651-670, 2024, doi: 10.51594/csitrj.v5i3.912.

[17] O. F. Okoh and I. Grace, "Mathematical Modeling and Machine Learning for Economic Forecasting: A Hybrid Approach to Predicting Market Trends," Acta Electronica Malaysia, vol. 6, no. 1, pp. 7-15, 2022, doi: 10.26480/aem.01.2022.07.15.

[18] M. M. H. Sizan et al., "AI-Enhanced Stock Market Prediction: Evaluating Machine Learning Models for Financial Forecasting in the USA," Journal of Business and Management Studies, vol. 5, no. 4, pp. 152-166, 2023, doi: 10.32996/jbms.2023.5.4.16.

[19] H. Kadiri, H. Oukhouya, and K. Belkhoutout, "A Comparative Study of Hybrid and Individual Models for Predicting the Moroccan MASI Index: Integrating Machine Learning and Deep Learning Approaches," Scientific African, vol. 28, p. e02671, 2025, doi: 10.1016/j.sciaf.2025.e02671.

[20] A. Taslimpour, G. Askarzadeh, K. Ghalmagh, and H. Nasiri, "Predicting the Tehran Stock Exchange Overall Index Using the NARX Neural Network Model," Asset Management and Financing, vol. 14, no. 1, pp. 21-48, 2026, doi: 10.22108/amf.2025.143461.1940.

[21] A. Ghasempour, A. Khodamipour, H. Zeinali, and A. Taebi Naghondari, "Designing an Optimal Model for Predicting Stock Liquidity through the Random Forest Model," Journal of Accounting Knowledge, vol. 17, no. 1, pp. 1-30, 2025. [Online]. Available: https://jak.uk.ac.ir/article_5079.html.

[22] G. Zakhidov, "Economic Indicators: Tools for Analyzing Market Trends and Predicting Future Performance," International Multidisciplinary Journal of Universal Scientific Prospectives, vol. 2, no. 3, pp. 23-29, 2024. [Online]. Available: https://www.scirp.org/reference/referencespapers?referenceid=3897171.

[23] S. H. Chen and C. H. Yeh, "Evolving Traders and the Business School with Genetic Programming: A New Architecture of the Agent-Based Artificial Stock Market," Journal of Economic Dynamics and Control, vol. 25, no. 3-4, pp. 363-393, 2001, doi: 10.1016/S0165-1889(00)00030-0.

[24] M. Dolu and T. Heidari, "Stock Index Prediction Using a Combination of Artificial Neural Networks and Metaheuristic Models of Harmony Search and Genetic Algorithm," Financial Economics, vol. 11, no. 40, pp. 1-24, 2017. [Online]. Available: https://journals.iau.ir/article_539814.html.

[25] O. M. Salih Hassan and S. A. Saleh, "Comprehensive Analysis of Recent Studies on Using Genetic Algorithms for Optimizing Solutions to the 0/1 Knapsack Problem," European Journal of Applied Science, Engineering and Technology, vol. 3, no. 2, pp. 74-90, 2025. [Online]. Available: https://www.ejaset.com.

[26] J. Bollen, H. Mao, and X. Zeng, "Twitter Mood Predicts the Stock Market," Journal of Computational Science, vol. 2, no. 1, pp. 1-8, 2011, doi: 10.1016/j.jocs.2010.12.007.

[27] J. Gao, C. Fan, T. Liu, X. Bai, W. Li, and H. Tan, "Embracing Market Dynamics in the Post-COVID Era: A Data-Driven Analysis of Investor Sentiment and Behavioral Characteristics in Stock Index Futures Returns," Omega, vol. 131, p. 103193, 2025, doi: 10.1016/j.omega.2024.103193.

[28] Y. Sun, Q. Jin, Q. Cheng, and K. Guo, "New Tool for Stock Investment Risk Management: Trend Forecasting Based on Individual Investor Behavior," Industrial Management & Data Systems, vol. 120, no. 2, pp. 388-405, 2020, doi: 10.1108/IMDS-03-2019-0125.

[29] I. Akin and M. Akin, "Behavioral Finance Impacts on US Stock Market Volatility: An Analysis of Market Anomalies," Behavioural Public Policy, pp. 1-25, 2024, doi: 10.1017/bpp.2024.13.

[30] F. A. Longstaff, "The Subprime Credit Crisis and Contagion in Financial Markets," Journal of Financial Economics, vol. 97, no. 3, pp. 436-450, 2010, doi: 10.1016/j.jfineco.2010.01.002.

[31] C. H. Hommes, "Heterogeneous Agent Models in Economics and Finance," in Handbook of Computational Economics, vol. 2, L. Tesfatsion and K. L. Judd Eds.: Elsevier, 2006, pp. 1109-1186.

Downloads

Published

2027-01-01

Submitted

2025-12-24

Revised

2026-04-23

Accepted

2026-04-30

Issue

Section

Articles

How to Cite

Hedayati, I. ., Ghiyasvand, A., & Sefaty, F. (2027). Prediction of Capital Market Trends in Volatile Periods through Modeling Investors’ Financial Behavior Based on a Genetic Algorithm. Business, Marketing, and Finance Open, 1-17. https://bmfopen.com/index.php/bmfopen/article/view/426

Similar Articles

1-10 of 253

You may also start an advanced similarity search for this article.