Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM65412
Volume:
10 |
6 |
Jun 2026
Pages:
1-7
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Computer Engineering
Zeal College of Engineering and Research
Department of Computer Engineering
Zeal College of Engineering and Research
Department of Computer Engineering
Zeal College of Engineering and Research
Department of Computer Engineering
Zeal College of Engineering and Research
Predicting stock market behavior remains one of the most challenging problems in applied machine learning due to the volatile, non-stationary, and noisy nature of financial time series. This paper presents an end-to-end web-based system for stock price forecasting and trading signal generation, built using a hybrid machine learning pipeline. Historical Open-High-Low-Close-Volume (OHLCV) data is transformed into a set of scale-invariant technical features, including momentum returns, RSI, MACD percentage, and Bollinger Band position, to address the non-stationarity of raw price series. Three regression models — Random Forest, XGBoost, and a custom Long Short-Term Memory (LSTM) network — are trained and evaluated using walk-forward time-series cross-validation, while a Logistic Regression classifier independently votes on price direction. A BUY or SELL signal is issued only when the best-performing regressor and the classifier agree, and a quality gate based on cross-validated R² prevents underperforming models from being deployed for live predictions. The system is implemented using Python, Django, scikit-learn, XGBoost, and PyTorch, with a web interface for configuring forecasts, visualizing results, and tracking historical prediction accuracy. The system was evaluated end-to-end on two instruments — Costco (COST) and the S&P 500 ETF (SPY) — with results showing the LSTM consistently outperforming tree-based models, and a directional classifier that performed near chance level on COST but meaningfully above chance on SPY, highlighting both the system's robustness and the instrument-dependent limits of return predictability.
KEYWORDS
This paper presented a complete machine learning pipeline for stock price forecasting and trading signal generation, combining classical ensemble models (Random Forest, XGBoost) with a deep learning sequence model (LSTM) and a Logistic Regression classifier within a single, quality-gated system. Scale-invariant feature engineering, walk-forward cross-validation, and an explicit minimum-quality threshold collectively address common pitfalls in financial machine learning, including non-stationarity, data leakage, and the deployment of unreliable models. End-to-end evaluation on two instruments — COST and SPY — showed the LSTM consistently outperforming both tree-based models on regression error metrics, while the directional classifier and backtest results diverged sharply between the two instruments: near-chance performance on the individual equity (COST) versus a meaningfully profitable backtest on the diversified index fund (SPY). This finding underscores that the reliability of machine-learning-driven trading signals is not uniform across instruments, even when the underlying model architecture and feature pipeline are held constant — reinforcing the value of the system's transparent, per-stock accuracy and backtest reporting over a one-size-fits-all reliability claim. As with all approaches to stock price prediction, the system's predictive power remains bounded by the inherent unpredictability of financial markets; no model in this study, nor in the broader literature, eliminates this fundamental limitation. Future work includes extending the evaluation to a larger universe of stocks across multiple sectors, integrating sentiment analysis from news and social media as an additional model input, extending the architecture to Transformer-based sequence models, supporting brokerage API integration for direct trade execution, and accounting for transaction costs and slippage in the backtest methodology
[1] M. I. K. Jabed, "Stock Market Price Prediction using Machine Learning Techniques," American International Journal of Sciences and Engineering Research, vol. 7, no. 1, Feb. 2024, doi: 10.46545/aijser.v7i1.308. [2] L. N. Mintarya, J. N. M. Halim, C. Angie, S. Achmad, and A. Kurniawan, "Machine Learning Approaches in Stock Market Prediction: A Systematic Literature Review," Procedia Computer Science, vol. 216, pp. 96–102, 2023. [3] D. Liu, A. Chen, and J. Wu, "Research on Stock Price Prediction Method Based on Deep Learning," in Proc. 2nd Int. Conf. Information Technology and Computer Application (ITCA), 2020, pp. 69–73, doi: 10.1109/ITCA52113.2020.00022. [4] G. Bathla, "Stock Price Prediction Using LSTM and SVR," in Proc. 6th Int. Conf. Parallel, Distributed and Grid Computing (PDGC), 2020, pp. 211–214, doi: 10.1109/PDGC50313.2020.9315800. [5] M. Bansal, A. Goyal, and A. Choudhary, "Stock Market Prediction with High Accuracy Using Machine Learning Techniques," Procedia Computer Science, vol. 215, pp. 247–265, 2022. [6] Md. M. Akhtar, A. S. Zamani, S. Khan, A. S. A. Shatat, S. Dilshad, and F. Samdani, "Stock Market Prediction Based on Statistical Data Using Machine Learning Algorithms," Journal of King Saud University – Science, vol. 34, no. 4, art. 101940, 2022. [7] R. Najem, M. Fakhouri Amr, A. Bahnasse, and M. Talea, "Advancements in Artificial Intelligence and Machine Learning for Stock Market Prediction: A Comprehensive Analysis of Techniques and Case Studies," Procedia Computer Science, vol. 231, pp. 198–204, 2024. [8] A. Subasi, F. Amir, K. Bagedo, A. Shams, and A. Sarirete, "Stock Market Prediction Using Machine Learning," Procedia Computer Science, vol. 194, pp. 173–179, 2021. [9] H. Wu, "Comparison of Random Forest and LSTM in Stock Prediction," Advances in Economics, Management and Political Sciences, vol. 86, no. 1, pp. 28–34, May 2024. [10] K. Kashif and R. Ślepaczuk, "LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies," arXiv:2406.18206, Jun. 2024.
Publication Date
6/24/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
4
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...