Generating method for transaction models with indicators for option
Granted 11 Jun 2013 · 2 office actions
Assignee: National Taiwan University of Science and Technology
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Po-Lin Yeh, Yen-Tseng Hsu, Yu-Tung Lin, Jerome Yeh +1 · Examiner: Richard C Weisberger · AU 3693 · TC 3600
Life of the application
10 dated eventsAbstract
The invention is to provide a generating method for transaction models with indicators for option. The method comprises: (S 1 ) collecting a variety of indicators from the financial market; (S 2 ) establishing an indicator pool saved with the indicators; (S 3 ) distinguishing and classifying the indicators by Neural Network; (S 4 ) determining a plurality of transaction models, the indicator of each transaction model in an independent classification; (S 5 ) determining a date parameter for each indicator; (S 6 ) deleting a part of the transaction models; (S 7 ) determining a plurality of final transaction models from another transaction models; and (S 8 ) determining a weight of each final transaction model.
Description
10 parts›BACKGROUND OF THE INVENTION
1. Field of the Invention
The invention is related to a generating method for transaction models with indicators for option by the artificial intelligence techniques.
2. Description of the Prior Art
Taiwan financial markets develop very well in recent years, wherein the options market is more representative. In the options market, investors need to maintain a certain amount of margin for having the opportunity to use a high degree of financial leverage to obtain the extraordinary profits, while the options also provide a hedge, therefore a lot of foreign money is attracted into Taiwan market as a hedge for making Taiwan financial market more active and healthy.
The analysis of the stock market generally is divided into fundamental analysis and technical analysis, wherein the fundamental analysis have many factors to be considered, including domestic and international political situation, the Government's policy on the stock market, economic development, financial profiles, the overall analysis of the public limited company, operating performance and stock market conditions and other capital flows. It is difficult to find out from the fundamental factors influencing the market trends and the regularity. Therefore the technical analysis can be widely used by the public. Technical analysis utilizes statistical and mathematical ways for summarizing some of the features based on the linear indices derived from the historical information such as stock price and trading volume, so as to predict the possible future direction of the market.
With the advance of computer technology, the program trading systems become new transactions in recent years. The program trading systems utilize computerized trading tools, technical analysis, fundamental analysis model, characteristics and periodic fluctuations in commodity prices or other information such as logical thinking, into the program code to generate a transaction model, as a basis of judging trends. The traders buy or sell according to the signal of the system, rather than their own views. Therefore, the systems exclude investors making unreasonable action of buying and selling because of the emotional reaction generated by the trends. In addition, the systems can also eliminate unnecessary operations by the uniform trading rules. The computer orders are gradually replacing the previous hit single man. Therefore, the program trading has become increasingly high proportion and attracted more and more attention both at home and abroad.
Because the investment develops very well in recent years, various new methods of technical analysis or indicators are constantly proposed and widely used. If the investor uses only one technical analysis method, the prediction of the trend of the market is bound to be not accurate, but if the investor uses a number of technical analyses, the investor suffers a loss when technical analysis methods in the trading signals shown conflicting. Meanwhile, the combination of technical indicators is often not the simple presentation that one plus one equals two, some may indeed be able to complement each other, but often they will interfere with each other. Therefore, how to integrate a number of technical indicators messages has become the urgent issue that the technology field faced, that is also the focus with many investors concerned.
›SUMMARY OF THE INVENTION
The prior transaction models usually utilize one or two technical indicators, as a reference signal in the market trading after the common parameters are used, but the parameters are inconvenient to be adjusted and the small amount of indicators easily cause a bias, the market trade in the accordance with the prior transaction models will easily lead to financial losses. In view of the present issue, one scope of the present invention is to provide a generating method for transaction models with indicators for option. The present invention utilizes the artificial intelligence techniques to create a transaction model generator of transaction models with indicators for option. Because of the features of multi-indicators and multi-models, the present invention is able to be used with the common complex trading strategies. More specifically, the present invention utilizes the artificial intelligence technology for constructing the start-up of indicators, the transaction model and the final model and completing a transaction models with indicators for option which is able to have a good performance no matter in the stability, credibility, and all aspects of fitness, wherein the artificial intelligence techniques include neural networks, Genetic Algorithm, grey relationship analysis.
The main purpose of the present invention is to provide a program transaction model as a reference of the trading of option market for the investors by artificial intelligence techniques. The present invention can further help the public to increase profit and beat the market.
The second purpose of the present invention is to provide an application of a variety of academic technology into the market for achieving the results of academic and actual practice complement with each other.
In one embodiment of the present invention, a generating method for transaction models with indicators for option comprises the following steps of: (S 1 ) collecting a plurality of indicators from the financial market; (S 2 ) establishing an indicator pool saved with the indicators; (S 3 ) distinguishing and classifying the indicators by a neural network; (S 4 ) determining a plurality of transaction models, wherein the indicator of each transaction model is an independent classification; (S 5 ) determining a date parameter for each indicator; (S 6 ) deleting a part of the transaction models; (S 7 ) determining a plurality of final transaction models from the other transaction models; and (S 8 ) determining a weight of each final transaction model.
The objective of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment, which is illustrated in following figures and drawings.
›BRIEF DESCRIPTION OF THE APPENDED DRAWINGS
FIG. 1 is a flow diagram of an embodiment of the invention.
FIG. 2 is a Gaussian distribution diagram.
FIG. 3 is a standardized distribution diagram similar to Gaussian distribution.
FIG. 4 is a flow diagram of Genetic Algorithm.
FIG. 5 is a flow diagram of the overall process.
FIG. 6 is a flow diagram of the grey relational analysis.
›DETAILED DESCRIPTION OF THE INVENTION
Please refer to FIG. 1 to FIG. 6 . The present invention collects a plurality of indicators in different stocks from the financial market. Each indicator has a date parameter as the step of (S 1 ).
And then, the present invention establishes an indicator pool saved with the indicators as the step of (S 2 ). The indicators saved in the indicator pool will become the basic elements for generating a transaction model with indicators for option. Therefore, it is better while the variety and number of the indicators are more. But, for the purpose of balancing the distribution of the variety for preventing the problem of model type bias when the fundamental model is built, the present invention distinguishes and classifies the indicators by a neural network as the step of (S 3 ). In the embodiment of the present invention, the indicators comprise the composite index number, trading volume, financing and short sale. The indicators can also comprise the index number of over the counter, trading volume, financing and short sale in other embodiment.
Since 1943, McCulloch and Pitts proposed the basic computing model of neural computation element, but such a neural computation element model is not widely used because the model did not have the ability of learning. Until 1949, a learning way was proposed by the Hebb, some experimental results in psychology were able to be explained. Thus the learning way was known as Hebbian learning rule. Since the neural network was applied more successfully in practice. Rosenblatt used the perceptron to work in character recognition, and Widrow and Hoff proposed adaptive linear element which has been widely applied in the signal processing. The neural network used by the present invention is ART-2, which can handle a continuous signal. ART-2 is a kind of Unsupervised Learning Network. The neural network of Unsupervised Learning Network is able to discover a plurality of important or negligible characteristics from the information in the absence of expected output value, so that the information was made as the clustering, the theory is described below:
The basic idea of design of ART-2 uses competitive learning and self-stabilizing learning mechanism. The system of ART-2 is divided into a F1 layer and a F2 layer. The F1 layer comprises seven sub-layer of W, X, U, V, P, Q and R. The signal S is inputted from the F1 layer, processed by the F1 layer and combined with the bottom-up weights bij as the input signal of F2. When the signal is inputted, the nodes of the F2 layer compete with each other, and generate the winning unit, and then return the signal to the F1 layer by tji. The system calculates a matching value of the input and tji and compares the matching value with a warning value in the F1 layer. If the matching value is greater than the warning value, the system changes the weight value of bij and tji; if the matching value less than the warning value, the system sends a reset signal to the F2 layer for restraining the winning unit, and finds other better units again in the F2 layer; if all the units in the F2 layer has been restrained, the system will generate a new processing unit, and set the weights.
The present invention gets a classified indicator pool by the following ART-2 process:
The values of the characteristics of the F1 layer:
Step 1 is to initialize parameters and weight: a, b, c, d, e, α, ρ, wherein a=b; c and d must satisfy
c d 1 - d ≤ 1 ;
the α is the learning rate; ρ is the warning value, the initial weights are t 0i =0,
b i 0 = 1 ( 1 - d ) n ,
wherein n is an example of the attribute number.
Step 2 is to apply several learning cycles from step 3 to 12 when entering an indicator of training examples.
›Step 3 is to change the values of the characteristics of the F1 layer
u i =0; p i =0; q i =0; w i =s i ;
Step 4 is to change the values of the characteristics of the F1 layer again, and calculating (1) to (6).
›Step 5 is to calculate the values of the characteristics of the F2 layer
y j =Σb ij p i (8)
Step 6 is to apply step 7 to 8 when a reset value is true.
Step 7 is to find the maximum unit J from the characteristics of the F2 layer.
›Step 8 is to test the warning value
Calculating (1), (3) and
If ∥r∥<p−e, let y J =−1, restrain the unit J and return step 5 .
If ∥r∥≧p−e, calculate (2), (4), (5), (6) and process step 9 .
›Step 10 is change the weight value of the unit J · 1 of 2
t Ji =adu i +[1 +ad ( d− 1)] t Ji (10)
b iJ =adu i +[1 +ad ( d− 1)] b iJ (11)
Step 11 is to change the values of the characteristics of the F1 layer, and calculating (1) to (6).
Step 12 is to test if the times of changing weight reaching the pre-set number.
Step 13 is to test if the times of learning cycles reaching the pre-set number.
After the classification of the ART-2, the classified indicator pool is generated, and in the classified indicator pool, the present invention further uses a Fisher Transform as a way to improve the performance of the indicators. Gaussian Probability Distribution Function is commonly used in simulating the stock market information, but in fact the stock market data is rarely shown as the general distribution as FIG. 2 , wherein one of the reasons for many technical indicators cannot successfully simulate as expected.
To solve this problem, the present invention uses a convergent Fisher Transform for converting a variety of probability distribution curves to a distribution similar to Gaussian distribution. The conversion equation is shown as follows:
Inverse Fisher Transform (IFT):
The trading price of option or the value of indicator must be standardized to the value between +1 and −1 as being the input, the output result as shown in FIG. 3 . When the input value is close to the average, the output will approach zero; conversely when the input value is close to extremum (+1 or −1), the output will be significantly strengthened. Thus, the noise appeared frequently and originally will be filtered, the turning points of indicators peak will become relatively minority events, which highlight the real linear twist and give clearer instructions while buy or sell.
After completing the collection, classification and strengthening of indicators, two to four indicators are taken as a group, selected randomly into several transaction models. In each model, indicators cannot belong to the same classification as the step of (S 4 ). Because each indicator has its outstanding place, it may have a particularly good performance in the rising session, the sagging session or the correcting session. However the performance in other session may be disappointing. After classification, the outstanding and failed performance of the indicators in the same class may be mutually same. If the model comprises the same types of indicators, the model will be limited in certain sessions rather than adapting to the rapidly changing stock market and bring out a similar model.
Then, processing the step of (S 5 ) determining a date parameter for each indicator. In each model, each indicator has its own date parameters. Each proportion of the indicator in the model is also the decision-making power intensity of buying, selling, liquidation, or no-action, which are represented by the weight parameter. The present invention utilizes Genetic Algorithm to decide these parameters, the flow diagram is shown in FIG. 4 . The above parameters are regarded as a chromosome and a fitness function is generated from the parameters of Total Net Profit (TNP), Percent profitable (PP), Profit Factor (PF) and Duty Ratio (DR), which are assessed by the model, in accordance with the following equation:
f ( x ) = TNP × PP × PF DR , ( 13 )
and the fitness of the chromosome is calculated based on the results. Although Genetic Algorithm can only find the approximate solution, but in fact a true optimal solution is not needed. Because the excessive optimization may be overfitting, and these parameters after the process of the present invention will gradually weaken its influence. Thus, the only thing is to find the approximate solution.
Even utilizing Genetic Algorithm to find the best parameter solution, the performance of some models may still be unsatisfactory, these part of the models must be removed no matter the reason is the composed that the indicators are in conflict with each other, or any other reason. Therefore, an assessment process is required to determine whether the model generated at this stage should be removed, the present invention utilizes a back measurement way to determine the fate of the model as the step of (S 6 ). The method is setting a fixed length of Far-Data interval and Near-Data interval, the Far-Data interval is an interval of the past time; the Near-Data interval is an interval close to the current time, the performance of the Far-Data interval and the Near-Data interval start to calculate from a certain point in past time, as the time forward, the Far-Data interval and the Near-Data interval will advance to the current time point. Each performance of the Far-Data interval and the Near-Data interval generated will calculate their scores with equation (13), and calculate the final score with the rate of Near-Data×60%+Far-Data×40%. A model will be removed when the model is in the behind of 20% in a period, the overall process is shown in FIG. 5 .
After establishing a number of models, too much alike models also must be avoid, but in fact, between the various quality models, most of the profit place and the loss place are repeated. After the optimization by Genetic Algorithm and the assessment by the back measurement way, a number of models will have a certain similarity. Therefore, the present invention utilizes the grey relational analysis in the grey system theory to select a plurality of final transaction models from the other transaction models as the step of (S 7 ).
In the grey relational analysis, Grey relational grade is defined as the association between two sequences. In calculating the grey relational grade, if only a sequence x 0 (k) is selected as a reference sequence, is called “Localized Grey Measure.” If any one of the sequences x i (k) can be as a reference sequence, is called “Globalized Grey Measure.” In the embodiment of the present invention, the grey relational analysis is based on the grey relationship of the distance between the sequences, the grey relationship of the slope between the sequences, the grey relationship of the area between the sequences or the combination of the grey relationship.
›Step 10 is change the weight value of the unit J · 2 of 2
Since the invention is based on a realized and unrealized profit curve of a model as a reference sequence to calculate the relationship of the other models, the method utilized to calculate the relationship is “Localized Grey Measure.”
First calculate the absolute distance Δ 0i (k) between x i (k) and x 0 (k), wherein i=1, . . . , m. k=1, . . . , nεN, then calculate a distance grey relational coefficient ξ 0,i (k) in all the point by comparing the sequences x i with the reference sequences x 0 , and last calculate a grey relationship of the distance γ 0,i between the sequences x i and the sequences x 0 .
wherein
Δ 0,i ( k )=| x 0 ( k )− x i ( k ) (16)
Δ ma x = max i max k Δ 0 , i ( k ) ( 17 ) Δ m i n = min i min k Δ 0 , i ( k ) ( 18 )
i=1, 2, . . . , m k=1, 2, . . . , n
The flow diagram is shown in FIG. 6 . The grey relational coefficient ξ is a real number between 0 to 1. Summing up the grey relationship of the realized and unrealized profit curve of each model to other models can get γ sum (j), j=1, 2, . . . , m, and last selecting a number of models in the front minimum γ sum to consist the final transaction model.
When the multi-models are applied, which are more indicators, to make decisions, the majority rule is not a good way because each model has its own section. A simple voting system cannot be revealed by individual characteristics in a rapidly changing stock market. So the present invention uses a weighted voting system to solve this problem. The weighted voting system is that each model of the composition of the final transaction model voting for the sale of the investment will no longer be simple to a ticket of buying, selling or liquidation, which is the first type of equality, but according to the performance of the model so far converse the voting weight, the model of good performance has a higher decision power naturally, but also to be considered such a mechanism may ultimately lead to “a dominant mode” of the situation, therefore, the present invention utilizes Hamming distance for determining a weight of each final transaction model as the step of (S 8 ).
Let the domain is U, U(k)={u 1 (k), u 2 (k), u 3 (k)}, k=1, 2, . . . , μ, u 1 represents a set of cumulative winning percentage of the day; u 2 represents a number of points of cumulative profits of the day; u 3 represents a number of times of cumulative continuous outcome of the day. The number of points of cumulative profit of the day and the number of times of cumulative continuous outcome of the day are all be standardized to the value between 0 to 1, the equation is shown as follows:
Here ConL(k) represents the number of cumulative continuous losing of the day; ConW(k) represents the number of cumulative continuous winning of the day, every successful transaction would let the number of cumulative continuous winning of the day plus one, and the reverse is also true; μ represents the number of models; λ is an adjusting parameter for letting the value of u 3 (k) maintain between 0 to 1.
Clearly, the cumulative winning percentage and number of points cumulative profits are higher the better, thus to avoid “a dominant mode”, the conception of the number of times of cumulative continuous outcome is joined, through (20), it can be seen as the number of cumulative continuous winning of a model increasing, the weight of the model will gradually decrease; at the same time a counter is added to record the number of times of each model getting the maximum weight, as long as the number is more than a threshold, the weight of the model is reduced. In fact, the design of the number of times of cumulative continuous outcome and the number of times of each model getting the maximum weight also represents a model cannot always be the winner in the rapidly changing market.
Assume a best fuzzy set
A = 1 u 1 + 1 u 2 + 1 u 3 ,
the day U(k) and the Hamming distance A are the day weight of each model, then multiplied by the operation signal of the day (buying, selling, or liquidation) of each model and added up to a total, the total is an original operation signal of the final transaction model of the day, and last utilize the following way for deciding the investment.
The buying point: Σ≧μ×σ (Buy) The selling point: Σ≧−μ×σ (Sell) The liquidation or waiting: others
Here Σ is the original operation signal of the final transaction model of the day; μ represents the number of models; σ (Buy) and σ (Sell) are the threshold adjusting parameter for determining the sensitivity to investment of the final transaction model.
Although the present invention has been illustrated and described with reference to the preferred embodiment thereof, it should be understood that it is in no way limited to the details of such embodiment but is capable of numerous modifications within the scope of the appended claims.
Claims as granted
10 claimsLog in to read the claims of this application.
Log in to unlockClassifications
3 codes- G06Q40/00
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock