Abstract:
This research investigates the combined impact of macroeconomic news sentiment and technical indicators on stock market price volatility in Sri Lanka using deep neural networks. While extensive studies have explored these relationships in developed markets, limited research exists within the Sri Lankan context. Addressing this gap, the study focuses on hourly stock price data of HNB Bank (HNB.N0000) from the Colombo Stock Exchange and macroeconomic news articles sourced from EconomyNext over a two-and-a-half-month period.
Technical indicators including Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) were computed from historical price data to capture market momentum and trend dynamics. In parallel, news articles were transformed into sentiment embeddings using a FinBERT-based framework to extract financially contextualized semantic features. These structured technical and textual features were aligned temporally and integrated into time series datasets.
Two deep learning architectures, Long Short-Term Memory (LSTM) and Transformer-based models, were implemented to predict next-hour stock price movements. Model performance was evaluated using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and directional accuracy metrics. Comparative analysis assessed the incremental predictive value of incorporating news sentiment alongside technical indicators.
Findings indicate that integrating macroeconomic sentiment with technical indicators improves short-term stock volatility prediction compared to relying solely on price-based features. The results highlight the relevance of AI-driven sentiment analysis in emerging markets and demonstrate the applicability of deep neural networks in capturing complex nonlinear financial patterns.
This study contributes to financial forecasting literature by extending hybrid sentiment-technical modeling approaches to the Sri Lankan stock market and provides practical insights for investors, analysts, and policymakers seeking data-driven decision support.