Stock Price Prediction Using Convolutional Neural Networks on Various Time Frames

Authors

  • Jiayao Wang

DOI:

https://doi.org/10.54097/j5ztze89

Keywords:

Convolutional neural network; stock price prediction; time series data.

Abstract

The stock market is a place where stocks can be transferred, traded, and circulated. It has a history of 400 years and can be used as a channel for companies to raise funds. In this study, two Convolutional Neural Network (CNN) models are developed to forecast stock market prices, catering to distinct investment strategies: a short-term weekly model and a medium-term approximately three-month model. The weekly model utilizes a structure to predict Friday closing prices based on the daily closing prices from the preceding week, intending to capture the weekly trends. In contrast, the medium-term model is designed to comprehend the broader market movements by predicting the closing price on a day nearly twelve weeks ahead, using the past twenty days’ prices. Both models incorporate a Conv1D layer followed by batch normalization, pooling, and dense layers, calibrated to their respective temporal frameworks. The study’s findings demonstrate the challenges and intricacies of stock price prediction over varying time frames and propose enhancements for future models, including the incorporation of a wider array of market indicators and economic factors.

Downloads

Download data is not yet available.

References

Lu, Wenjie, Jiazheng Li, Jingyang Wang, and Lele Qin. A CNN-BiLSTM-AM method for stock price prediction. Neural Computing and Applications, 2021, 33: 4741-4753.

N. Samuel. Changing market conditions impact your asset allocation strategy. Picture Perfect Portfolios, 2023. URL: https://pictureperfectportfolios. Com / how - changing - market - conditions - impact-your-asset-allocation-strategy/. Last access time: 2023/11/09.

Gu, Jiuxiang, Zhenhua Wang, Jason Kuen, Lianyang Ma, Amir Shahroudy, Bing Shuai, Ting Liu et al. Recent advances in convolutional neural networks. Pattern recognition, 2018, 77: 354-377.

Rawat, Waseem, and Zenghui Wang. Deep convolutional neural networks for image classification: A comprehensive review. Neural computation, 2017, 29(9): 2352-2449.

Al-Saffar, Ahmed Ali Mohammed, Hai Tao, and Mohammed Ahmed Talab. Review of deep convolution neural network in image classification. In 2017 International conference on radar, antenna, microwave, electronics, and telecommunications, 2017: 26-31.

Hoseinzade, Ehsan, and Saman Haratizadeh. CNNpred: CNN-based stock market prediction using a diverse set of variables. Expert Systems with Applications, 2019, 129: 273-285.

Hiransha, Ma, E. Ab Gopalakrishnan, Vijay Krishna Menon, and K. P. Soman. NSE stock market prediction using deep-learning models. Procedia computer science, 2018, 132: 1351-1362.

Selvin, Sreelekshmy, R. Vinayakumar, E. A. Gopalakrishnan, Vijay Krishna Menon, and K. P. Soman. Stock price prediction using LSTM, RNN and CNN-sliding window model. In 2017 international conference on advances in computing, communications and informatics, 2017: 1643-1647.

Mehtab, Sidra, and Jaydip Sen. Stock price prediction using CNN and LSTM-based deep learning models. In 2020 International Conference on Decision Aid Sciences and Application, 2020: 447-453.

Rasheed, Jawad, Akhtar Jamil, Alaa Ali Hameed, Muhammad Ilyas, Adem Özyavaş, and Naim Ajlouni. Improving stock prediction accuracy using cnn and lstm. In 2020 International Conference on Data Analytics for Business and Industry: Way Towards a Sustainable Economy, 2020: 1-5.

Downloads

Published

26-04-2024

How to Cite

Wang, J. (2024). Stock Price Prediction Using Convolutional Neural Networks on Various Time Frames. Highlights in Science, Engineering and Technology, 94, 1-8. https://doi.org/10.54097/j5ztze89