Abstract

Predicting the stock market trend is a difficult problem because of its dynamic nature and other external factorsaffecting it. This research work is done to assess the trend in stock prices and to check whether using differenttrading prices like open, high and low instead of using just the closing price gives more accurate results. For thispurpose, we have used the long short term memory (LSTM) model and trained this model by using historic stockprices data. We created three different data frames from the historic stock price data (from the year 2000-2019)such that the first data frame contains median stock price calculated by finding the median of all the trading pricesfor each row of data. Similarly, the second data frame contains max stock prices among all the trading prices andthe third data frame contains min stock price among the trading price. Then three different LSTM models arecreated and trained using these three data frames. We then test these three models by using them to predict thestock prices for the year 2020 and plot a graph with traces for the actual stock prices of the year 2020 and predictstock prices by these three models. It was observed from the plotted graph that the traces for the actual andpredicted stock prices were very close to each other which means that the models are giving satisfactory results.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call