Fusion: Practice and Applications

Journal DOI

https://doi.org/10.54216/FPA

Submit Your Paper

2692-4048ISSN (Online) 2770-0070ISSN (Print)

Volume 21 , Issue 2 , PP: 241-258, 2026 | Cite this article as | XML | Html | PDF | Full Length Article

Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study

Ali Subhi Alhumaima 1 , Wisam Hayder Mahdi 2 , Marwa M. Eid 3 , El-Sayed M. El-Kenawy 4 *

  • 1 Electronic Computer Center, University of Diyala, Diyala, Iraq - (alhumaimaali@uodiyala.edu.iq)
  • 2 Department of communications, College of Engineering, University of Diyala, Diyala, Iraq - (wisam_haider@uodiyala.edu.iq)
  • 3 Faculty of Artificial Intelligence, Delta University for Science and Technology, Mansoura, Egypt; Jadara Research Center, Jadara University, Irbid 21110, Jordan - (mmm@ieee.org)
  • 4 Department of Communications and Electronics, Delta Higher Institute of Engineering and Technology, Mansoura, 35111, Egypt; Applied Science Research Center. Applied Science Private University, Amman, Jordan - (skenawy@ieee.org)
  • Doi: https://doi.org/10.54216/FPA.210216

    Received: February 11, 2025 Revised: May 27, 2025 Accepted: July 29, 2025
    Abstract

    The complex nature, non-linear dynamics, and inherent volatility of stock markets make it difficult to provide accurate predictions. Recent developments in the area have shown the efficiency of some machine learning methodologies in predicting financial stock prices. However, emerging markets, such as Iraq, face additional challenges due to the lack of fundamental data needed to support predictive analysis. In this study, we present a novel framework that focuses on overcoming this issue and predicting the next-day closing prices of the Iraq Stock Exchange (ISX) main index, using only available historical closing prices to engineer 12 technical indicators. The goal is to compensate for the lack of important Open, High, and Low prices data while improving prediction accuracy. We used four machine-learning algorithms in the form of Random Forest (RF), Support Vector Machine (SVM), Artificial Neural Network (ANN), and K-Nearest Neighbor (KNN), which were optimized using grid search hyperparameter tuning technique. The performance of the models was evaluated using Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and Coefficient of Determination (R²). The comparison analysis resulted in the SVM with the linear kernel yielding the best performance (RMSE = 16.25, MAPE = 1.15, R² = 0.989), followed closely by the ANN (RMSE = 18.25), RF (RMSE = 26.76), then KNN (RMSE = 55.77). The current study introduces two main contributions: (1) the feasibility of using engineered features to achieve reliable predictions in markets with incomplete data, and (2) the critical role of using hyperparameter optimization to enhance models accuracy. The framework we propose provides a practical model for predicting stock prices in resource-constrained emerging markets.

    Keywords :

    Stock market prediction , Emerging markets , Feature engineering , Technical indicators , Hyperparameter tuning , Iraq Stock Exchange (ISX) , Support Vector Machine (SVM) , Machine learning optimization , Time series prediction

    References

    [1]       G. Sonkavde et al., "Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion of Implications," Int. J. Financial Stud., vol. 11, no. 3, p. 94, Jul. 2023.

     

    [2]       Y. Ma, R. Han, and W. Wang, "Portfolio optimization with return prediction using deep learning and machine learning," Expert Syst. Appl., vol. 165, p. 113973, Mar. 2021.

     

    [3]       W. Chen, H. Zhang, M. K. Mehlawat, and L. Jia, "Mean–variance portfolio optimization using machine learning-based stock price prediction," Appl. Soft Comput., vol. 100, p. 106943, Mar. 2021.

     

    [4]       D. M. Teixeira and R. S. Barbosa, "Stock Price Prediction in the Financial Market Using Machine Learning Models," Computation, vol. 13, no. 1, p. 3, Dec. 2024.

     

    [5]       S. Abolmakarem, F. Abdi, K. Khalili-Damghani, and H. Didehkhani, "A multi-stage machine learning approach for stock price prediction: Engineered and derivative indices," Intell. Syst. Appl., vol. 24, p. 200449, Dec. 2024.

     

    [6]       M. Mehtab and S. Sen, "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Intell. Syst. Appl., vol. 15, 2022, Art. no. 200085.

     

    [7]       K. R. S. Preethaa et al., "A Comprehensive Review on Machine Learning Techniques for Forecasting Wind Flow Pattern," Sustainability, vol. 15, no. 17, p. 12914, Aug. 2023.

     

    [8]       M. Vijh, D. Chandola, V. A. Tikkiwal, and A. Kumar, "Stock Closing Price Prediction using Machine Learning Techniques," Procedia Comput. Sci., vol. 167, pp. 599–606, 2020.

     

    [9]       M. Nabipour et al., "Deep Learning for Stock Market Prediction," Entropy, vol. 22, no. 8, p. 840, Jul. 2020.

     

    [10]    R. Kumar, P. Kumar, and Y. Kumar, "Analysis of Financial Time Series Forecasting using Deep Learning Model," in Proc. 11th Int. Conf. Cloud Comput., Data Sci. Eng. (Confluence), 2021, pp. 877–881.

     

    [11]    P. K. Illa, B. Parvathala, and A. K. Sharma, "Stock price prediction methodology using random forest algorithm and support vector machine," Mater. Today: Proc., vol. 56, pp. 1776–1782, 2022.

     

    [12]    G. R. Naufal and A. Wibowo, "Time Series Forecasting Based on Deep Learning CNN-LSTM-GRU Model on Stock Prices," Int. J. Eng. Trends Technol., vol. 71, no. 6, pp. 126–133, Jun. 2023.

     

    [13]    P. Mazzarisi, "A machine learning approach to support decision in insider-trading surveillance," EPJ Data Sci., 2024.

     

    [14]    A.-H. Al-Shamery and P. D. E. S. Al-Shamery, "Prediction of Iraqi Stock Exchange using Optimized Based-Neural Network," Karbala Int. J. Mod. Sci., vol. 7, no. 4, Dec. 2021.

     

    [15]    S. H. AlHakeem, N. J. Al-Anber, and H. A. Atee, "Iraqi Stock Market Prediction Using Hybrid LSTM and CNN Algorithm," in Proc. Fifth Coll. Sci. Int. Conf. Recent Trends Inf. Technol. (CSCTIT), 2022, pp. 86–92.

     

    [16]    S. H. AlHakeem, N. J. Al-Anber, and H. A. Atee, "Iraqi Stock Market Prediction using Proposed Model of Convolution Neural Network," J. Comput. Sci., vol. 18, no. 5, pp. 350–358, May 2022.

     

    [17]    S. H. AlHakeem, N. J. Al-Anber, and H. A. Atee, "Iraqi Stock Market Prediction Using Artificial Neural Network and Long Short-Term Memory," J. Tech., vol. 5, no. 1, pp. 9–15, Mar. 2023.

     

    [18]    Gupta, R. Kumar, and S. Singh, "Stock Price Prediction Using Hybrid Machine Learning Techniques: A Comparative Study," J. Financial Data Sci., vol. 6, no. 2, pp. 45-62, 2023.

     

    [19] Iraq Stock Exchange, "Trading Session 30-April-2023," 2023. [Online]. Available: https://www.isx-iq.net

     

    [20] J. Ramadhan et al., "Yield forecast of sugarcane using two different techniques in discriminant function analysis," BIO Web Conf., vol. 97, Art. no. 00064, 2024.

     

    [21]    E. Antunes et al., "Application of biochar for emerging contaminant mitigation," Adv. Chem. Pollut., Environ. Manag. Prot., vol. 7, pp. 65–91, 2021.

     

    [22]    J. Ramadhan et al., "Use of Random Forest Regression Model for Forecasting Food and Commercial Crops of India," BIO Web Conf., vol. 97, Art. no. 00130, 2024.

     

    [23]    H. Alkattan et al., "Data mining utilizing various leveled clustering procedures on the position of workers in a data innovation firm," Mesopotamian J. Comput. Sci., vol. 2024, pp. 104–109, Jul. 2024.

     

    [24]    H. Wang et al., "Taxonomy research of artificial intelligence for deterministic solar power forecasting," Energy Convers. Manag., vol. 214, p. 112909, Jun. 2020.

     

    [25]    H. Alkattan et al., "Hybrid model for forecasting temperature in Khartoum based on CRU data," Mesopotamian J. Big Data, vol. 2024, pp. 164–174, Aug. 2024.

     

    [26]    C. Bowman et al., "Physics-Informed Neural Networks for the Heat Equation with Source Term under Various Boundary Conditions," Algorithms, vol. 16, no. 9, 2023.

     

    [27]    J. Liu, X. Zhang, L. Wang et al., "A hybrid interpretable deep structure based on adaptive neuro-fuzzy inference system, decision tree, and K-means for intrusion detection," Sci. Rep., vol. 12, 2022.

     

    [28]    P. Whig, R. Remala, K. R. Mudunuru, and S. J. Quraishi, "Integrating AI and Quantum Technologies for Sustainable Supply Chain Management," in Quantum Comput. Supply Chain Manag.: A New Era Optim., IGI Global, 2024.

     

    [29]    F. Phillipson, "Quantum Computing in Logistics and Supply Chain Management ‒ An Overview," arXiv preprint arXiv: 2402.17520, 2024.

     

    [30]    "Damascus Securities Exchange Weighted Index," 2021. [Online]. Available: https://en.wikipedia.org/wiki/Damascus_Securities_Exchange.

    Cite This Article As :
    Subhi, Ali. , Hayder, Wisam. , M., Marwa. , M., El-Sayed. Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study. Fusion: Practice and Applications, vol. , no. , 2026, pp. 241-258. DOI: https://doi.org/10.54216/FPA.210216
    Subhi, A. Hayder, W. M., M. M., E. (2026). Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study. Fusion: Practice and Applications, (), 241-258. DOI: https://doi.org/10.54216/FPA.210216
    Subhi, Ali. Hayder, Wisam. M., Marwa. M., El-Sayed. Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study. Fusion: Practice and Applications , no. (2026): 241-258. DOI: https://doi.org/10.54216/FPA.210216
    Subhi, A. , Hayder, W. , M., M. , M., E. (2026) . Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study. Fusion: Practice and Applications , () , 241-258 . DOI: https://doi.org/10.54216/FPA.210216
    Subhi A. , Hayder W. , M. M. , M. E. [2026]. Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study. Fusion: Practice and Applications. (): 241-258. DOI: https://doi.org/10.54216/FPA.210216
    Subhi, A. Hayder, W. M., M. M., E. "Predicting Next-Day Closing Prices in Emerging Stock Markets Using Machine Learning Framework and Engineered Features—Iraq as a Case Study," Fusion: Practice and Applications, vol. , no. , pp. 241-258, 2026. DOI: https://doi.org/10.54216/FPA.210216