Stock Price Prediction Using Ensemble Model and Sentiment Analysis
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
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
How to Cite
Issue
Section
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All papers should be submitted electronically. All submitted manuscripts must be original work that is not under submission at another journal or under consideration for publication in another form, such as a monograph or chapter of a book. Authors of submitted papers are obligated not to submit their paper for publication elsewhere until an editorial decision is rendered on their submission. Further, authors of accepted papers are prohibited from publishing the results in other publications that appear before the paper is published in the Journal unless they receive approval for doing so from the Editor-In-Chief.
IJISAE open access articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This license lets the audience to give appropriate credit, provide a link to the license, and indicate if changes were made and if they remix, transform, or build upon the material, they must distribute contributions under the same license as the original.