← Back to VOLUME 15, ISSUE 11, NOVEMBER 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
Intelligent Stock Price Prediction and Investment Recommendation System using Machine Learning and Deep LSTM Framework for Equity Price Forecasting with Real-Time Volatility Shock Detection
N. Abilasha, S. Hariharan, Dr. K. Akila*
Downloads: Download PDF
👁 6 views📥 4 downloads
Abstract: Forecasting equity prices remains difficult because financial markets are inherently non-stationary, heavily influenced by sentiment, and prone to abrupt volatility spikes. Standard machine learning pipelines usually forecast point estimates without factoring in sudden tail-risk events, causing models to perform poorly during major market disruptions. In this work, we implement a practical dual-model prediction framework that pairs a two-layer PyTorch Long Short-Term Memory (LSTM) network with an ensemble Random Forest regressor. To tackle the problem of price instability, we introduce a dedicated volatility detection module that monitors rolling 20-day return Z-scores, intraday trading spreads, and dynamic Bollinger Band boundaries at both 2-sigma and 3-sigma thresholds. Instead of predicting raw unnormalized prices—which suffer from long-term scale drift—our LSTM models the relative price ratio between consecutive trading sessions across a 10-day lookback window. We tested the pipeline on six diverse equities across multiple exchanges: Tesla, Microsoft, META, Accenture, Samsung Electronics, and ICICI Bank, totaling more than 25,000 historical trading sessions. Our experiments show that the models achieve strong goodness- of-fit, reaching R² values of 0.9984 for Microsoft and 0.9862 for Tesla, with root mean squared errors of 4.95 USD and 10.78 USD, respectively. Furthermore, our volatility corridor correctly flagged 98.4% of historical price shocks, allowing the built-in recommendation engine to adjust stop-loss limits and protect capital. These results confirm that combining sequential deep learning with statistical shock boundaries offers a dependable foundation for real-world trading decision support.
Keywords: Equity Forecasting, Long Short-Term Memory, Random Forest, Bollinger Bands, Volatility Shocks, Stop- Loss Optimization, Financial Time Series.
Keywords: Equity Forecasting, Long Short-Term Memory, Random Forest, Bollinger Bands, Volatility Shocks, Stop- Loss Optimization, Financial Time Series.
How to Cite:
[1] N. Abilasha, S. Hariharan, Dr. K. Akila*, “Intelligent Stock Price Prediction and Investment Recommendation System using Machine Learning and Deep LSTM Framework for Equity Price Forecasting with Real-Time Volatility Shock Detection,” International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE)
