Back to search

Nanyang Technological University

Stock forecasting using transformers

Abstract

dc:description.abstract

This paper develops a model for predicting stock investment value using past stock market information based on the transformer deep learning method. To obtain the investment value of stock more accurately, the technical analysis method of predicting the future stock price based on the past stock price and the fundamental analysis method based on the past intrinsic value of stocks (Composite Index, earnings per share, Market capitalisation in circulation) are adopted. To predict stock investment value as accurately as possible, transformer as a new deep learning method is tried to solve this problem. The main research work and contributions of this paper are as follows: (1) Build a model of stock prediction method in a Python environment based on technical analysis and fundamental analysis of the actual stock market; (2) Based on the PyTorch platform and Python language, a stock prediction method based on the transformer algorithm is developed. By debugging parameters and comparing the predicted value with the actual value, the effectiveness of this method in stock investment value prediction is demonstrated. Based on the above facts, this paper successfully realises the use of the transformer method to predict the future investment value of stocks.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Peng, Xiaoqi
Advisor dc:contributor.supervisor
  • Wang Lipo

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Peng, X. (2023). Stock forecasting using transformers. Master's thesis, Nanyang Technological University, Singapore. https://hdl.handle.net/10356/169344

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Peng, Xiaoqi. Stock forecasting using transformers. Nanyang Technological University, 2023. https://hdl.handle.net/10356/169344