Abstract

Trading stocks of publicly traded companies in stock markets is a challenging topic since investors are researching what tools can be used to maximize their profits while minimizing risks, which encouraged all researchers to research and test different methods to reach such a goal. As a result, the use of both fundamental analysis and technical analysis started to evolve to support traders in buying and selling stocks. Recently, the focus increased on using Machine learning models to predict stock prices and algorithmic trading as currently there is a huge amount of data that can be processed and used to forecast and trade stocks.

The focus of this paper is to use four machine learning models to forecast next day stock prices and trade stocks accordingly. The models used are LSTM model, W-LSTM model in which Wavelet analysis is used to remove the noise of the time series data and provide new coefficients to the LSTM model, LSTM-ARO where ARO as an optimization algorism will select the best hyperparameters for the LSTM model and W-LSTM-ARO model. The model’s prediction accuracy is evaluated by MSE, MAE & R2, then the models are tested in terms of profit generation.

The companies studied in this paper are six companies listed on the New York Stock Exchange (NYSE): Apple (APPL), Microsoft (MSFT), Exxon Mobile (XOM), General Electric (GE), AT&T (T) and Procter and Gamble (PG).

The study concludes that there is no correlation between models with high prediction accuracy and the ability of the model to generate profits. There is no best model that will fit in trading all stocks. Finally, the profits generated by W-LSTM & W-LSTM-ARO are higher the ones generated by LSTM & LSTM-ARO models. When the profits generated by W-LSTM & W-LSTM-ARO are compared with the buy & hold, RSI & EMA trading strategies it was concluded that W-LSTM & W-LSTM-ARO models are able to generate profits when the stock is in a downtrend.

School

School of Business

Department

Management Department

Degree Name

MS in Finance

Graduation Date

Spring 5-8-2024

Submission Date

2-10-2024

First Advisor

Dr. Noha Youssef

Committee Member 1

DR. Jasmin Fouad

Committee Member 2

DR. Roba Bairakdar

Extent

39 p.

Document Type

Master's Thesis

Institutional Review Board (IRB) Approval

Not necessary for this item

Share

COinS