Using Artificial Intelligence for Stock Price Prediction and Profitable Trading

Authors

  • Logan Bradley Thomas Jefferson High School for Science and Technology
  • Odysseas Droisis Cornell University

DOI:

https://doi.org/10.47611/jsrhs.v13i1.6166

Keywords:

Artificial Intelligence, AI, Stock Price Prediction, Stock Market, Trading Strategies, Financial Markets, Machine Learning, ML, Algorithmic Trading, Investment Strategies, Market Forecasting

Abstract

Investing in the stock market is generally considered a safe and reliable way to protect and grow your savings over the long term. However, stock investments are risky and investing in the wrong companies can lead to financial loss. This research paper aims to see how the emerging field of Artificial Intelligence (AI) can be used to predict a stock’s future movement and capitalize on it by anticipating the movement and automatically buying or selling the stock, in an attempt to safely generate profit while minimizing risk. In this paper, a Multi-Layer Perceptron regressor model was trained to predict a stock’s future price using the stock’s previous prices, two industry competitors’ previous stock prices, and previous daily crude oil prices. The model was evaluated based on its average accuracy to the actual price in percent, and it was found that the model had an average 1.7% error on AAPL (Apple Inc) stock. An automated trading bot was then created and used the model’s daily output to perform a simulated backtest, where it was given a simulated $100,000 portfolio. Its performance was measured in multiple different trading scenarios. It was found that the model can reliably outperform stocks in fairly flat or downward market conditions and still profit on upward-moving stocks, but can still end up failing to profit if the underlying stock it was given drops in price significantly over the testing period.

Downloads

Download data is not yet available.

References or Bibliography

Graça, D.S. (2012), Noncomputability, unpredictability, and financial markets. Complexity, 17(6), 24–30. https://doi.org/10.1002/cplx.21395

Saar, G. (2001). Price impact asymmetry of block trades: An institutional trading explanation. The Review of Financial Studies, 14(4), 1153-1181.

Smith, B. M. (2004). A history of the global stock market: From Ancient Rome to Silicon Valley. University of Chicago Press. https://books.google.com/books?id=KJBJzXLEQggC

Vijh, M., Chandola, D., Tikkiwal, V. A., & Kumar, A. (2020). Stock closing price prediction using machine learning techniques. Procedia Computer Science, 167, 599-606. https://doi.org/10.1016/j.procs.2020.03.326

The history of NYSE. NYSE. (n.d.). https://www.nyse.com/history-of-nyse

Urquhart, A., & McGroarty, F. (2016). Are stock markets really efficient? Evidence of the adaptive market hypothesis. International Review of Financial Analysis, 47, 39–49. https://doi.org/10.1016/j.irfa.2016.06.011

Usmani, M., Adil, S. H., Raza, K., & Ali, S. S. A. (2016). Stock market prediction using machine learning techniques. 2016 3rd International Conference on Computer and Information Sciences (ICCOINS), 322–327. https://doi.org/10.1109/ICCOINS.2016.7783235

What is diversification?. Investor.gov. (n.d.). https://www.investor.gov/additional-resources/information/youth/teachers-classroom-resources/what-diversification

Ying, X. (2019). An overview of overfitting and its solutions. Journal of Physics: Conference Series, 1168(2), 022022. https://doi.org/10.1088/1742-6596/1168/2/022022

Published

02-29-2024

How to Cite

Bradley, L., & Droisis, O. (2024). Using Artificial Intelligence for Stock Price Prediction and Profitable Trading. Journal of Student Research, 13(1). https://doi.org/10.47611/jsrhs.v13i1.6166

Issue

Section

HS Research Projects