Forecast Model of Stock Market Trend Based on International
Market and GRU-Attention
Chenyu Sun*
Capital Normal University (Beijing), Beijing, China
Keywords: International Market, GRU, Attention, Seq2Seq, Stock Prediction.
Abstract: Linkage effect of the international market is one of the most common phenomena of the stock market. In
order to better study the stock market prediction, this paper proposes a stock market index prediction model
based on the international major stock markets and GRU-attention. The international market is evaluated
through rolling correlation, and the correlation coefficients are ranked on market data, index data, capital flow
and international indexes to form multi-dimensional features. Using the Seq2Seq framework, the Attention
mechanism is added to the GRU model to prevent the model from ignoring the key feature information of
important time nodes. This article conducts experiments on the Shanghai Stock Exchange Index, and uses six
indicators: Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Coefficient of Determination(R
2
)
Directional Symmetry (DS), Correct Up-trend (CU) and Run-time After evaluation, compared with the model
in this paper, the accuracy of the model in predicting the upward trend is effectively improved, and the
calculation overhead is reduced at the same time.
1 INTRODUCTION
Driven by the wave of the world economy, China's
financial market has ushered in unprecedented
development opportunities, and has gradually
occupied an important position in the international
financial market. With the gradual stabilization of
China’s financial market, in the face of increasingly
complex financial stock data, comparing artificial
intelligence and stock market analysis methods,
because traditional qualitative analysis relies too much
on the ideas and behaviors of investors, it is gradually
unable to Satisfy its needs for obtaining high returns
and avoiding risks. How to predict the future trend of
the stock market, better judge the stock trend, and
reduce investment risks to obtain high returns have
become issues that many researchers pay close
attention to.
The research on the stock market has always been
a key issue in the research of China's financial market.
China's stock market is affected by many factors.
Since the emergence of the stock market, relevant
scholars at home and abroad have conducted a lot of
research on the stock market forecast. From an
economic perspective, researchers mainly conduct
research on the stock market through fundamentals
and technology. However, because traditional
measurement models are becoming more and more
difficult to carry out a reasonable description, and
cannot effectively reflect the correlation between the
various dimensions of the stock market, this puts
forward higher requirements for the researchers of the
stock market. With the gradual development of
artificial intelligence technology, traditional financial
analysis methods such as MACD (Kang, 2021),
candlestick chart (Siriporn, 2019) have gradually been
replaced by neural networks (Alfonso, 2020) and deep
learning (M. Nabipour, 2020). Predicting the future
trend of the stock market through the stock market and
historical data associated with the stock market is the
main research direction of the stock market in the
computer field. Karolyi and Stulz (Karolyi, 1996) and
Forbes and Rigobon (Fortes, 2002) studied the stock
market volatility responses of major East Asian
countries under the background of the financial crisis.
Studies have shown that during the financial crisis,
countries closely related to capital and trade have a
certain degree of contagion in the financial market. In
other words, when a financial crisis occurs, the
macroeconomic environment of the risk-receiving
country is Stable, there is no attack by speculative
capital, a sharp decline in one market will also affect
the sharp decline in another market. Ajab (Ajab, 2019)