Machine Learning for Real-Time Stock Market Trend Prediction in Bangladesh: A 25-Year Comprehensive Analysis of Dhaka Stock Exchange with Web Application Deployment

Authors

  • Rakib Hasan Department of Computer Science and Engineering, Daffodil International University, Birulia, Savar, Dhaka 1216, Bangladesh https://orcid.org/0000-0002-8496-3829
  • Marjan Akter Badhon Department of Finance and Banking, National University of Bangladesh, Board Bazar,Gazipur https://orcid.org/0009-0009-4364-9321
  • Mahmudul Hassan Maruf Department of Finance and Banking, National University of Bangladesh, Board Bazar,Gazipur https://orcid.org/0009-0004-1765-4948
  • Sourov Ahmed Department Of Finance and Banking, National University of Bangladesh, Board Bazar,Gazipur https://orcid.org/0009-0001-4045-3683
  • Sanimul Hossain Sanzit Department of Computer Science and Engineering, Daffodil International University, Birulia, Savar, Dhaka 1216, Bangladesh https://orcid.org/0009-0006-8021-7323

DOI:

https://doi.org/10.38124/ijsrmt.v5i2.1240

Keywords:

Stock Trend Prediction, Machine Learning, Dhaka Stock Exchange, Ensemble Learning, Real-Time Financial Analytics

Abstract

Accurate prediction of stock market trends remains a daunting challenge, particularly in high-volatility and structurally changing emerging economies. This paper presents a comprehensive model for binary day-to-day Dhaka Stock Exchange movement classification specifically up or down, using a 25-year historical data set from January 2000 to February 2025. We developed a comprehensive feature engineering pipeline that constructs lagged prices, price variations, daily returns, rolling means and volatilities over several horizons, momentum factors, exponential moving averages, volume lags, and calendarbased features. Three state-of-the-art tree-based classification algorithms, Random Forest, XGBoost, and LightGBM, were trained and hyperparameter-tuned under the strict time-series split cross-validation scheme to ensure temporal consistency and prevent leakage. Model hyperparameters were optimized with domain-specific tuning of tree depth, regularization coefficients, learning rates, and sampling schemes. Average cross-validated test accuracies of 85.20 percent for Random Forest, 85.42 percent for XGBoost, and 85.69 percent for LightGBM demonstrate the effectiveness of gradient boosting methods in recognizing nonlinear market trends, while weighted soft-voting ensemble also smoothed the predictions to 85.68 percent accuracy with balanced precision–recall curves. Feature importance findings reveal that rolling volatilities and momentum features have most substantial effects, impacting predictive performance. Our analysis indicates that LightGBM offers the best accuracy, computational complexity, and stability tradeoff while the ensemble offers incremental progress through complementary strengths of models. This paper fills an important gap in long-term, ensemble-based trend forecasting for the DSE. To demonstrate practical applicability, we deployed the LightGBM model (chosen for its optimal performanceefficiency tradeoff) in a production-ready web application that provides real-time trend predictions through a RESTful API and interactive interface.

Downloads

Download data is not yet available.

Downloads

Published

2026-02-26

How to Cite

Hasan, R., Badhon, M. A., Maruf, M. H., Ahmed, S., & Sanzit, S. H. (2026). Machine Learning for Real-Time Stock Market Trend Prediction in Bangladesh: A 25-Year Comprehensive Analysis of Dhaka Stock Exchange with Web Application Deployment. International Journal of Scientific Research and Modern Technology, 5(2), 45–61. https://doi.org/10.38124/ijsrmt.v5i2.1240

PlumX Metrics takes 2–4 working days to display the details. As the paper receives citations, PlumX Metrics will update accordingly.

Similar Articles

<< < 1 2 3 4 5 6 7 8 9 10 > >> 

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