Stock Trading Signal Prediction Using Transformer Model and Multiple Indicators

This study investigates the ability of Transformer models to predict stock trading signals. The Transformer model, focusing on encoder architectures and multi-head attention mechanisms, was applied to transform multiple indicators. The output of the Transformer is fed into a fully connected layer, followed by a softmax layer to generate output probabilities for three possible stock signals: sell, buy, and hold. To predict the stock signal, input patterns were created using indicators from the previous 5 and 61 days based on a sliding window approach. Five popular industry sector stocks from the SET50 index, covering the period from 2010 to 2023, were collected and experimented on. Based on the experimental results, the Transformer model, particularly with a small window size, consistently outperformed Deep Neural Networks, Recurrent Neural Networks, and Long Short-Term Memory models in terms of accuracy, precision, recall, and F1-score. Moreover, the maximum profit predicted by the Transformer was approximately 1.8 to 6.4 times greater than those of all other models. These findings demonstrate that the Transformer model can effectively predict stock trading signals, assisting investors in making informed decisions.

Authors

Institutions

Publication Details

Published
2024-11-06
DOI
https://doi.org/10.1109/icsec62781.2024.10770734
Citations
2
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.98
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stock Trading Signal Prediction Using Transformer Model and Multiple Indicators

Niwan Wattanakitrungroj, Saichon Jaiyen, Chaikamon Chantrasmee, Suluk Chaikhan
2 citations
Stock Market Forecasting Methods
0.98
article

Stock Trading Signal Prediction Using Transformer Model and Multiple Indicators

Niwan Wattanakitrungroj, Saichon Jaiyen, Chaikamon Chantrasmee, Suluk Chaikhan
article en
2 citations

Abstract

This study investigates the ability of Transformer models to predict stock trading signals. The Transformer model, focusing on encoder architectures and multi-head attention mechanisms, was applied to transform multiple indicators. The output of the Transformer is fed into a fully connected layer, followed by a softmax layer to generate output probabilities for three possible stock signals: sell, buy, and hold. To predict the stock signal, input patterns were created using indicators from the previous 5 and 61 days based on a sliding window approach. Five popular industry sector stocks from the SET50 index, covering the period from 2010 to 2023, were collected and experimented on. Based on the experimental results, the Transformer model, particularly with a small window size, consistently outperformed Deep Neural Networks, Recurrent Neural Networks, and Long Short-Term Memory models in terms of accuracy, precision, recall, and F1-score. Moreover, the maximum profit predicted by the Transformer was approximately 1.8 to 6.4 times greater than those of all other models. These findings demonstrate that the Transformer model can effectively predict stock trading signals, assisting investors in making informed decisions.

King Mongkut's University of Technology Thonburi (TH)
Openalex Percentile: Top 20%
Stock Market Forecasting Methods
0.98
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Stock Trading Signal Prediction Using Transformer Model and Multiple Indicators — Niwan Wattanakitrungroj, Saichon Jaiyen, et al. · (2024) | TGRS Research Map | TGRS