stock market prediction models. Based on the neural
network integration theory, we developed a stock
market forecasting model. The "Basic Data Model",
"Technical Indicator Model" and "Macro Analysis
Model" were developed and finally a simple average
was used to create an integrated system (Zhang,
2003). The corresponding BP algorithm network
forecasting model and ARCH (1) and GARCH (1,1)
forecasting models are also developed to forecast the
volatility of the closing price of the Shenzhen Stock
Index at each weekend using the actual data of the
Shenzhen stock market in China (Pang, 2006). In
addition, a stock-specific forecasting estimation
method is proposed based on a specific state space
form consisting of a combination of trend, smooth
autoregressive and nonlinear heteroscedastic random
variables (Wang, 2010). Drawing on the advantages
of spatial reconstruction techniques and visual data
analysis techniques for expressing the patterns and
characteristics of complex systems, graphical
methods for forecasting stock market trends based on
minute-by-minute stock market trading information
have been proposed (Hu, 2014). A stock-specific
forecasting estimation method is proposed based on a
specific state space form consisting of a combination
of trend, smooth autoregressive and nonlinear
heteroskedastic random variables (Zhu, 2006). The
new XGBoost-ARIMA hybrid forecasting model is
also suitable for forecasting about daily average data
(Liu, 2022).
In order to optimize various forecasting
models, the Realized GARCH model is a good
choice. In addition, the study ignores the impact of
the information contained in the exchange volume on
the stock price volatility, which may lead to biased
estimation of the model parameters. Stochastic
volatility models based on Poisson distribution can
not only effectively solve the problem of
underutilization of volume information by traditional
practices (Sun, 2019). The analysis and judgment of
the stock market is also crucial to the proposed
decision. Using parametric and semiparametric
methods, we judge and predict the bull and bear
market cycles of the stock market (Ye, 2021). In the
case that short selling is not allowed, a log-optimal
portfolio model with conditional value-at-risk as the
risk measure can be established based on the
conditional value-at-risk proposed by Rockefeller
(Moazeni, 2015). In order to optimize various
forecasting models, the Realized GARCH model is a
good choice. In addition, the study ignores the impact
of the information contained in the exchange volume
on the stock price volatility, which may lead to biased
estimation of the model parameters (Shi, 2019).
A
new multifractal volatility forecasting model was
constructed based on the HAR model, taking into
account the intra-day effects of high frequency stock
market data and the measurement error of realized
volatility to revise the existing multifractal volatility
indicator construction method. The models were
evaluated using the Diebold-Mariano test and the
"model confidence setting" test (Yuan, 2020).
3 EXPERIMENT
According to the daily price of gold and bitcoin in the
past five years, this method forecasts the price of gold
and bitcoin in a certain period of time, and finally
makes the most profitable measure according to the
assumption of bull and bear market. From the table,
we find that the prices of gold and bitcoin are
increasing in the general situation, and the prices
themselves are related to the prices of the previous
year; In the short term, it will be affected by the local
market policies and other uncertain factors and will
increase or decrease. According to the above two
characteristics, we choose to use AR autoregressive
model to simulate and forecast the amount of money
we need in the time period according to the known
data. First of all, we need to test the data to see if they
are stable, if not, then we need to make small changes
and debug them until the conditions are met. We use
the method called Daniel test, which is mainly around
the Spearman correlation coefficient. Spearman
correlation coefficient 𝑞
and statistical
variables 𝑇 The formula is as follows:
𝑞
=1−
(
)
(
𝑡−𝑅
)
(1)
𝑇=
√
(2)
After knowing the above two quantities, we can
start the test.
For a set of data, there will be the rank of the time
series (sort the data from small to large, and the rank
of each data is its serial number). We use MATLAB's
own algorithm to calculate the rank of the data.𝑅𝑡 ;
For significant levels𝛼From the time series (the
matrix of data in the file), calculate (t_0, 𝑅𝑡 ), t_0 =
1,2, …, the correlation coefficient of n. If | T | ≤ t_0,
then the sequence is stationary; Conversely, if | T | ≥
t_0, it is not stationary and 𝑞𝑠 > 0, showing an upward
trend. The specific operation is shown below:
clc, clear;
[a]=xlsread('BCHAIN-MKPRU','B3:B1827');
a=a';
Rt=tiedrank(a);
n=length(a); t=1:n;