TWI732650B - Stock prediction method and server end for stock prediction - Google Patents

Stock prediction method and server end for stock prediction Download PDF

Info

Publication number
TWI732650B
TWI732650B TW109127316A TW109127316A TWI732650B TW I732650 B TWI732650 B TW I732650B TW 109127316 A TW109127316 A TW 109127316A TW 109127316 A TW109127316 A TW 109127316A TW I732650 B TWI732650 B TW I732650B
Authority
TW
Taiwan
Prior art keywords
stock
training
server
fund
time interval
Prior art date
Application number
TW109127316A
Other languages
Chinese (zh)
Other versions
TW202207136A (en
Inventor
林裕訓
李藝鋒
宋政隆
王俊權
劉恩銓
Original Assignee
中國信託商業銀行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中國信託商業銀行股份有限公司 filed Critical 中國信託商業銀行股份有限公司
Priority to TW109127316A priority Critical patent/TWI732650B/en
Application granted granted Critical
Publication of TWI732650B publication Critical patent/TWI732650B/en
Publication of TW202207136A publication Critical patent/TW202207136A/en

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

一種用於股票預測的伺服端,當該伺服端接收到相關於一個股的分析請求時,該伺服端根據相關於該個股的多筆個股股價產生相關於該個股的多筆個股技術指標,並根據該等個股技術指標產生對應該個股的多筆股價預測值,另一方面,該伺服端根據相關於整體股市趨勢的一股票型基金所對應的多筆基金股價產生相關於該股票型基金的多筆基金技術指標,並根據該等基金技術指標產生對應該股票型基金的多筆股價預測值,且根據該個股的該等股價預測值及該股票型基金的該等股價預測值產生多筆對應該個股的修正個股股價預測值。A server for stock prediction. When the server receives an analysis request related to a stock, the server generates multiple stock technical indicators related to the stock according to the stock prices of multiple stocks related to the stock, and According to the technical indicators of these individual stocks, multiple stock price forecasts corresponding to individual stocks are generated. On the other hand, the server generates multiple stock prices related to the stock fund based on the multiple fund stock prices corresponding to a stock fund related to the overall stock market trend. Multiple fund technical indicators, and generate multiple stock price forecasts corresponding to stock funds based on these fund technical indicators, and generate multiple stock price forecasts based on the stock price forecasts and the stock fund forecasts Corresponding to the revised stock price forecast value of individual stocks.

Description

股票預測方法及用於股票預測的伺服端Stock prediction method and server end for stock prediction

本發明是有關於一種適用於商業的數據分析方法,特別是指一種產生對於股票的股價預測值的預測方法。The present invention relates to a data analysis method suitable for business, in particular to a prediction method that generates a stock price prediction value.

在現今社會中,物價指數水漲船高,許多人透過上班賺取固定薪資外,同時也藉由其他投資方式以增加自己的收入。而在投資市場中,股票一直被認為是最為主要的投資理財方法,也因此找尋一筆能夠穩定獲利的股票一直是各個投資理財人士所追求的目標。In today's society, the price index is rising, and many people earn a fixed salary by going to work, while also increasing their income through other investment methods. In the investment market, stocks have always been regarded as the most important method of investment and financial management. Therefore, finding a stock that can make stable profits has always been the goal pursued by all investment and financial management professionals.

目前投資市場中,許多投資者使用股票分析軟體以分析一家公司的股票是否可以進行投資,雖然股票分析軟體可以協助投資者的使用需求,但仍存在關於分析的問題,更詳細地說,現有的股票分析軟體,是透過股票上市公司的多個單位時間的營業相關資料對該公司的股票進行分析,其中營業相關資料包括該等單位時間內的營收、每股盈餘、營業毛利率、股東權益報酬率、營業利益率等資料,而忽略了整體股市趨勢的影響,例如當整體股市趨勢上漲時,一支發展狀況不甚理想的股票仍有可能受到整體股市的影響而呈現上漲趨勢而吸引投資者投資,但該支股票卻極有可能在整體股市趨勢上漲趨緩時持續下跌甚至被列為全額交割股,造成投資者資產的嚴重損失。In the current investment market, many investors use stock analysis software to analyze whether a company’s stock can be invested. Although stock analysis software can assist investors in their use needs, there are still problems with analysis. In more detail, the existing The stock analysis software analyzes the company’s stocks based on the company’s business-related data in multiple unit hours. The business-related data includes revenue per unit of time, earnings per share, operating gross profit margin, and shareholder’s equity. Return rate, operating profit rate, etc., while ignoring the influence of the overall stock market trend. For example, when the overall stock market trend is rising, a stock that is not well developed may still be affected by the overall stock market and show an upward trend to attract investment However, this stock is very likely to continue to fall when the overall stock market trend slows down and even be classified as a fully delivered stock, causing serious losses in investors’ assets.

因此,本發明的目的,即在提供一種能夠根據整體股市趨勢預測股票股價的股票預測方法。Therefore, the purpose of the present invention is to provide a stock prediction method capable of predicting the stock price based on the overall stock market trend.

再者,本發明的目的,即在提供一種能夠根據整體股市趨勢預測股票股價的伺服端。Furthermore, the purpose of the present invention is to provide a server that can predict the stock price based on the overall stock market trend.

於是,本發明股票預測方法,藉由一連接一管理端的伺服端實施,該伺服端儲存有一筆個股在一當前時間區間中的多筆個股股價、一筆相關於整體股市趨勢的股票型基金在該當前時間區間中的多筆基金股價、一用於根據多筆股價產生多筆技術指標的技術分析模型、一用於根據相關於一待預測個股在該當前時間區間的多筆技術指標產生多筆相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價的股價預測值的個股分析模型、一用於根據相關於一待預測股票型基金在該當前時間區間的多筆技術指標產生多筆相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的整體分析模型,以及一用於根據該待預測個股的該等股價預測值和該待預測股票型基金的該等股價預測值,產生該待預測個股的該等股價預測值受該待預測股票型基金的該等股價預測值影響的多筆修正股價預測值的修正分析模型,該股票預測方法包含一步驟(A)、一步驟(B)、一步驟(C)、一步驟(D),及一步驟(E)。Therefore, the stock prediction method of the present invention is implemented by a server connected to a management terminal. The server terminal stores multiple stock prices of individual stocks in a current time interval, and a stock fund related to the overall stock market trend. Multiple fund stock prices in the current time interval, one used to generate multiple technical analysis models based on multiple stock prices, and one used to generate multiple technical indicators related to a stock to be predicted in the current time interval A stock analysis model related to the stock price prediction value of the stock price of the stock to be predicted in a future time interval that is later than the current time interval, and one for multiple techniques related to a stock fund to be predicted in the current time interval The indicator generates a number of overall analysis models related to the stock price forecast value of the stock price of the stock fund to be predicted in the future time interval, and an overall analysis model for the stock price forecast value of the stock fund to be forecast and the stock fund to be forecast The stock price forecast values of the stocks to be predicted are generated, and the stock price forecast values of the stocks to be predicted are affected by the stock price forecast values of the stock funds. Step (A), one step (B), one step (C), one step (D), and one step (E).

在該步驟(A)中,當該伺服端接收到來自該管理端且相關於該個股的分析請求時,藉由該伺服端,根據相關於該個股的該等個股股價,利用該技術分析模型,產生相關於該個股的多筆個股技術指標。In this step (A), when the server receives an analysis request from the management terminal related to the stock, the server uses the technical analysis model based on the stock prices related to the stock , To generate multiple technical indicators related to the individual stock.

在該步驟(B)中,藉由該伺服端,根據該等個股技術指標,利用該個股分析模型產生對應該個股的多筆股價預測值。In this step (B), the server uses the individual stock analysis model to generate multiple stock price forecasts corresponding to the individual stocks based on the individual stock technical indicators.

在該步驟(C)中,藉由該伺服端,根據相關於該股票型基金的該等基金股價,利用該技術分析模型,產生相關於該股票型基金的多筆基金技術指標。In this step (C), the server uses the technical analysis model to generate multiple fund technical indicators related to the stock fund based on the fund stock prices related to the stock fund.

在該步驟(D)中,藉由該伺服端,根據該等基金技術指標,利用該整體分析模型產生對應該股票型基金的多筆股價預測值。In this step (D), the server uses the overall analysis model to generate multiple stock price forecasts corresponding to the stock fund based on the fund technical indicators.

在該步驟(E)中,藉由該伺服端,根據該個股的該等股價預測值及該股票型基金的該等股價預測值,利用該修正分析模型產生多筆對應該個股的修正個股股價預測值。In this step (E), by the server, based on the stock price forecast values of the stock and the stock fund stock price forecast values, the revised analysis model is used to generate multiple revised stock prices corresponding to individual stocks Predictive value.

另外,本發明伺服端,用於股票預測,並經由一通訊網路連接至一管理端,該伺服端包含一伺服端通訊模組、一伺服端儲存模組,及一伺服端處理模組。In addition, the server of the present invention is used for stock forecasting and is connected to a management terminal via a communication network. The server includes a server communication module, a server storage module, and a server processing module.

該伺服端通訊模組連接至該通訊網路,該伺服端儲存模組儲存有一筆個股在一當前時間區間中的多筆個股股價、一筆相關於整體股市趨勢的股票型基金在該當前時間區間中的多筆基金股價、一用於根據多筆股價產生多筆技術指標的技術分析模型、一用於根據相關於一待預測個股在該當前時間區間的多筆技術指標產生多筆相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價的股價預測值的個股分析模型、一用於根據相關於一待預測股票型基金在該當前時間區間的多筆技術指標產生多筆相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的整體分析模型,以及一用於根據該待預測個股的該等股價預測值和該待預測股票型基金的該等股價預測值,產生該待預測個股的該等股價預測值受該待預測股票型基金的該等股價預測值影響的多筆修正股價預測值的修正分析模型。The server-side communication module is connected to the communication network, and the server-side storage module stores multiple stock prices of individual stocks in a current time interval, and a stock fund related to the overall stock market trend in the current time interval. A number of fund stock prices, a technical analysis model used to generate multiple technical indicators based on multiple stock prices, and a number of technical analysis models used to generate multiple technical indicators related to a stock to be predicted in the current time interval. A stock analysis model that predicts the stock price prediction value of a stock price in a future time interval later than the current time interval, and one is used to generate multiple transactions based on multiple technical indicators related to a stock fund to be predicted in the current time interval The overall analysis model related to the stock price forecast value of the stock fund to be predicted in the future time interval, and a method used to calculate the stock price forecast value of the stock fund to be forecasted and the stock price of the stock fund to be forecasted The forecast value generates a revised analysis model of multiple revised stock price forecast values in which the stock price forecast values of the stocks to be predicted are affected by the stock price forecast values of the stock funds to be predicted.

該伺服端處理模組電連接該伺服端通訊模組及該伺服端儲存模組,其中當該伺服端處理模組透過該伺服端通訊模組接收到來自該管理端且相關於該個股的分析請求時,該伺服端處理模組根據相關於該個股的該等個股股價,利用該技術分析模型產生相關於該個股的多筆個股技術指標,並根據該等個股技術指標,利用該個股分析模型產生對應該個股的多筆股價預測值,且根據相關於該股票型基金的該等基金股價,利用該技術分析模型產生相關於該股票型基金的多筆基金技術指標,並根據該等基金技術指標,利用該整體分析模型產生對應該股票型基金的多筆股價預測值,以及根據該個股的該等股價預測值及該股票型基金的該等股價預測值,利用該修正分析模型產生多筆對應該個股的修正個股股價預測值。The server-side processing module is electrically connected to the server-side communication module and the server-side storage module, wherein when the server-side processing module receives the analysis related to the stock from the management side through the server-side communication module Upon request, the server-side processing module uses the technical analysis model to generate multiple stock technical indicators related to the individual stock based on the stock prices related to the individual stock, and uses the individual stock analysis model based on the individual stock technical indicators Generate multiple stock price forecasts corresponding to individual stocks, and use the technical analysis model to generate multiple fund technical indicators related to the stock fund based on the fund stock prices related to the stock fund, and based on the fund technology Indicators, using the overall analysis model to generate multiple stock price forecasts corresponding to the stock fund, and according to the stock price forecasts and the stock fund forecasts, using the modified analysis model to generate multiple stock prices Corresponding to the revised stock price forecast value of individual stocks.

本發明的功效在於:藉由該伺服端利用該修正分析模型產生多筆對應該個股的修正個股股價預測值,藉此,產生根據整體股市趨勢的股價預測值,進而讓投資者能夠以較為客觀的資訊進行投資。The effect of the present invention is that the server uses the modified analysis model to generate multiple revised stock price forecasts corresponding to individual stocks, thereby generating stock price forecasts based on the overall stock market trend, thereby allowing investors to be more objective Information to invest.

在本發明被詳細描述前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numbers.

參閱圖1,本發明股票預測方法的一第一實施例,藉由如圖1所示的一股票預測系統來實施該第一實施例所包括的一個股分析模型建立程序、一整體分析模型建立程序、一修正分析模型建立程序,及一預測程序,藉此,根據整體股市趨勢產生股價的預測值,讓投資者能夠以較為客觀的資訊進行投資,從而避免可能造成的資產嚴重損失。Referring to FIG. 1, a first embodiment of the stock prediction method of the present invention is implemented by a stock prediction system as shown in FIG. 1 to implement a stock analysis model establishment procedure and an overall analysis model establishment included in the first embodiment Procedures, a modification analysis model establishment procedure, and a prediction procedure, whereby the forecast value of stock prices is generated according to the overall stock market trend, so that investors can invest with more objective information, thereby avoiding possible serious asset losses.

該股票預測系統包含本發明用於股票預測的伺服端1,及一透過一通訊網路100連接至該伺服端1的一管理端2,該伺服端1包括一連接至該通訊網路100的一伺服端通訊模組11、一用以儲存資料的一伺服端儲存模組12,及一電連接該伺服端通訊模組11及該伺服端儲存模組12的伺服端處理模組13,在此,該伺服端1是例如雲端伺服器、超級電腦、個人電腦,或是其他類似裝置其中任一。The stock prediction system includes a server terminal 1 for stock prediction of the present invention, and a management terminal 2 connected to the server terminal 1 through a communication network 100, and the server terminal 1 includes a server connected to the communication network 100 A server-side communication module 11, a server-side storage module 12 for storing data, and a server-side processing module 13 electrically connected to the server-side communication module 11 and the server-side storage module 12. Here, The server 1 is, for example, a cloud server, a super computer, a personal computer, or any other similar device.

該伺服端儲存模組12儲存有一筆個股在一當前時間區間中的多筆個股股價、一筆相關於整體股市趨勢的股票型基金(Exchange Traded Funds, ETF),例如道瓊工業指數基金、那斯達克100科技指數基金,或是元大台灣卓越50證券投資信託基金(簡稱台灣50),在該當前時間區間中的多筆基金股價、一用於根據多筆股價產生多筆技術指標的技術分析模型、多筆分別對應多個訓練個股的個股訓練資料、多筆分別對應多個訓練股票型基金的基金訓練資料,及多筆修正訓練資料,其中,每一個股訓練資料包括對應該訓練個股在一早於該當前時間區間的先前時間區間中的多筆訓練個股技術指標,及在該當前時間區間中的多筆訓練個股股價,每一基金訓練資料包括對應該訓練股票型基金在該先前時間區間中的多筆訓練基金技術指標,及在該當前時間區間中的多筆訓練基金股價,每一修正訓練資料包括對應該訓練個股在該當前時間區間的多筆訓練個股股價,對應該訓練股票型基金在該當前時間區間的多筆訓練基金股價,及對應該訓練個股在該當前時間區間的多筆訓練修正個股股價。The server-side storage module 12 stores the stock prices of a single stock in a current time interval, and a stock fund (Exchange Traded Funds, ETF) related to the overall stock market trend, such as Dow Jones Industrial Index Fund, Nass Tak 100 Technology Index Fund, or Yuanta Taiwan Excellence 50 Securities Investment Trust Fund (Taiwan 50 for short), multiple fund stock prices in the current time interval, a technology used to generate multiple technical indicators based on multiple stock prices Analytical model, multiple stock training data corresponding to multiple training stocks, multiple fund training data corresponding to multiple training stock funds, and multiple revised training data. Among them, each stock training data includes corresponding training stocks Multiple training stock technical indicators in a previous time interval earlier than the current time interval, and multiple training stock stock prices in the current time interval, each fund training data includes the corresponding training stock fund at the previous time Multiple training fund technical indicators in the interval, and multiple training fund stock prices in the current time interval, each modified training data includes multiple training stock stock prices corresponding to the training stock in the current time interval, corresponding to the training stock The stock prices of multiple training funds of the type fund in the current time interval, and the stock prices of multiple training correction stocks corresponding to the training stocks in the current time interval.

該管理端2由一管理者所持有,並包括一管理端通訊模組21、一管理端輸入模組22,及一電連接該管理端通訊模組21及該管理端輸入模組22的管理端處理模組23,其中,該管理端通訊模組21連接至該通訊網路100,該管理端輸入模組22用於供該管理者進行輸入操作,在此,該管理端2是例如個人電腦、平板電腦、筆記型電腦,或其他類似裝置其中任一。The management terminal 2 is held by a manager, and includes a management terminal communication module 21, a management terminal input module 22, and an electrical connection between the management terminal communication module 21 and the management terminal input module 22 The management terminal processing module 23, wherein the management terminal communication module 21 is connected to the communication network 100, and the management terminal input module 22 is used for the manager to perform input operations. Here, the management terminal 2 is, for example, a personal Any of computers, tablets, notebooks, or other similar devices.

該個股分析模型建立程序包括一步驟31、一步驟32、一步驟33、一步驟34,及一步驟35,用以建立一用於根據相關於一待預測個股在該當前時間區間的該等技術指標,產生該等相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價預測值的個股分析模型。The procedure for establishing a stock analysis model includes a step 31, a step 32, a step 33, a step 34, and a step 35, which are used to establish a method for establishing a method based on the technologies related to a stock to be predicted in the current time interval. Indicators to generate the individual stock analysis models related to the stock price forecast value of the stock to be predicted in a future time interval that is later than the current time interval.

參閱圖1、2,在進行該步驟31時,是該伺服端處理模組13將該伺服端儲存模組12所儲存的該等個股訓練資料分為一訓練子集和一測試子集;之後在該步驟32中,該伺服端處理模組13根據該訓練子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,利用機器學習演算法,例如支援向量機(Support Vector Machine, SVM)或是邏輯迴歸(Logistic regression),建立一根據相關於該待預測個股在該當前時間區間的該等技術指標產生該等相關於該待預測個股在該未來時間區間之股價預測值的第一訓練模型;在該伺服端處理模組13建立該第一訓練模型後進行該步驟33,藉由該伺服端處理模組13,根據該測試子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,判斷出該第一訓練模型的預測正確率是否大於一第一門檻值,當該伺服端處理模組13判斷出該第一訓練模型的預測正確率並未大於該第一門檻值時,該伺服端處理模組13隨即進行該步驟34,調整該第一訓練模型並重回執行該步驟33;當該伺服端處理模組13判斷出該第一訓練模型的預測正確率大於該第一門檻值時,該伺服端處理模組13則進行該步驟35,確認該第一訓練模型為該個股分析模型。Referring to Figures 1 and 2, when step 31 is performed, the server-side processing module 13 divides the individual stock training data stored in the server-side storage module 12 into a training subset and a test subset; In this step 32, the server-side processing module 13 uses a machine learning algorithm, such as a support vector machine ( Support Vector Machine (SVM) or logistic regression (Logistic regression) to establish a stock price related to the stock to be predicted in the future time interval based on the technical indicators related to the stock to be predicted in the current time interval The first training model of the predicted value; the step 33 is performed after the first training model is established by the server-side processing module 13, and the server-side processing module 13 is used according to the training data corresponding to each strand in the test subset The technical indicators of the training stocks and the stock prices of the training stocks determine whether the prediction accuracy of the first training model is greater than a first threshold. When the server-side processing module 13 determines the prediction of the first training model When the accuracy rate is not greater than the first threshold value, the server-side processing module 13 immediately performs the step 34, adjusts the first training model and executes the step 33 again; when the server-side processing module 13 determines that the When the prediction accuracy of the first training model is greater than the first threshold, the server-side processing module 13 performs the step 35 to confirm that the first training model is the individual stock analysis model.

該整體分析模型建立程序包括一步驟41、一步驟42、一步驟43、一步驟44,及一步驟45,用以建立一用於根據相關於一待預測股票型基金在該當前時間區間的多筆技術指標產生多筆相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的整體分析模型。The overall analysis model establishment procedure includes a step 41, a step 42, a step 43, a step 44, and a step 45, which is used to establish a method according to the amount related to a stock fund to be predicted in the current time interval. The technical indicators generate multiple overall analysis models related to the stock price forecast value of the stock fund to be predicted in the future time interval.

參閱圖1、3,在進行該步驟41時,是由該伺服端處理模組13將該伺服端儲存模組12所儲存的該等基金訓練資料分為另一訓練子集和另一測試子集;接著在該步驟42中,該伺服端處理模組13根據該另一訓練子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,利用機器學習演算法,例如支援向量機(Support Vector Machine, SVM)或是邏輯迴歸(Logistic regression),建立一根據相關於該待預測股票型基金在該當前時間區間的該等技術指標產生該等相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的第二訓練模型;在該伺服端處理模組13建立該第二訓練模型後進行該步驟43,由該伺服端處理模組13根據該另一測試子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,判斷出該第二訓練模型的預測正確率是否大於一第二門檻值,當該伺服端處理模組13判斷出該第二訓練模型的預測正確率並未大於該第二門檻值時,隨即以該步驟44,調整該第二訓練模型並重回執行該步驟43;另一方面,當該伺服端處理模組13判斷出該第二訓練模型的預測正確率大於該第二門檻值時,則進行該步驟45,由該伺服端處理模組13確認該第二訓練模型為該整體分析模型。Referring to Figures 1 and 3, when step 41 is performed, the server-side processing module 13 divides the fund training data stored in the server-side storage module 12 into another training subset and another test sub-set Next, in the step 42, the server-side processing module 13 uses the machine learning algorithm according to the training fund technical indicators and the training fund stock prices corresponding to the training data of each fund in the other training subset, For example, Support Vector Machine (SVM) or logistic regression (Logistic regression) is established to generate the stocks related to the stocks to be predicted based on the technical indicators related to the stocks to be predicted in the current time interval. The second training model of the stock price prediction value of the stock price of the fund in the future time interval; after the second training model is established by the server processing module 13, the step 43 is performed, and the server processing module 13 performs the second training model according to the other In a test subset, the training fund technical indicators and the training fund stock prices corresponding to the training data of each fund are determined to determine whether the prediction accuracy of the second training model is greater than a second threshold. When the server-side processing model When the group 13 judges that the prediction accuracy rate of the second training model is not greater than the second threshold, it immediately uses the step 44 to adjust the second training model and returns to the step 43; on the other hand, when the servo When the end processing module 13 determines that the prediction accuracy of the second training model is greater than the second threshold, the step 45 is performed, and the server end processing module 13 confirms that the second training model is the overall analysis model.

該修正分析模型建立程序包括一步驟51、一步驟52、一步驟53、一步驟54,及一步驟55,用以建立一用於根據該待預測個股的該等股價預測值和該待預測股票型基金的該等股價預測值,產生該待預測個股的該等股價預測值受該待預測股票型基金的該等股價預測值影響的多筆修正股價預測值的修正分析模型。The procedure for establishing the modified analysis model includes a step 51, a step 52, a step 53, a step 54, and a step 55, which are used to establish a method for establishing a stock price prediction value based on the stock price to be predicted and the stock price to be predicted. The stock price forecast values of the stock-type fund generate multiple revised analysis models for the stock price forecast values of the stock-to-be-predicted stocks that are affected by the stock price forecast values of the stock-type fund to be forecasted.

參閱圖1、4,在進行該步驟51時,是由該伺服端處理模組13將該伺服端儲存模組12所儲存的該等修正訓練資料分為又一訓練子集及又一測試子集,接著在進行該步驟52時,該伺服端處理模組13根據該又一訓練子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,利用機器學習演算法,例如圖形神經網路(Graph Neural Network, GNN),建立一根據對應該待預測個股的該等股價預測值和對應該待預測股票型基金的該等股價預測值,產生該等修正股價預測值的第三訓練模型,在該伺服端處理模組13建立該第三訓練模型後進行該步驟53,藉由該伺服端處理模組13根據該又一測試子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,判斷出該第三訓練模型的預測正確率是否大於一第三門檻值,當該伺服端處理模組13判斷出該第三訓練模型的預測正確率並未大於該第三門檻值時,該伺服端處理模組13進行該步驟54,亦即調整該第三訓練模型並重回執行該步驟53;相反地,當該伺服端處理模組13判斷出該第三訓練模型的預測正確率大於該第三門檻值時,該伺服端處理模組13進行該步驟55,亦即確認該第三訓練模型為該修正分析模型。Referring to Figures 1 and 4, when step 51 is performed, the server-side processing module 13 divides the modified training data stored in the server-side storage module 12 into another training subset and another test sub-set Then, when step 52 is performed, the server-side processing module 13 calculates the stock prices of the training stocks, the training funds, and the stock prices of the training corrections based on each modified training data in the another training subset, Using machine learning algorithms, such as Graph Neural Network (GNN), create a method based on the stock price forecast values corresponding to the stocks to be predicted and the stock price forecast values corresponding to the stock funds to be predicted. Wait for the third training model to modify the stock price prediction value, and perform the step 53 after the third training model is established by the server-side processing module 13, and the server-side processing module 13 performs each modification according to the further test subset Based on the training data, the stock prices of the training stocks, the training funds, and the stock prices of the training corrections are used to determine whether the prediction accuracy of the third training model is greater than a third threshold. When the server-side processing module 13 When it is judged that the prediction accuracy of the third training model is not greater than the third threshold, the server processing module 13 performs step 54, that is, adjusts the third training model and returns to step 53; on the contrary, Specifically, when the server-side processing module 13 determines that the prediction accuracy of the third training model is greater than the third threshold, the server-side processing module 13 performs the step 55, that is, confirms that the third training model is The modified analysis model.

該預測程序包括一步驟61、一步驟62、一步驟63、一步驟64、一步驟65、一步驟66、一步驟67,及一步驟68,用以根據整體股市趨勢產生股價的預測值。The prediction procedure includes a step 61, a step 62, a step 63, a step 64, a step 65, a step 66, a step 67, and a step 68, which are used to generate a stock price prediction value based on the overall stock market trend.

參閱圖1、5,在該步驟61中,該管理端處理模組23根據該管理端輸入模組22經由該管理者之輸入操作而產生的輸入訊號,產生一相關於該個股的分析請求,並透過該管理端通訊模組21經由該通訊網路100傳送至該伺服端1。1 and 5, in step 61, the management terminal processing module 23 generates an analysis request related to the stock based on the input signal generated by the management terminal input module 22 through the input operation of the manager. And it is transmitted to the server 1 via the communication network 100 through the management communication module 21.

接著在該步驟62中,當該伺服端處理模組13透過該伺服端通訊模組11接收到來自該管理端2且相關於該個股的分析請求時,該伺服端處理模組13根據相關於該個股的該等個股股價,利用該技術分析模型,例如技術分析庫(Technical Analysis Library, TA-Lib),產生相關於該個股的多筆個股技術指標,詳細地說,技術指標是指根據一支股票的多筆歷史股價所計算出的其他相關於該支股票的數據,例如K線(Candlestick chart)、相對強弱指數(Relative Strength Index, RSI),或指數平滑異同移動平均線(Moving Average Convergence / Divergence, MACD)等其他數據,而在該第一實施例中,該等個股技術指標包含對應該個股的相對強弱指數以及指數平滑異同移動平均線。Then in step 62, when the server-side processing module 13 receives an analysis request from the management terminal 2 related to the stock through the server-side communication module 11, the server-side processing module 13 according to the related The stock prices of the individual stocks use the technical analysis model, such as the Technical Analysis Library (TA-Lib), to generate multiple technical indicators related to the individual stocks. In detail, the technical indicators refer to A stock’s multiple historical stock prices are calculated based on other data related to the stock, such as candlestick chart, Relative Strength Index (RSI), or Moving Average Convergence (Moving Average Convergence). / Divergence, MACD) and other data, and in the first embodiment, the technical indicators of the individual stocks include the relative strength index corresponding to the individual stock and the exponential moving average of similarity and difference.

之後在該步驟63中,該伺服端處理模組13根據該等個股技術指標,利用該個股分析模型產生對應該個股的該等股價預測值。Then in step 63, the server-side processing module 13 uses the individual stock analysis model to generate the stock price prediction values corresponding to the individual stocks according to the individual stock technical indicators.

接著在該步驟64中,該伺服端處理模組13根據相關於該股票型基金的該等基金股價,利用該技術分析模型,產生相關於該股票型基金的多筆基金技術指標,詳細地說,道瓊工業指數基金包含美國最大且最知名的三十家上市公司,而台灣50的成分股包含臺灣上市股票市值前五十名的個股,換言之,該股票型基金由於包含了多筆能夠代表股市發展的股票,因此可代表整體股市趨勢,另一方面,該等基金技術指標也包含對應該股票型基金的相對強弱指數以及指數平滑異同移動平均線。Then in step 64, the server-side processing module 13 uses the technical analysis model to generate multiple fund technical indicators related to the stock fund based on the fund stock prices related to the stock fund. , The Dow Jones Industrial Index Fund includes the 30 largest and most well-known listed companies in the United States, and the constituent stocks of Taiwan 50 include the top 50 listed stocks in Taiwan by market capitalization. In other words, the equity fund contains multiple representative The stocks developed by the stock market can therefore represent the overall stock market trend. On the other hand, the technical indicators of these funds also include the relative strength index corresponding to the stock fund and the moving average of index smoothing.

之後在該步驟65中,該伺服端處理模組13根據該等基金技術指標,利用該整體分析模型產生對應該股票型基金的該等股價預測值。Then in step 65, the server-side processing module 13 uses the overall analysis model to generate the stock price prediction values corresponding to the stock fund based on the fund technical indicators.

值得一提的是,在該第一實施例中,該伺服端處理模組13是依序進行該步驟62、該步驟63、該步驟64,及該步驟65,但在其他實施例中,該伺服端處理模組13亦可在進行該步驟62的時候同時進行該步驟64,並不以本實施例為限。It is worth mentioning that in the first embodiment, the server processing module 13 performs the step 62, the step 63, the step 64, and the step 65 in sequence, but in other embodiments, the The server-side processing module 13 can also perform the step 64 while performing the step 62, which is not limited to this embodiment.

之後在該步驟66中,該伺服端處理模組13根據該個股的該等股價預測值及該股票型基金的該等股價預測值,利用該修正分析模型產生多筆對應該個股的修正個股股價預測值,如此,投資者可根據該等修正個股股價預測值對該個股進行評估是否進行投資,藉此迴避可能發生的資產嚴重損失。Then, in step 66, the server-side processing module 13 uses the revised analysis model to generate multiple revised stock prices corresponding to the stock based on the stock price forecasts of the stock and the stock fund forecasts. Forecast value. In this way, investors can evaluate whether to invest in the stock based on the revised stock price forecast value, thereby avoiding possible serious asset losses.

最後在該步驟67中,藉由該伺服端處理模組13,判斷出該等修正個股股價預測值是否皆大於一預設值,當該伺服端處理模組13判斷出該等修正個股股價預測值皆大於該預設值時,隨即進行該步驟68,該伺服端處理模組13產生一相關於該個股的分析結果。舉例而言,當該伺服端處理模組13判斷出該等修正個股股價預測值皆大於該預設值時,其中該預設值為該個股當下的股價時,則代表該個股的後勢將會穩定上漲,並產生一指示出該個股屬於具有潛力並值得投資之股票的分析結果,藉此,對於不熟悉股票的投資者,亦可根據該分析結果選擇欲投資的股票,進而避免不當投資造成資產損失。另一方面,當該伺服端處理模組13判斷出該等修正個股股價預測值並未皆大於該預設值時,則結束該預測程序。Finally, in step 67, the server-side processing module 13 determines whether the revised stock price forecasts are greater than a preset value. When the server-side processing module 13 determines the revised stock price forecasts When the values are greater than the preset value, step 68 is performed immediately, and the server-side processing module 13 generates an analysis result related to the stock. For example, when the server-side processing module 13 determines that the revised stock price forecast values are greater than the preset value, where the preset value is the current stock price of the stock, it means that the stock's future potential will It will rise steadily and produce an analysis result indicating that the stock is a stock with potential and worth investing in. By this, investors who are not familiar with stocks can also choose the stocks they want to invest in based on the analysis result to avoid improper investment Cause asset loss. On the other hand, when the server-side processing module 13 determines that the revised stock price prediction values are not all greater than the preset value, the prediction procedure is ended.

補充說明的是,在該第一實施例中,係自該步驟61執行至該步驟68,但在其他實施例中,亦可自該步驟61執行至該步驟66即結束,並不以該第一實施例為限。It is supplemented that in the first embodiment, it is executed from the step 61 to the step 68, but in other embodiments, it can also be executed from the step 61 to the end of the step 66 instead of the step. One embodiment is limited.

綜上所述,本發明股票預測方法主要是藉由該伺服端處理模組13,根據相關於該個股的該等個股股價及相關於該股票型基金的該等基金股價,利用該技術分析模型、該個股分析模型、該整體分析模型,及該修正分析模型,獲得對應該個股的該等股價預測值、對應該股票型基金的該等股價預測值,以及對應該個股的該等修正個股股價預測值,藉此,投資者可根據該等受相關於整體股市趨勢的該股票型基金的該等基金股價影響的修正個股股價預測值,得知該個股是否是較為穩健的股票,亦或是隨整體股市趨勢而動盪的不健全股票,進而根據該等資訊進行投資以避免資產的嚴重損失,另一方面,當該伺服端處理模組13判斷出該等修正個股股價預測值皆大於該預設值時,該伺服端產生一指示出該個股屬於具有潛力並值得投資之股票的分析結果,藉此,對於不熟悉股票投資的投資者也能夠根據該分析結果選擇欲投資的股票,從而避免了因為不熟悉股票投資市場而造成的資產嚴重損失,而值得特別說明的是,透過調整該修正訓練資料包括的內容為多筆訓練個股股價、多筆訓練基金股價,及對應該訓練股票型基金在該當前時間區間的多筆訓練修正基金股價,利用機器學習演算法建立用以產生多筆對應該股票型基金的修正基金股價預測值的另一修正分析模型,使得本發明不僅能夠應用於對於個股的股價分析,還能夠應用於對於股票型基金的股價進行分析判斷,故確實能達成本發明的目的。In summary, the stock prediction method of the present invention mainly uses the server-side processing module 13 to use the technical analysis model based on the stock prices related to the stock and the fund stock prices related to the stock fund. , The stock analysis model, the overall analysis model, and the modified analysis model to obtain the stock price forecast values of the corresponding stocks, the stock price forecast values of the stock funds, and the revised stock prices of the corresponding stocks Forecast value, by this, investors can know whether the stock is a relatively stable stock or not based on the revised stock price forecast value of the fund's stock prices related to the overall stock market trend. Unsound stocks that fluctuate with the overall stock market trend are then invested based on this information to avoid serious asset losses. On the other hand, when the server-side processing module 13 determines that the revised stock price forecasts are all greater than the forecast When setting the value, the server generates an analysis result indicating that the stock is a stock that has potential and is worth investing. In this way, investors who are not familiar with stock investment can also choose the stock to invest based on the analysis result, thereby avoiding Because of the serious loss of assets caused by unfamiliarity with the stock investment market, it is worth mentioning that by adjusting the revised training data, the content included is multiple training stock stock prices, multiple training fund stock prices, and corresponding training stock funds In the current time interval, the multiple training correction fund stock prices, using machine learning algorithms to establish another correction analysis model used to generate multiple correction fund stock price forecasts corresponding to stock funds, so that the present invention can not only be applied to The stock price analysis of individual stocks can also be used to analyze and judge the stock prices of stock funds, so it can indeed achieve the purpose of the invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention. When the scope of implementation of the present invention cannot be limited by this, all simple equivalent changes and modifications made in accordance with the scope of the patent application of the present invention and the content of the patent specification still belong to Within the scope covered by the patent of the present invention.

1:伺服端 100:通訊網路 11:伺服端通訊模組 12:伺服端儲存模組 13:伺服端處理模組 2:管理端 21:管理端通訊模組 22:管理端輸入模組 23:管理端處理模組 31~35:步驟 41~45:步驟 51~55:步驟 61~68:步驟1: Server 100: Communication network 11: Server communication module 12: Server-side storage module 13: Server-side processing module 2: Management side 21: Management terminal communication module 22: Management terminal input module 23: Management end processing module 31~35: Steps 41~45: Steps 51~55: Steps 61~68: Steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊圖,說明實施本發明股票預測方法的一第一實施例的一股票預測系統; 圖2是一流程圖,說明本發明股票預測方法的該第一實施例中的一個股分析模型建立程序; 圖3是一流程圖,說明本發明股票預測方法的該第一實施例中的一整體分析模型建立程序; 圖4是一流程圖,說明本發明股票預測方法的該第一實施例中的一修正分析模型建立程序;及 圖5是一流程圖,說明本發明股票預測方法的該第一實施例中的一預測程序。 Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, in which: Figure 1 is a block diagram illustrating a stock prediction system implementing a first embodiment of the stock prediction method of the present invention; 2 is a flowchart illustrating a stock analysis model establishment procedure in the first embodiment of the stock prediction method of the present invention; FIG. 3 is a flowchart illustrating an overall analysis model establishment procedure in the first embodiment of the stock prediction method of the present invention; 4 is a flowchart illustrating a modification analysis model establishment procedure in the first embodiment of the stock prediction method of the present invention; and FIG. 5 is a flowchart illustrating a prediction procedure in the first embodiment of the stock prediction method of the present invention.

61~68:步驟 61~68: Steps

Claims (10)

一種股票預測方法,藉由一連接一管理端的伺服端實施,該伺服端儲存有一筆個股在一當前時間區間中的多筆個股股價、一筆相關於整體股市趨勢的股票型基金在該當前時間區間中的多筆基金股價、一用於根據多筆股價產生多筆技術指標的技術分析模型、一用於根據相關於一待預測個股在該當前時間區間的多筆技術指標產生多筆相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價的股價預測值的個股分析模型、一用於根據相關於一待預測股票型基金在該當前時間區間的多筆技術指標產生多筆相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的整體分析模型,以及一用於根據該待預測個股的該等股價預測值和該待預測股票型基金的該等股價預測值,產生該待預測個股的該等股價預測值受該待預測股票型基金的該等股價預測值影響的多筆修正股價預測值的修正分析模型,該股票預測方法包含以下步驟: (A)當該伺服端接收到來自該管理端且相關於該個股的分析請求時,藉由該伺服端,根據相關於該個股的該等個股股價,利用該技術分析模型,產生相關於該個股的多筆個股技術指標; (B)藉由該伺服端,根據該等個股技術指標,利用該個股分析模型產生對應該個股的多筆股價預測值; (C)藉由該伺服端,根據相關於該股票型基金的該等基金股價,利用該技術分析模型,產生相關於該股票型基金的多筆基金技術指標; (D)藉由該伺服端,根據該等基金技術指標,利用該整體分析模型產生對應該股票型基金的多筆股價預測值;及 (E)藉由該伺服端,根據該個股的該等股價預測值及該股票型基金的該等股價預測值,利用該修正分析模型產生多筆對應該個股的修正個股股價預測值。 A stock prediction method implemented by a server connected to a management terminal. The server stores multiple stock prices of individual stocks in a current time interval, and a stock fund related to the overall stock market trend in the current time interval. The multiple fund stock prices in the multiple fund stock prices, one used to generate multiple technical analysis models based on multiple stock prices, and one used to generate multiple technical indicators related to the current time interval based on multiple technical indicators related to a stock to be predicted A stock analysis model for the stock price prediction value of the stock price of a stock to be predicted in a future time interval later than the current time interval, one used to generate multiple technical indicators related to a stock fund to be predicted in the current time interval An overall analysis model related to the stock price forecast value of the stock fund to be predicted in the future time interval, and an overall analysis model for the stock price forecast value of the stock to be forecasted and the stock price forecast value of the stock fund to be forecast The stock price forecast value generates a revised analysis model of multiple revised stock price forecast values in which the stock price forecast values of the stocks to be predicted are affected by the stock price forecast values of the stock funds to be predicted. The stock forecast method includes the following steps: (A) When the server receives an analysis request from the management terminal related to the stock, the server uses the technical analysis model to generate the analysis request related to the stock based on the stock price of the stock. Multiple technical indicators of individual stocks; (B) Through the server, according to the technical indicators of the individual stocks, the individual stock analysis model is used to generate multiple stock price forecasts corresponding to the individual stocks; (C) Using the server to generate multiple fund technical indicators related to the stock fund by using the technical analysis model based on the fund stock prices related to the stock fund; (D) Through the server, based on the fund technical indicators, the overall analysis model is used to generate multiple stock price forecasts corresponding to stock funds; and (E) Using the server, according to the stock price forecasts of the stock and the stock fund forecasts, the revised analysis model is used to generate multiple revised stock price forecasts corresponding to individual stocks. 如請求項1所述的股票預測方法,該伺服端還儲存有多筆分別對應多個訓練個股的個股訓練資料,每一個股訓練資料包括對應該訓練個股在一早於該當前時間區間的先前時間區間中的多筆訓練個股技術指標,及在該當前時間區間中的多筆訓練個股股價,該股票預測方法還包含以下步驟: (F)藉由該伺服端,將該等個股訓練資料分為一訓練子集和一測試子集; (G)藉由該伺服端,根據該訓練子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,利用一機器學習演算法,建立一根據相關於該待預測個股在該當前時間區間的該等技術指標產生該等相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價預測值的第一訓練模型; (H)藉由該伺服端,根據該測試子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,判斷出該第一訓練模型的預測正確率是否大於一第一門檻值; (I)當該伺服端判斷出該第一訓練模型的預測正確率並未大於該第一門檻值時,該伺服端根據該訓練子集調整該第一訓練模型並進行該步驟(H);及 (J)當該伺服端判斷出該第一訓練模型的預測正確率大於該第一門檻值時,該伺服端確認該第一訓練模型為該個股分析模型。 For the stock prediction method described in claim 1, the server also stores a number of individual stock training data corresponding to multiple training stocks, and each stock training data includes the previous time corresponding to the training stock earlier than the current time interval The multiple training stock technical indicators in the interval, and the multiple training stock stock prices in the current time interval, the stock prediction method further includes the following steps: (F) Using the server, the training data of the individual stocks are divided into a training subset and a test subset; (G) Using the server, based on the technical indicators of the training stocks and the stock prices of the training stocks corresponding to the training data of each stock in the training subset, a machine learning algorithm is used to establish a basis related to the to-be-predicted The technical indicators of the individual stock in the current time interval generate the first training models related to the stock price prediction value of the stock to be predicted in a future time interval later than the current time interval; (H) Using the server to determine whether the prediction accuracy of the first training model is greater than the first training model based on the training stock technical indicators and the training stock price corresponding to the training data of each stock in the test subset A threshold (I) When the server determines that the prediction accuracy of the first training model is not greater than the first threshold, the server adjusts the first training model according to the training subset and performs the step (H); and (J) When the server determines that the prediction accuracy of the first training model is greater than the first threshold, the server confirms that the first training model is the stock analysis model. 如請求項1所述的股票預測方法,該伺服端還儲存有多筆分別對應多個訓練股票型基金的基金訓練資料,每一基金訓練資料包括對應該訓練股票型基金在一早於該當前時間區間的先前時間區間中的多筆訓練基金技術指標,及在該當前時間區間中的多筆訓練基金股價,該股票預測方法還包含以下步驟: (K)藉由該伺服端,將該等基金訓練資料分為另一訓練子集和另一測試子集; (L)藉由該伺服端,根據該另一訓練子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,利用一機器學習演算法,建立一根據相關於該待預測股票型基金在該當前時間區間的該等技術指標產生該等相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的第二訓練模型; (M) 藉由該伺服端,根據該另一測試子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,判斷出該第二訓練模型的預測正確率是否大於一第二門檻值; (N)當該伺服端判斷出該第二訓練模型的預測正確率並未大於該第二門檻值時,該伺服端根據該另一訓練子集調整該第二訓練模型並進行該步驟(M);及 (O)當該伺服端判斷出該第二訓練模型的預測正確率大於該第二門檻值時,該伺服端確認該第二訓練模型為該整體分析模型。 For the stock prediction method described in claim 1, the server also stores multiple fund training data corresponding to multiple training stock funds, and each fund training data includes the corresponding training stock fund earlier than the current time For multiple training fund technical indicators in the previous time interval of the interval, and multiple training fund stock prices in the current time interval, the stock prediction method further includes the following steps: (K) Using the server to divide the fund training data into another training subset and another test subset; (L) Using the server, based on the training fund technical indicators and the training fund stock prices corresponding to the training data of each fund in the other training subset, a machine learning algorithm is used to establish a basis related to the The technical indicators of the stock fund to be predicted in the current time interval generate the second training models related to the stock price prediction value of the stock fund to be predicted in the future time interval; (M) Using the server, according to the training fund technical indicators and the training fund stock prices corresponding to the training data of each fund in the other test subset, determine whether the prediction accuracy of the second training model is greater than A second threshold; (N) When the server determines that the prediction accuracy of the second training model is not greater than the second threshold, the server adjusts the second training model according to the other training subset and performs the step (M );and (O) When the server determines that the prediction accuracy of the second training model is greater than the second threshold, the server confirms that the second training model is the overall analysis model. 如請求項1所述的股票預測方法,該伺服端還儲存有多筆修正訓練資料,每一修正訓練資料包括對應該訓練個股在該當前時間區間的多筆訓練個股股價,對應該訓練股票型基金在該當前時間區間的多筆訓練基金股價,及對應該訓練個股在該當前時間區間的多筆訓練修正個股股價,該股票預測方法還包含以下步驟: (P)藉由該伺服端,將該等修正訓練資料分為又一訓練子集及又一測試子集; (Q)藉由該伺服端,根據該又一訓練子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,利用一機器學習演算法,建立一根據對應該待預測個股的該等股價預測值和對應該待預測股票型基金的該等股價預測值,產生該等修正股價預測值的第三訓練模型; (R)藉由該伺服端,根據該又一測試子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,判斷出該第三訓練模型的預測正確率是否大於一第三門檻值; (S)當該伺服端判斷出該第三訓練模型的預測正確率並未大於該第三門檻值時,該伺服端根據該又一訓練子集調整該第三訓練模型並進行該步驟(R);及 (T)當該伺服端判斷出該第三訓練模型的預測正確率大於該第三門檻值時,該伺服端確認該第三訓練模型為該修正分析模型。 For the stock prediction method described in claim 1, the server also stores a number of modified training data, and each modified training data includes a number of training stock prices corresponding to the training stock in the current time interval, corresponding to the training stock type The multiple training fund stock prices of the fund in the current time interval, and the multiple training correction individual stock stock prices corresponding to the training stocks in the current time interval, the stock prediction method also includes the following steps: (P) By the server, the modified training data is divided into another training subset and another test subset; (Q) With the server, based on the training stock price, the training fund stock price, and the training correction stock price of each modified training data in the another training subset, a machine learning algorithm is used to create 1. Generate the third training model for the revised stock price forecast values based on the stock price forecast values corresponding to the stocks to be forecasted and the stock price forecast values corresponding to the stock funds to be forecasted; (R) Using the server, based on the training stock price, the training fund stock price, and the training correction stock price of each modified training data in the further test subset, determine the third training model's Whether the prediction accuracy rate is greater than a third threshold; (S) When the server determines that the prediction accuracy of the third training model is not greater than the third threshold, the server adjusts the third training model according to the another training subset and performs the step (R );and (T) When the server determines that the prediction accuracy of the third training model is greater than the third threshold, the server confirms that the third training model is the modified analysis model. 如請求項1所述的股票預測方法,在該步驟(E)後還包含以下步驟: (U)藉由該伺服端,判斷該等修正個股股價預測值是否皆大於一預設值,當該伺服端判斷該等修正個股股價預測值皆大於該預設值時,該伺服端產生一相關於該個股的分析結果。 The stock prediction method as described in claim 1, after this step (E), further includes the following steps: (U) Use the server to determine whether the revised stock price forecast values are greater than a preset value. When the server determines that the revised stock price forecasts are greater than the preset value, the server generates a Related to the analysis results of the stock. 一種伺服端,用於股票預測,並經由一通訊網路連接至一管理端,該伺服端包含: 一伺服端通訊模組,連接至該通訊網路; 一伺服端儲存模組,儲存有一筆個股在一當前時間區間中的多筆個股股價、一筆相關於整體股市趨勢的股票型基金在該當前時間區間中的多筆基金股價、一用於根據多筆股價產生多筆技術指標的技術分析模型、一用於根據相關於一待預測個股在該當前時間區間的多筆技術指標產生多筆相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價的股價預測值的個股分析模型、一用於根據相關於一待預測股票型基金在該當前時間區間的多筆技術指標產生多筆相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的整體分析模型,以及一用於根據該待預測個股的該等股價預測值和該待預測股票型基金的該等股價預測值,產生該待預測個股的該等股價預測值受該待預測股票型基金的該等股價預測值影響的多筆修正股價預測值的修正分析模型;及 一伺服端處理模組,電連接該伺服端通訊模組及該伺服端儲存模組; 其中,當該伺服端處理模組透過該伺服端通訊模組經由該通訊網路接收到來自該管理端且相關於該個股的分析請求時,該伺服端處理模組根據相關於該個股的該等個股股價,利用該技術分析模型產生相關於該個股的多筆個股技術指標,並根據該等個股技術指標,利用該個股分析模型產生對應該個股的多筆股價預測值,且根據相關於該股票型基金的該等基金股價,利用該技術分析模型產生相關於該股票型基金的多筆基金技術指標,並根據該等基金技術指標,利用該整體分析模型產生對應該股票型基金的多筆股價預測值,以及根據該個股的該等股價預測值及該股票型基金的該等股價預測值,利用該修正分析模型產生多筆對應該個股的修正個股股價預測值。 A server terminal used for stock forecasting and connected to a management terminal via a communication network. The server terminal includes: A server-side communication module, connected to the communication network; A server-side storage module that stores multiple stock prices of a single stock in a current time interval, multiple stock prices of a stock fund related to the overall stock market trend in the current time interval, and one for multiple basis A technical analysis model for generating multiple technical indicators for a stock price, one for generating multiple technical indicators related to a stock to be predicted in the current time interval based on multiple technical indicators related to the stock to be predicted one day later than the current time interval The stock analysis model of the stock price prediction value of the stock price in the future time interval, and one is used to generate a plurality of related to the stock fund to be predicted in the future based on the multiple technical indicators related to the stock fund to be predicted in the current time interval The overall analysis model of the stock price forecast value of the stock price in the time interval, and a method used to generate the stock price forecast value of the stock stock to be forecasted and the stock price forecast value of the stock fund to be forecasted. A revised analysis model of multiple revised stock price forecasts whose stock price forecast value is affected by the stock price forecast values of the stock-type fund to be predicted; and A server-side processing module, electrically connected to the server-side communication module and the server-side storage module; Wherein, when the server-side processing module receives an analysis request related to the stock from the management terminal via the communication network through the server-side communication module, the server-side processing module is based on the analysis request related to the stock The stock price of an individual stock is used to generate multiple stock technical indicators related to the stock using the technical analysis model, and the stock analysis model is used to generate multiple stock price forecasts corresponding to the stock based on the technical indicators of the individual stocks. The stock price of these funds of the fund, using the technical analysis model to generate multiple fund technical indicators related to the stock fund, and based on the fund technical indicators, using the overall analysis model to generate multiple stock prices corresponding to the stock fund The predicted value, and based on the predicted value of the stock price of the stock and the predicted value of the stock price of the stock fund, the revised analysis model is used to generate multiple revised stock price forecasts corresponding to the individual stocks. 如請求項6所述的伺服端,其中,該伺服端儲存模組還儲存有多筆分別對應多個訓練個股的個股訓練資料,每一個股訓練資料包括對應該訓練個股在一早於該當前時間區間的先前時間區間中的多筆訓練個股技術指標,及在該當前時間區間中的多筆訓練個股股價,該伺服端處理模組將該等個股訓練資料分為一訓練子集和一測試子集,並根據該訓練子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,利用一機器學習演算法,建立一根據相關於該待預測個股在該當前時間區間的該等技術指標產生該等相關於該待預測個股在一晚於該當前時間區間之未來時間區間之股價預測值的第一訓練模型,且根據該測試子集中每一個股訓練資料所對應的該等訓練個股技術指標及該等訓練個股股價,判斷出該第一訓練模型的預測正確率是否大於一第一門檻值,當該伺服端處理模組判斷出該第一訓練模型的預測正確率並未大於該第一門檻值時,該伺服端處理模組調整該第一訓練模型並重新進行判斷,當該伺服端處理模組判斷出該第一訓練模型的預測正確率大於該第一門檻值時,該伺服端處理模組確認該第一訓練模型為該個股分析模型。The server according to claim 6, wherein the server storage module further stores a plurality of individual stock training data corresponding to a plurality of training individual stocks, and each stock training data includes the training data corresponding to the training stock earlier than the current time Multiple training individual stock technical indicators in the previous time interval of the interval, and multiple training individual stock prices in the current time interval, the server-side processing module divides the training data of these individual stocks into a training subset and a tester According to the training data of each stock in the training subset and the corresponding training stock technical indicators and the training stock price, a machine learning algorithm is used to establish a basis for the current time interval related to the stock to be predicted The technical indicators generated the first training model related to the stock price prediction value of the stock to be predicted in a future time interval later than the current time interval, and according to the training data corresponding to each stock in the test subset The technical indicators of the training stocks and the stock prices of the training stocks determine whether the prediction accuracy rate of the first training model is greater than a first threshold. When the server-side processing module determines the prediction accuracy rate of the first training model When the value is not greater than the first threshold, the server-side processing module adjusts the first training model and re-determines. When the server-side processing module determines that the prediction accuracy of the first training model is greater than the first threshold Value, the server-side processing module confirms that the first training model is the individual stock analysis model. 如請求項6所述的伺服端,其中,該伺服端儲存模組還儲存有多筆分別對應多個訓練股票型基金的基金訓練資料,每一基金訓練資料包括對應該訓練股票型基金在一早於該當前時間區間的先前時間區間中的多筆訓練基金技術指標,及在該當前時間區間中的多筆訓練基金股價,該伺服端處理模組將該等基金訓練資料分為另一訓練子集和另一測試子集,並根據該另一訓練子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,利用一機器學習演算法,建立一根據相關於該待預測股票型基金在該當前時間區間的該等技術指標產生該等相關於該待預測股票型基金在該未來時間區間之股價的股價預測值的第二訓練模型,且根據該另一測試子集中每一基金訓練資料所對應的該等訓練基金技術指標及該等訓練基金股價,判斷出該第二訓練模型的預測正確率是否大於一第二門檻值,當該伺服端處理模組判斷出該第二訓練模型的預測正確率並未大於該第二門檻值時,該伺服端處理模組調整該第二訓練模型並重新判斷,當該伺服端處理模組判斷出該第二訓練模型的預測正確率大於該第二門檻值時,該伺服端處理模組確認該第二訓練模型為該整體分析模型。The server side according to claim 6, wherein the server side storage module also stores a plurality of fund training data corresponding to a plurality of training stock funds, and each fund training data includes the corresponding training stock fund in the morning. For multiple training fund technical indicators in the previous time interval of the current time interval, and multiple training fund stock prices in the current time interval, the server-side processing module divides the fund training data into another training sub Set and another test subset, and based on the training fund technical indicators and the training fund stock prices corresponding to the training data of each fund in the other training subset, a machine learning algorithm is used to establish a basis related to the The technical indicators of the stock fund to be predicted in the current time interval generate the second training models related to the stock price prediction value of the stock fund to be predicted in the future time interval, and according to the other test sub The technical indicators of the training funds and the stock prices of the training funds corresponding to the training data of each fund are collected to determine whether the prediction accuracy of the second training model is greater than a second threshold. When the server-side processing module determines When the prediction accuracy rate of the second training model is not greater than the second threshold, the server-side processing module adjusts the second training model and judges again. When the server-side processing module determines that the second training model is When the prediction accuracy rate is greater than the second threshold value, the server-side processing module confirms that the second training model is the overall analysis model. 如請求項6所述的伺服端,其中,該伺服端儲存模組還儲存有多筆修正訓練資料,每一修正訓練資料包括對應該訓練個股在該當前時間區間的多筆訓練個股股價,對應該訓練股票型基金在該當前時間區間的多筆訓練基金股價,及對應該訓練個股在該當前時間區間的多筆訓練修正個股股價,該伺服端處理模組將該等修正訓練資料分為又一訓練子集及又一測試子集,並根據該又一訓練子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,利用一機器學習演算法,建立一根據對應該待預測個股的該等股價預測值和對應該待預測股票型基金的該等股價預測值,產生該等修正股價預測值的第三訓練模型,且根據該又一測試子集中每一修正訓練資料的該等訓練個股股價、該等訓練基金股價,及該等訓練修正個股股價,判斷出該第三訓練模型的預測正確率是否大於一第三門檻值,當該伺服端處理模組判斷出該第三訓練模型的預測正確率並未大於該第三門檻值時,該伺服端處理模組調整該第三訓練模型並重新進行判斷,當該伺服端處理模組判斷出該第三訓練模型的預測正確率大於該第三門檻值時,該伺服端處理模組確認該第三訓練模型為該修正分析模型。The server according to claim 6, wherein the server storage module also stores a plurality of modified training data, and each modified training data includes a plurality of training stock prices corresponding to the training stock in the current time interval. The multiple training fund stock prices of the stock fund in the current time interval should be trained, and the multiple training stock price corrections corresponding to the training stocks in the current time interval should be trained. The server-side processing module divides the revised training data into further A training subset and another test subset, and based on the training stock price, the training fund stock price, and the training correction stock price of each modified training data in the another training subset, using a machine learning algorithm Method, establish a third training model that generates the revised stock price forecasts based on the stock price forecasts corresponding to the stocks to be forecasted and the stock fund forecasts corresponding to the stocks to be forecasted, and according to the other test In each of the modified training data in the subset, the stock price of the training stocks, the stock price of the training funds, and the stock price of the training modified stocks are used to determine whether the prediction accuracy of the third training model is greater than a third threshold. When the servo When the end processing module determines that the prediction accuracy of the third training model is not greater than the third threshold value, the server end processing module adjusts the third training model and re-judges. When the server end processing module determines When the prediction accuracy of the third training model is greater than the third threshold, the server-side processing module confirms that the third training model is the modified analysis model. 如請求項6所述的伺服端,其中,該伺服端處理模組還判斷該等修正個股股價預測值是否皆大於一預設值,當該伺服端處理模組判斷該等修正個股股價預測值皆大於該預設值時,該伺服端處理模組產生一相關於該個股的分析結果。The server side according to claim 6, wherein the server-side processing module also determines whether the revised stock price forecast values are all greater than a preset value, and when the server-side processing module determines the revised stock price forecast values When both are greater than the preset value, the server-side processing module generates an analysis result related to the stock.
TW109127316A 2020-08-12 2020-08-12 Stock prediction method and server end for stock prediction TWI732650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109127316A TWI732650B (en) 2020-08-12 2020-08-12 Stock prediction method and server end for stock prediction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109127316A TWI732650B (en) 2020-08-12 2020-08-12 Stock prediction method and server end for stock prediction

Publications (2)

Publication Number Publication Date
TWI732650B true TWI732650B (en) 2021-07-01
TW202207136A TW202207136A (en) 2022-02-16

Family

ID=77911326

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109127316A TWI732650B (en) 2020-08-12 2020-08-12 Stock prediction method and server end for stock prediction

Country Status (1)

Country Link
TW (1) TWI732650B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118279051A (en) * 2024-03-04 2024-07-02 江苏开放大学(江苏城市职业学院) Stock price inflection point prediction method and system based on big data processing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130066803A1 (en) * 2011-09-09 2013-03-14 Manish Pramod WORLIKAR System and methods for analyzing, computing and displaying depth of market volume strength
TWI470570B (en) * 2012-07-13 2015-01-21 Kuo Tsai Hu An evaluation method for security values, a method for portfolio process to construct the portfolio and a computer program product thereof for storing security information processing program
TWI490809B (en) * 2012-08-23 2015-07-01 Kuo Tsai Hu A method and a computer software application for security evaluation
TWM572029U (en) * 2018-12-21 Smart fund investment system
CN110335162A (en) * 2019-07-18 2019-10-15 电子科技大学 A kind of stock market quantization transaction system and algorithm based on deeply study
TWM605347U (en) * 2020-08-12 2020-12-11 中國信託商業銀行股份有限公司 Server side for stock prediction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM572029U (en) * 2018-12-21 Smart fund investment system
US20130066803A1 (en) * 2011-09-09 2013-03-14 Manish Pramod WORLIKAR System and methods for analyzing, computing and displaying depth of market volume strength
TWI470570B (en) * 2012-07-13 2015-01-21 Kuo Tsai Hu An evaluation method for security values, a method for portfolio process to construct the portfolio and a computer program product thereof for storing security information processing program
TWI490809B (en) * 2012-08-23 2015-07-01 Kuo Tsai Hu A method and a computer software application for security evaluation
CN110335162A (en) * 2019-07-18 2019-10-15 电子科技大学 A kind of stock market quantization transaction system and algorithm based on deeply study
TWM605347U (en) * 2020-08-12 2020-12-11 中國信託商業銀行股份有限公司 Server side for stock prediction

Also Published As

Publication number Publication date
TW202207136A (en) 2022-02-16

Similar Documents

Publication Publication Date Title
CN110223155A (en) Method for pushing, device and the computer equipment of investment recommendation information
CN101120371A (en) Controlling an order slicer for trading a financial instrument
US20130304622A1 (en) Methods and systems for computing trading strategies for use in portfolio management and computing associated probability distributions for use in option pricing
WO2005041101A1 (en) Analysis system for predicting performance
Bakhach et al. TSFDC: A trading strategy based on forecasting directional change
JP4320361B1 (en) Future financial forecasting system, future financial forecasting method, and future financial forecasting program
TWI732650B (en) Stock prediction method and server end for stock prediction
Zhang et al. Novel modelling strategies for high-frequency stock trading data
CN111127213A (en) Information processing method and device, storage medium and electronic equipment
TWM605347U (en) Server side for stock prediction
JP6771513B2 (en) Devices and methods for calculating default probability and programs for it
US20220164886A1 (en) Artificial intelligence financial analysis and reporting platform
WO2022064894A1 (en) Information processing device, information processing method, and program
KR20230000411A (en) Server, method and computer program for providing investment guide
RU2281556C1 (en) System and method for monitoring controlling of portfolios of financial tools with fixed profitability
JP7298286B2 (en) Model providing program, model providing method and model providing apparatus
WO2020037955A1 (en) Index tracking error analysis method and apparatus, storage medium and computer device
Nasseri et al. Evaluating the performances of over-the-counter companies in developing countries using a stochastic dominance criterion and a PSO-ANN hybrid optimization model
KR102562367B1 (en) Apparatus and method for providing investment information based on quant investment method
Koshiyama et al. A derivatives trading recommendation system: The mid‐curve calendar spread case
KR102136313B1 (en) Operating method of providing investment performance forecasting information based on artificial intelligence and server providing the same
EP1678675A1 (en) Analysis system for predicting performance
US20220284450A1 (en) System and method for determining sentiment index for transactions
US20230298102A1 (en) Deep bilateral learning and forecasting in quantitative investment
Kalekye A JUMP DIFFUSION MODEL WITH FAST MEAN REVERTING STOCHASTIC VOLATILITY FOR PRICING VULNERABLE OPTIONS