Skip to content
Open access

Evaluating LSTM Neural Networks With Moving Average Features For Short-Term Stock Price Forecasting: A Comparative Study Of The Technology And Pharmaceutical Sectors

Sep 2026 · International Journal For Multidisciplinary Research · 0 citations · 8 references

TL;DR

The results indicate that moving averages help LSTM models track the general level and direction of price series in stable, low-volatility conditions, but that models trained exclusively on historical price information cannot account for the exogenous news, regulatory, and innovation shocks that drive a substantial share of price variance, particularly in the technology sector.

Abstract

This study evaluates whether historical daily trading data combined with simple moving average (SMA) features can improve the accuracy of Long Short-Term Memory (LSTM) neural networks in forecasting short-term stock prices, and whether forecasting accuracy differs systematically between the technology and pharmaceutical sectors. Daily open, high, low, close, and volume data were retrieved through the yfinance Python library for six publicly traded firms: three technology companies (Apple, Alphabet, and NVIDIA) and three pharmaceutical companies (AbbVie, Eli Lilly, and Pfizer). Simple moving averages over 10-, 20-, and 50-day windows were computed from closing prices and supplied to the models as additional inputs. LSTM architectures were implemented in both TensorFlow and PyTorch, trained on chronologically ordered data using an 80/10/10 train-validation-test split, and evaluated with mean squared error, root mean squared error, and mean absolute error. Ten-day out-of-sample forecasts were generated for closing price, daily high, daily low, and trading volume beginning July 21, 2025, and were compared against realized market values. Across the evaluation window, the pharmaceutical sector produced a lower mean absolute percentage error (3.06 percent) than the technology sector (7.27 percent), with AbbVie the most accurately forecast security (2.01 percent) and NVIDIA the least (12.33 percent). Directional accuracy remained near or below chance for every security, indicating that low percentage error reflects proximity to a slow-moving price level rather than a reliable ability to anticipate day-to-day movement. The results indicate that moving averages help LSTM models track the general level and direction of price series in stable, low-volatility conditions, but that models trained exclusively on historical price information cannot account for the exogenous news, regulatory, and innovation shocks that drive a substantial share of price variance, particularly in the technology sector.

Read PDF

Similar papers

Open access Sep 2026

Multivariate LSTM With the RSI-14 Technical Indicator for Stock Price Forecasting

View the results as a methodological contribution rather than direct evidence of practical investment value, given the modest trend-classification accuracy and the lack of trading back testing, transaction costs, or risk-adjusted performance measures.

Muhammad Jahron, J. A. Widians, Andi Tejawati · 0 citations
#software testing Review Open access Sep 2026

Optimizing Deep Learning for U.S. Technology Stock Price Forecasting Through Data Preprocessing and Hyperparameter Tuning

The results show that structured preprocessing and tuning influenced performance, although the effects differed across architectures and stocks, and that structured preprocessing and tuning influenced performance, although the effects differed across architectures and stocks.

Fauzan Ghazi, S. Anuar, Saharudin Ismail et al. · 0 citations
Open access Aug 2026

A Hybrid CNN-LSTM Deep Learning Framework for Stock Price Prediction: Evidence from HDFC Bank on the National Stock Exchange of India

Accurate forecasting of stock prices prediction has historically been considered one of the most complex issues in capital-related research. Markets are inherently messy they are nonlinear, constantly changing and full of noise. This study proposes and tests a hybrid CNN-LSTM model that blends Convolutional Neural Netw...

A. Malik, Ramesh Kait, Ashish Girdhar · 0 citations
Open access Aug 2026

Predicting Stock Market Trends Using Machine Learning: A Sector-Wise Comparative Study of ARIMA, Linear Regression, and LSTM Models on NSE-Listed Companies

The study concludes that the most suitable forecasting technique depends on the nature of the input data and forecast horizon, and that model outputs should support, rather than replace, broader investment judgement.

K. Divya, R. N. Kulkarni · 0 citations
Open access Aug 2026

Comparison of LSTM, GRU, Bi-LSTM, and XGBoost for BRIS Stock Price Prediction with Lookback Period Variations

Stock price forecasting remains a challenging task due to the nonlinear and non-stationary characteristics of financial time series, particularly for Islamic banking stocks such as Bank Syariah Indonesia (BRIS), which exhibit highly dynamic price movements. This study compares the performance of four prediction models...

Subekti Wahyu Aji, Wise Herowati · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.