Stock Price Prediction Using Ensemble Model and Sentiment Analysis

Authors

  • Anay Shah, Forum Sanjanwala, Anaya Jain, Radhika Gupta, Kiran Bhowmick, Nilesh Patil

Keywords:

LSTM,RNN,GRU,SVR,TextBlob,Sentiment Analysis,yfinance,

Abstract

The continued challenge in the world of finance is an accurate prediction of stock prices. This article investigates a trading system that uses machine learning algorithms to make recommendations on stocks to trade. This method integrates historical price analysis with sentiment examination in recent news articles. In this manner, the user is thus able to recognize patterns and predict future price movements using training models based on historical stock prices, turnover rates and other related indicators. Further, this study includes news articles’ sentiments which tell how much news-driven sentiment affects the values of shares, and recommend the user whether to buy or sell or hold onto a particular stock. Performing standard metric tests on our approach and comparing its outcomes with traditional trading strategies, helps refine this study. By combining ratios like Simple Moving Average (SMA), Relative Strength Index (RSI) and fundamental analysis, gave ability to gauge the bullish or bearish behavior of a stock, aiding in providing a recommendation to the user based on previous data and further predictions. Through this research, evidence is provided within the algorithmic trading literature for machine learning and sentiment analysis that support datadriven stock recommendations. Implementing various machine learning models, this study concluded that an Ensemble technique using LSTM,RNN and GRU gave the best accuracy for the user with R² having value 0.9976.

Downloads

Download data is not yet available.

References

Vijh, M., Chandola, D., Tikkiwal, V.A., Kumar, A.: Stock closing price prediction using machine learning techniques. Procedia Computer Science 167, 599–606 (2020) https://doi.org/10.1016/j.procs.2020.03.326 . International Conference on Computational Intelligence and Data Science

Selvin, S., Vinayakumar, R., Gopalakrishnan, E.A., Menon, V.K., Soman, K.P.: Stock price prediction using lstm, rnn and cnn-sliding window model. In: 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), pp. 1643–1647 (2017). https://doi.org/10.1109/ICACCI.2017. 8126078

Pawar, K., Jalem, R.S., Tiwari, V.: Stock market price prediction using lstm rnn. In: Emerging Trends in Expert Applications and Security: Proceedings of ICETEAS 2018, pp. 493–503 (2019). Springer

Gao, Y., Wang, R., Zhou, E.: Stock prediction based on optimized lstm and gru models. Scientific Programming 2021, 1–8 (2021)

Ferdiansyah, F., Othman, S.H., Zahilah Raja Md Radzi, R., Stiawan, D., Sazaki, Y., Ependi, U.: A lstm-method for bitcoin price prediction: A case study yahoo finance stock market. In: 2019 International Conference on Electrical Engineering and Computer Science (ICECOS), pp. 206–210 (2019). https://doi.org/10.1109/ ICECOS47637.2019.8984499

Bathla, G.: Stock price prediction using lstm and svr. In: 2020 Sixth InternationalConference on Parallel, Distributed and Grid Computing (PDGC), pp. 211–214 (2020). IEEE

Gujjar, J.P., Kumar, H.P.: Sentiment analysis: Textblob for decision making. Int. J. Sci. Res. Eng. Trends 7(2), 1097–1099 (2021)

Suanpang, P., Jamjuntr, P., Kaewyong, P.: Sentiment analysis with a textblob package implications for tourism. Journal of Management Information and Decision Sciences 24, 1–9 (2021)

Finance, Y.: Yahoo Finance. https://finance.yahoo.com/

Gemini Trust Company, LLC: Gemini API Documentation. https://docs.gemini. com/rest-api/

Downloads

Published

06.08.2024

How to Cite

Anay Shah. (2024). Stock Price Prediction Using Ensemble Model and Sentiment Analysis. International Journal of Intelligent Systems and Applications in Engineering, 12(23s), 210 –. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/6720

Issue

Section

Research Article