CN108765146A - The method and apparatus that a kind of basis has tracing pattern selection specific curves stock - Google Patents

The method and apparatus that a kind of basis has tracing pattern selection specific curves stock Download PDF

Info

Publication number
CN108765146A
CN108765146A CN201810376238.2A CN201810376238A CN108765146A CN 108765146 A CN108765146 A CN 108765146A CN 201810376238 A CN201810376238 A CN 201810376238A CN 108765146 A CN108765146 A CN 108765146A
Authority
CN
China
Prior art keywords
stock
lines
day
trade
history
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810376238.2A
Other languages
Chinese (zh)
Inventor
陈翟翟
朱留锋
荣强
樊国鹏
田淑宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Lighthouse Light Technology Co Ltd
Original Assignee
Wuhan Lighthouse Light Technology Co Ltd
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 Wuhan Lighthouse Light Technology Co Ltd filed Critical Wuhan Lighthouse Light Technology Co Ltd
Priority to CN201810376238.2A priority Critical patent/CN108765146A/en
Publication of CN108765146A publication Critical patent/CN108765146A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention relates to field of computer technology, provide a kind of method and apparatus that the existing tracing pattern of basis chooses specific curves stock, and wherein method includes:It obtains the history K line numbers evidence of historical stock and therefrom screens form favourable;Confirm multiple stocks input by user, obtains the K line number evidences of each stock nearest M day of trade;The K lines of each stock nearest M day of trade are matched with the K lines of the M day of trade before form favourable in history K lines respectively, one or more stocks using similarity higher than preset value feed back to client as preferred stock.The present invention matches the stock that similar form favourable occurs in the following most probable in recent stock, so that stock invester is intuitively and effectively obtained the preferable stock of future trend by K line charts, provide the reference tool of investment in stock to the user according to the form favourable of historical stock;Meanwhile starting with from multiple dimensions and carrying out the matching of stock curve similarity, so that matching result is had more accuracy.

Description

The method and apparatus that a kind of basis has tracing pattern selection specific curves stock
【Technical field】
The present invention relates to field of computer technology, provides a kind of basis and have tracing pattern and choose specific curves stock Method and apparatus.
【Background technology】
With the fast development of domestic securities market, occur the tool of more and more analysis stock values on the market, But data analysis tool as majority is professional too strong, and many common stock investers use not easy to get started.For most of general For logical stock invester, they are more concerned with the preferable stock of future trend and its tracing pattern, directly to play investment reference Effect, the general or poor stock of future trend is not paid close attention to excessively, and face professional too strong stock analysis work Tool, common stock invester are difficult to intuitively obtain the preferable stock of future trend, bring certain difficulty to investment reference, cannot be satisfied general The demand of logical stock invester.
In consideration of it, it is the art urgent problem to be solved to overcome the defect present in the above-mentioned prior art.
【Invention content】
The technical problem to be solved in the invention is:
Existing stock analysis tool is professional too strong, and using not easy to get started, stock invester is difficult to therefrom intuitively and effectively obtain The preferable stock of future trend and its tracing pattern, certain difficulty is brought to investment reference.
The present invention reaches above-mentioned purpose by following technical solution:
In a first aspect, the present invention provides a kind of bases to have the method that tracing pattern chooses specific curves stock, including:
It obtains the history K line numbers evidence of historical stock and therefrom filters out one or more form favourable;
Confirm multiple stocks input by user, obtains the K line number evidences of each stock nearest M day of trade;
By the K lines of each stock nearest M day of trade K with the M day of trade before form favourable in history K lines respectively Line is matched, and one or more stocks using similarity higher than preset value feed back to client as preferred stock.
Preferably, the history K line numbers for obtaining historical stock according to and therefrom filter out one or more advantage form Afterwards, the method further includes:
The K lines of the M day of trade before the form favourable are judged and the advantage with history K line numbers according to matching verification is carried out Whether non-favourable form the case where is occurred after the history K lines that the K lines of the M day of trade match before form;If there is non-advantage The case where form, then removes the advantage form;If not occurring non-form favourable, retain the advantage form.
Preferably, the K lines by each stock nearest M day of trade respectively with M before form favourable in history K lines The K lines of a day of trade are matched, after one or more stocks using similarity higher than preset value are as preferred stock, the side Method further includes:
By the K lines of one or more preferably nearest M days of trade of stocks respectively with history K line numbers according to match testing Card judges the feelings of non-form favourable whether occur after the history K lines that the K lines with the preferred stock nearest M day of trade match Condition;If there is the case where non-form favourable, which is removed;If not occurring non-form favourable, retain this preferably Stock.
Preferably, the screening technique of the form favourable is specially:
The history K line numbers are calculated in per M according to the preceding closing price of power again1The amount of increase and amount of decrease of a day of trade, if in continuous N2 In a day of trade, per M1The amount of increase and amount of decrease of a day of trade reaches the first preset value, then the M2History K line number evidences in a day of trade Screening is form favourable;And/or
One in red three soldier, babinet breakthrough or old duck head of the history K line numbers in is calculated according to the preceding closing price of power again A or multiple specific modalities start the specific modality to right in end time section if any specific modality is calculated The history K line data screenings answered are form favourable.
Preferably, the dimension of the similarity includes:The type of company, stock institute corresponding to the K lines waveform of stock, stock Hot technology class on timing node corresponding to the enterprise event type of timing node corresponding to corresponding time, stock, stock One or more in type, the price of stock.
Preferably, the time corresponding to the type of company, stock corresponding to the K lines waveform of the stock, stock, stock In hot technology type, the price of stock on timing node corresponding to the enterprise event type of corresponding timing node, stock, Respective dimensions similarity value is given with weight from high to low, then the result of calculation of the similarity is by above-mentioned one or more The calculated similarity value weighted sum of dimension institute obtains.
Preferably, when calculating the similarity of K line waveforms of stock, the method specifically includes:
It is vertical after being normalized by the K line ordinate data normalizations of the M day of trade before form favourable in history K lines Coordinate value a1、a2、a3...aM;The K line ordinate data normalizations of the stock nearest M day of trade are analysed to, are normalized Ordinate value b afterwards1、b2、b3...bM
According to normalization data, K line wave-form similarity of the calculating ratio to both sides' stock:Wherein, Abs expressions take absolute value, and R is wave-form similarity value, and the smaller expression wave-form similarity of R values is higher.
Preferably, the method for the data normalization is specially:
The K line ordinate data of the M day of trade before form favourable in history K lines are denoted as A1、A2、A3...AM, wherein the K line ordinate data A on the one1It is set as the first reference data, by A1、A2、A3...AMRespectively with the first reference data A1 It compares, obtains a1、a2、a3...aM
The K line ordinate data for being analysed to the stock nearest M day of trade are denoted as B1、B2、B3...BM, wherein first day K line ordinate data B1It is set as the second reference data, by B1、B2、B3...BMRespectively with the second reference data B1It compares, Obtain b1、b2、b3...bM
Preferably, one or more preferred stocks are presented according to the sequence of similarity from high to low on display interface, together When, by for matching before the form K lines favourable of the preferred stock, form favourable M day of trade in history K lines K lines and go through History stock relevant information is also presented on display interface;When selecting one of them preferred stock, the K lines and stock of the preferred stock Ticket relevant information is also simultaneously displayed on display interface.
Second aspect, the present invention also provides a kind of devices, have curved shape for realizing the basis described in first aspect The method that state chooses specific curves stock, described device include:At least one processor and memory, at least one processing It is connected by data/address bus between device and memory, the memory is stored with the finger that can be executed by least one processor It enables, described instruction has tracing pattern selection spy after being executed by the processor, for completing the basis described in first aspect Determine the method for curve stock.
The beneficial effects of the invention are as follows:
Basis provided by the invention has the method and apparatus that tracing pattern chooses specific curves stock, first from history stock Relatively good tracing pattern is filtered out in ticket, then according to these curves, the following most probable is matched in recent stock and is occurred The stock of similar tracing pattern, made by way of figure stock invester can intuitively and effectively obtain the preferable stock of future trend and its Tracing pattern, it is easy to operate, it is easy left-hand seat, has provided the tool of a reference of investing in stock to the user;Meanwhile the present invention is from more A dimension, which is started with, carries out the matching of stock curve similarity, and matching result is made to have better accuracy.
【Description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention Attached drawing is briefly described.It should be evident that drawings described below is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is that a kind of basis provided in an embodiment of the present invention has the method flow that tracing pattern chooses specific curves stock Schematic diagram;
Fig. 2 is that a kind of basis provided in an embodiment of the present invention has the interfacial effect that tracing pattern chooses specific curves stock Schematic diagram;
Fig. 3 is that a kind of basis provided in an embodiment of the present invention has the interfacial effect that tracing pattern chooses specific curves stock Schematic diagram;
Fig. 4 is that a kind of basis provided in an embodiment of the present invention has the interfacial effect that tracing pattern chooses specific curves stock Schematic diagram;
Fig. 5 is a kind of method flow schematic diagram calculating stock K line wave-form similarities provided in an embodiment of the present invention;
Fig. 6 is another method stream for choosing specific curves stock according to having tracing pattern provided in an embodiment of the present invention Journey schematic diagram;
Fig. 7 is the method stream that also a kind of basis provided in an embodiment of the present invention has that tracing pattern chooses specific curves stock Journey schematic diagram;
Fig. 8 is the device signal that a kind of basis provided in an embodiment of the present invention has that tracing pattern chooses specific curves stock Figure.
【Specific implementation mode】
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In addition, as long as technical characteristic involved in the various embodiments of the present invention described below is each other not Conflict is constituted to can be combined with each other.With regard to refer to the attached drawing and embodiment, in conjunction with coming, the present invention will be described in detail below.
In embodiments of the present invention, intelligent terminal includes but not limited to:
(1) mobile communication equipment:The characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind of equipment belongs to the scope of personal computer, there is calculating and processing work( Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind of equipment can show and play video content, generally also have mobile Internet access spy Property.Such equipment includes:Video player, handheld device and intelligent toy and portable car-mounted navigation equipment.
(4) other electronic equipments with video playback capability or connection internet function.
Embodiment 1:
The embodiment of the present invention 1 provides a kind of method that the existing tracing pattern of basis chooses specific curves stock, such as Fig. 1 institutes Show, method includes:
Step 201, it obtains the history K line numbers evidence of historical stock and therefrom filters out one or more form favourable.
The step is equivalent in advance that the K line numbers using historical stock are according to a database is established, to be subsequent curve Matching provides reference;Wherein, one or more favourable forms may be filtered out in the history K line numbers, it can will be each The M day of trade, corresponding K lines were marked before form favourable, so as to the reference as stock Curve Matching, then after the completion of screening, Include complete history K line number evidences in the database, and history K line number evidences include one or more groups of labeled K line numbers According to.
The advantage form can be divided into common form favourable and specific form favourable again, in embodiments of the present invention, according to It is preceding to weigh closing price again to calculate and filter out the form favourable in history K lines.
Wherein, the screening technique of the common form favourable is specially:The history K lines are calculated according to the preceding closing price of power again Stock is per M in data1The amount of increase and amount of decrease of a day of trade, if in continuous N2In a day of trade, per M1The amount of increase and amount of decrease of a day of trade reaches To the first preset value, then the M2History K line data screenings in a day of trade are form favourable, herein M1Desirable 1 or more nature Number, M2Desirable 5 or more natural number, determined by ensureing to have enough siding-to-siding block lengths it is favourable in the form of, and M1≤M2, first is default The size of value can be according to M1Value set.In the screening technique of above-mentioned common form favourable, M1、M2And first is pre- If value does not limit uniquely, and specific computational methods can also be flexible and changeable, such as:It can be by M1Take 5, M230 are taken, first is default Value desirable 5%, then calculate the amount of increase and amount of decrease of every stock price on the 5th, if in continuous 30 days, each amount of increase and amount of decrease for being calculated Reach 5%, above-mentioned tracing pattern on the 30th can be screened as form favourable;Based on the above method, it can also use Following computational methods:Every 5 days, every 10 days and every amount of increase and amount of decrease on the 20th are calculated separately, that is, frequency higher is calculated, if continuous 30 In a few days, the amount of increase and amount of decrease being calculated respectively reaches 5%, 10% and 20%, is advantage by the screening of above-mentioned tracing pattern on the 30th Form, the form favourable obtained using the computational methods, degree higher favourable.In addition to above by the method for calculating amount of increase and amount of decrease It, can also be using the method for linear fit other than screening:The linear fit that history K line numbers are carried out to K line number evidences according to by stages, when When the slope of fitting formula is more than a certain preset value, it is believed that the shares changing tendency in the section is preferable, by the curve in the section Form screening is form favourable.
The specific form favourable includes one or more of red three soldier, babinet breakthrough or old duck head, the specific profit The screening technique of good form is specially:Red three soldier in the history K line numbers evidence is calculated according to the preceding closing price of power again, babinet is broken through Or one or more of old duck head form starts the specific modality to end if any specific modality is calculated Corresponding history K line data screenings are form favourable in period.Wherein, described " red three soldier " is also known as " three red soldiers ", refer to In stock K line charts, three lands (taking on a red color in K line charts) are pulled straight after continuous negative line, this is a kind of very common K line groups The case where conjunction, the K lines are combined into now, and rear gesture is expected to rise is in the majority, therefore can be used as a kind of form favourable;" the babinet breakthrough " Refer to the share price consolidation in a babinet for a long time in stock K line charts, has high-volume break through babinet top suddenly within one day, share price has Effect is attractable point when breaking through babinet upper edge, and share price is longer in the housing area residence time, and the exchange hand of accumulation is bigger, how empty double Side is fiercer in the game of this point, breaks through more effective;A kind of form that " the old duck head " also refers to stock K lines, uses 5, the price average line of 10 and 60 parameters, when 5 days, 10 average daily lines high-volume on wear 60 per day line after, form duck neck portion, share price is returned High point when falling forms the duck crown, when share price is fallen after rise soon, 5 days, gold fork is upwardly formed duck bill to 10 average daily lines again.
During above-mentioned calculating sifting advantage form, selected not in using different computational methods or Same Way With parameter when, its degree favourable of form favourable that finishing screen is selected is also different, then combines the embodiment of the present invention, there is also one kind Preferred implementation, can be different according to the height of degree favourable, and the form favourable filtered out is divided into several different grades, Then stepped configuration is carried out according to the VIP grades of user, such as:The VIP higher grades of user, in corresponding database The degree favourable of the form favourable marked is bigger, and user VIP is junior, then is marked in corresponding database The degree favourable of form favourable can be slightly lower, to which limited server resource to be carried out to the division of the best price/performance ratio.
Step 202, confirm multiple stocks input by user, obtain the K line number evidences of each stock nearest M day of trade.
In abovementioned steps 201, the K lines of the M day of trade before each form favourable are marked in the database Note, the matching siding-to-siding block length of M i.e. stock when carrying out subsequent match here, in order to keep the matching section of both sides' stock long Spend it is identical, after user inputs stock code to be analyzed in the embodiment of the present invention, server directly acquire the stock it is nearest M friendship The K line number evidences of Yi, both sides' stock is M for matched K lines siding-to-siding block length at this time.Wherein, M values are bigger, subsequently can be used in The matched K lines siding-to-siding block length of stock is also longer, and finally obtained matching result is also just more comprehensively.
Wherein, the parameter value of M can be set by server in itself configures parameter, in specific implementation, the M parameter values Can also be dynamic change, server can according to the number of requests for the intelligent terminal being currently received number, dynamic is adjusted The whole M parameter values, i.e., in the case where current server computing resource is more abundant, the M parameter values can set larger. On the basis of the embodiment of the present invention, the M parameter values can also carry out stepped configuration according to the VIP grades of user, Such as:The VIP higher grades of user, and corresponding M parameter values can be set bigger, and user VIP is junior, then accordingly M parameter values can be set it is smaller, to which limited server resource to be carried out to the division of the best price/performance ratio, but M parameter values What will not be arranged is too small, but can be higher than certain preset value, and it is long to be sufficiently used for stock matched K lines section with guarantee Degree.
Step 203, the K lines of each stock nearest M day of trade is a with M before form favourable in history K lines respectively The K lines of the day of trade are matched, and one or more stocks using similarity higher than preset value feed back to visitor as preferred stock Family.
From the foregoing it will be appreciated that comprising one or more groups of labeled K line numbers according to as with reference to data in the database, it is each The labeled K line numbers of group first will according to the tracing pattern of the M day of trade before a kind of form favourable of correspondence then when carrying out step 203 One group of labeled K line number divides the K lines of each stock nearest M day of trade to be analyzed according to as with reference to data in database Not with first group of labeled K line number according to being matched, and the similarity of stock matching both sides' K lines is calculated, found and first group The similarity of labeled K line number evidences is higher than the one or more stocks to be analyzed of preset value, and is waited for one or more of Analysis stock feeds back to client as preferred stock, is shown on the display interface of intelligent terminal, when there is multiple preferred stocks, Server can be by these preferred stocks according to similarity being ranked sequentially and showing from high to low, and user can select according to actual conditions Select one or more of stocks;Meanwhile form K lines favourable, the advantage that will be used to match the preferred stock in history K lines The K lines of M day of trade and historical stock relevant information are also presented on display interface before form;When user selects one of them excellent Select stocks ticket when, the K lines and stock relevant information of the preferred stock are also simultaneously displayed on display interface.Preset value herein is one A percentage, setting range can be 60%-100%, such as when preset value is set as 80%, what server was then found and was labeled The similarity of K line number evidences is higher than 80% stock to be analyzed.
After the completion of with first group in database labeled K line Data Matching, continue to be marked next group in database The K lines of each stock nearest M day of trade to be analyzed are labeled with next group by the K line numbers of note respectively according to as with reference to data K line numbers according to the matching for carrying out a new round, that is, above-mentioned matching process is repeated, until each stock nearest M day of trade to be analyzed K lines and every group in database labeled K line number according to after the completion of match, end K lines matchings.
The present invention filters out relatively good tracing pattern by way of figure, first from historical stock, then basis These curves match the stock that similar tracing pattern occurs in the following most probable in recent stock, and stock invester can be intuitively and effectively The preferable stock of future trend and its tracing pattern are obtained, it is easy to operate, it is easy left-hand seat, has provided an investment in stock to the user The tool of reference.
As shown in figs 2-4, after the application program to run institute of embodiment of the present invention providing method in an intelligent terminal Interfacial effect schematic diagram.Using the stock certificate data that Haikang prestige regards as history K line number evidences, M values are taken as 30, Fig. 2 herein and are given The phase of history K lines that Haikang prestige regards use shade to be used as mark mode herein, and the K lines in K line charts on the right side of dash area are sieve Some form favourable selected, the amount of increase by can be seen that part K lines in figure is larger, and tendency is preferable;Dash area is to be marked K lines on the 30th before the advantage form of note, namely for matched K lines section.Click " checking similar below the interfaces Fig. 2 Potentiality personal share ", can be obtained interfacial effect as shown in Figure 3, still be the phase of history K lines that Haikang prestige regards, interface above the interfaces Fig. 3 Lower section has sequentially listed in nearest 30 days, and stock K lines and the similarity of shadow region K lines above the interfaces Fig. 3 reach 80% Four stocks, respectively cut into a mountain share, Everbright Bank, White Cloud Airport and Bank of China, and similarity arranges from high to low can be with Think, the K lines tendency after this four stocks also will appear the form favourable during Haikang prestige regards, i.e., the K lines on the right side of shadow region Form.Wherein, the similarity highest of nearest 30 days K lines of the share that cuts into a mountain and shadow region K lines above the interfaces Fig. 3, reaches 91%, Its personal share details can be checked by clicking the stock, as shown in figure 4, still showing the phase of history K lines that Haikang prestige regards, interface above interface Lower section shows that the K line charts for the share that cuts into a mountain, dash area are the nearest 30 days K lines of share that cut into a mountain, can be intuitively to upper and lower two K Line is compared.
In embodiments of the present invention, the dimension of similarity described in step 203 includes:The K lines waveform of stock, stock institute are right Time corresponding to the enterprise event type of timing node, stock corresponding to time, stock corresponding to the types of Ying companies, stock The one or more in hot technology type, the price of stock on node;Wherein, for the price dimension of stock, It can refine to expand into again and specifically include the data such as closing price, exchange hand.By the K of each stock nearest M day of trade When line is matched with the K lines of the M day of trade before form favourable in history K lines respectively, if the K line waveforms of both sides' stock more connect Closely, then the similarity value of respective dimensions is higher;If the type of company corresponding to both sides' stock is closer, respective dimensions it is similar Angle value is higher;If the time corresponding to both sides' stock is closer, the similarity value of respective dimensions is higher;If where both sides' stock The enterprise event type of timing node is closer, then the similarity value of respective dimensions is higher;If segmentum intercalaris when corresponding to both sides' stock Hot technology on point is closer, then the similarity value of respective dimensions is higher;If the price of both sides' stock is closer, respective dimension The similarity value of degree is higher.
Each dimension of above-mentioned similarity is different to the influence degree of stock K lines, then combines the embodiment of the present invention, counting Following methods specifically can be used when the similarity for calculating two stock K lines:The company corresponding to the K lines waveform of the stock, stock On timing node corresponding to the enterprise event type of timing node, stock corresponding to time, stock corresponding to type, stock In hot technology type, the price of stock, give respective dimensions similarity value with weight from high to low, then the similarity Result of calculation is obtained by the calculated similarity value weighted sum of above-mentioned one or more dimension institute.
In the method for above-mentioned calculating similarity, respectively there are a kind of priority height between the dimension for calculating similarity Relationship, in embodiments of the present invention, by the K line wave settings of stock be highest priority, this is because stock invester wants at first The obtained feedback i.e. tendency of K line morphologies;Can be the second priority, company's type one by the type set of company corresponding to stock Determine to determine the motion mode of its stock K lines in degree, such as:For Internet company, K line motion modes can be because of future Whether there is new product to release, whether to march overseas market or whether to carry out initial public offering (Initial Public Offerings is abbreviated as IPO) etc. and generate apparent variation, and for material environment-friendly type company, usual stock K lines tendency meeting Compare steadily, but larger stir can be generated because of national policy risk;Can by for corresponding to matched stock K lines when Between be set as the third level, temporal difference directly corresponds to the consumption idea of people, for example, the nineties in last century user for The assessment of Internet type enterprise compares 2000 and can all have larger difference instantly, therefore, uses the time as commenting here The transition of consumer spending habit at any time can be expressed by sentencing;It can be by the enterprise event type of timing node corresponding to stock and popular skill Art type set is the fourth stage, for example whether enterprise operation policy or the item to manage change, company's production and management enviroment is It is no change, whether enterprise occurs huge change of personnel, company is related to whether the type of skill is current hot technology etc., these The market price of stock will be directly affected;Can be level V by the price fixing of stock, between the larger stock of monovalent gap, It is also to exist for common stock invester even if there are the similitudes on waveform for its K lines tendency, but because of the difference of hierarchy of consumption Reference significance.By various dimensions COMPREHENSIVE CALCULATING, the similarity result that may make has more accuracy, also has more reference price Value.
In conjunction with the embodiment of the present invention, a kind of concrete methods of realizing also is provided to calculate the similarity of stock K line waveforms, such as Shown in Fig. 5, including:
Step 301, by the K line ordinate data normalizations of the M day of trade before form favourable in history K lines, normalizing is obtained Ordinate value a after change1、a2、a3...aM;The K line ordinate data normalizations of the stock nearest M day of trade are analysed to, are obtained Ordinate value b after to normalization1、b2、b3...bM
Wherein, the K line numbers for matching both sides are according to the specific method of normalized:
The K line ordinate data of the M day of trade before form favourable in history K lines are denoted as A1、A2、A3...AM, wherein the K line ordinate data A on the one1It is set as the first reference data, by A1、A2、A3...AMRespectively with the first reference data A1 It compares, obtains a1、a2、a3...aM;Wherein, A here1、A2、A3...AMBefore form as favourable M the day of trade stock daily Price, respectively the stock price A with first day1It compares, just normalizes stock price;
The K line ordinate data for being analysed to the stock nearest M day of trade are denoted as B1、B2、B3...BM, wherein first day K line ordinate data B1It is set as the second reference data, by B1、B2、B3...BMRespectively with the second reference data B1It compares, Obtain b1、b2、b3...bM;Wherein, B here1、B2、B3...BMThe stock nearest M day of trade as to be analyzed daily price, Stock price A with first day respectively1It compares, just normalizes stock price.
Step 302, according to normalization data, K line wave-form similarity of the calculating ratio to both sides' stock:Wherein, abs expressions take absolute value, and R is wave-form similarity value, and the smaller expression wave-form similarity of R values is got over It is high.
In conjunction with the embodiment of the present invention, there is also a kind of preferred implementations:It is preferred in order to avoid finally feeding back as possible There is non-form favourable in its future of stock, can increase the verification step to K lines in the whole process, provide two kinds of authentications here Method.
One is as shown in fig. 6, increasing verification step 201 ' between step 201 and step 202:By the form favourable The K lines of the preceding M day of trade, according to matching verification is carried out, judge the K line phases with the M day of trade before the advantage form with history K line numbers Whether non-favourable form the case where is occurred after matched history K lines;If there is the case where non-form favourable, by the advantage shape State removes;If not occurring non-form favourable, retain the advantage form.This verification method is to complete form favourable in fact After screening, every section of labeled K line in history K line databases is verified, what judgement matched with every section of labeled K line Whether non-favourable form the case where is occurred after history K lines section;If occurring after the history K lines section to match non- The case where form favourable, will then carry out this time matched labeled K line numbers and be marked according to removal;If not occurring non-form favourable, Then retain label;Wherein, the K that non-state favourable herein refers to other than the above-mentioned one or more filtered out state favourable is linear State.
Another kind is as shown in fig. 7, increasing verification step 203 ' after step 203:By one or more preferably stocks The K lines of the nearest M day of trade judge and the preferred stock nearest M day of trade respectively with history K line numbers according to matching verification is carried out Whether non-favourable form the case where is occurred after the history K lines that K lines match;It, should if there is the case where non-form favourable It is preferred that stock removes;If not occurring non-form favourable, retain the preferred stock.This verification method is to complete preferably in fact After the screening of stock, the K lines of the nearest M day of trade of one or more preferred stocks are verified, are judged and preferred stock Whether there is the case where non-form favourable after the history K lines section that the K lines of the nearest M day of trade match;If there is non-profit The case where good form, will then carry out this time matched preferred stock removal;If not occurring non-form favourable, retain the preferred stock Ticket;Wherein, non-state favourable herein refers to the K threadiness states other than the above-mentioned one or more filtered out state favourable.In reality When operation, any one of above two verification method may be selected and verified, can more increase the accuracy of matching result and say Take power.
Embodiment 2:
It is provided after a kind of basis has the method that tracing pattern chooses specific curves stock in embodiment 1, invention is implemented Example 2 additionally provides a kind of device carrying out stock selection with the above method, as shown in figure 8, being the device of the embodiment of the present invention Configuration diagram.The stock selecting device of the present embodiment includes one or more processors 21 and memory 22.Wherein, Fig. 8 In by taking a processor 21 as an example.
Processor 21 can be connected with memory 22 by bus or other modes, to be connected as by bus in Fig. 8 Example.
The method and apparatus that memory 22 has tracing pattern selection specific curves stock as a kind of basis are non-volatile Computer readable storage medium can be used for storing non-volatile software program, non-volatile computer executable program and mould Block, as the basis in embodiment 1 has the method that tracing pattern chooses specific curves stock.Processor 21 is stored in by operation Non-volatile software program, instruction and module in memory 22, to execute the various function application of stock selecting device And data processing, that is, realize that the basis of embodiment 1 has the method that tracing pattern chooses specific curves stock.
Memory 22 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 22 Optional includes the memory remotely located relative to processor 21, these remote memories can pass through network connection to processor 21.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Described program instruction/module is stored in the memory 22, is held when by one or more of processors 21 When row, executes the basis in above-described embodiment 1 and have the method that tracing pattern chooses specific curves stock, for example, more than executing Fig. 1, Fig. 5, Fig. 6 of description and each step shown in Fig. 7.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of embodiment is can to lead to It crosses program and is completed to instruct relevant hardware, which can be stored in a computer readable storage medium, storage medium May include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.

Claims (10)

1. a kind of basis has the method that tracing pattern chooses specific curves stock, which is characterized in that including:
It obtains the history K line numbers evidence of historical stock and therefrom filters out one or more form favourable;
Confirm multiple stocks input by user, obtains the K line number evidences of each stock nearest M day of trade;
By the K lines of each stock nearest M day of trade respectively with the K lines of the M day of trade before form favourable in history K lines into Row matching, one or more stocks using similarity higher than preset value feed back to client as preferred stock.
2. basis according to claim 1 has the method that tracing pattern chooses specific curves stock, which is characterized in that institute After stating the history K line numbers evidence for obtaining historical stock and therefrom filtering out one or more form favourable, the method further includes:
The K lines of the M day of trade before the form favourable are judged and the advantage form with history K line numbers according to matching verification is carried out Whether non-favourable form the case where is occurred after the history K lines that the K lines of the preceding M day of trade match;If there is non-form favourable The case where, then the advantage form is removed;If not occurring non-form favourable, retain the advantage form.
3. basis according to claim 1 has the method that tracing pattern chooses specific curves stock, which is characterized in that institute The K lines by the K lines of each stock nearest M day of trade respectively with the M day of trade before form favourable in history K lines are stated to carry out It matches, after one or more stocks using similarity higher than preset value are as preferred stock, the method further includes:
By the K lines of one or more preferably nearest M days of trade of stock respectively with history K line numbers according to matching verification is carried out, sentence Whether there is the case where non-form favourable after the history K lines that the disconnected K lines with the preferred stock nearest M day of trade match;If There is the case where non-form favourable, then removes the preferred stock;If not occurring non-form favourable, retain the preferred stock.
4. basis according to claim 1 has the method that tracing pattern chooses specific curves stock, which is characterized in that institute The screening technique for stating form favourable is specially:
The history K line numbers are calculated in per M according to the preceding closing price of power again1The amount of increase and amount of decrease of a day of trade, if in continuous N2A friendship Easily in a few days, per M1The amount of increase and amount of decrease of a day of trade reaches the first preset value, then the M2History K line data screenings in a day of trade For form favourable;And/or
Calculate red three soldier in of the history K line numbers according to the preceding closing price of power again, one during babinet is broken through or old duck or Multiple specific modalities start the specific modality to corresponding in end time section if any specific modality is calculated History K line data screenings are form favourable.
5. basis according to claim 1 has the method that tracing pattern chooses specific curves stock, which is characterized in that institute The dimension for stating similarity includes:Time, stock institute corresponding to the type of company, stock corresponding to the K lines waveform of stock, stock In hot technology type, the price of stock on timing node corresponding to the enterprise event type of corresponding timing node, stock One or more.
6. basis according to claim 5 has the method that tracing pattern chooses specific curves stock, which is characterized in that Timing node corresponding to time, stock corresponding to the type of company, stock corresponding to the K lines waveform of the stock, stock In hot technology type, the price of stock on timing node corresponding to enterprise event type, stock, it is similar to give respective dimensions Angle value is with weight from high to low, then the result of calculation of the similarity is by the calculated phase of above-mentioned one or more dimension institute It is obtained like angle value weighted sum.
7. having the method that tracing pattern chooses specific curves stock, feature according to any bases of claim 1-6 It is, when calculating the similarity of K line waveforms of stock, the method specifically includes:
By the K line ordinate data normalizations of the M day of trade before form favourable in history K lines, the ordinate after being normalized Value a1、a2、a3...aM;The K line ordinate data normalizations of the stock nearest M day of trade are analysed to, after being normalized Ordinate value b1、b2、b3...bM
According to normalization data, K line wave-form similarity of the calculating ratio to both sides' stock:Wherein, abs Expression takes absolute value, and R is wave-form similarity value, and the smaller expression wave-form similarity of R values is higher.
8. basis according to claim 7 has the method that tracing pattern chooses specific curves stock, which is characterized in that institute The method for stating data normalization is specially:
The K line ordinate data of the M day of trade before form favourable in history K lines are denoted as A1、A2、A3...AM, wherein first day K line ordinate data A1It is set as the first reference data, by A1、A2、A3...AMRespectively with the first reference data A1It compares, Obtain a1、a2、a3...aM
The K line ordinate data for being analysed to the stock nearest M day of trade are denoted as B1、B2、B3...BM, wherein K lines on the firstth are vertical Coordinate data B1It is set as the second reference data, by B1、B2、B3...BMRespectively with the second reference data B1It compares, obtains b1、b2、b3...bM
9. basis according to claim 1 has the method that tracing pattern chooses specific curves stock, which is characterized in that One or more preferred stocks are presented according to the sequence of similarity from high to low on display interface, meanwhile, it will be used in history K lines The K lines and historical stock relevant information for matching before the form K lines favourable of the preferred stock, form favourable M day of trade be also in On present display interface;When selecting one of them preferred stock, the K lines and stock relevant information of the preferred stock are also shown simultaneously Show on display interface.
10. a kind of basis has the device that tracing pattern chooses specific curves stock, which is characterized in that including at least one processing Device and memory are connected between at least one processor and memory by data/address bus, and the memory is stored with can The instruction executed by least one processor, described instruction by the processor after being executed, for completing claim Any bases of 1-9 have the method that tracing pattern chooses specific curves stock.
CN201810376238.2A 2018-04-25 2018-04-25 The method and apparatus that a kind of basis has tracing pattern selection specific curves stock Pending CN108765146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810376238.2A CN108765146A (en) 2018-04-25 2018-04-25 The method and apparatus that a kind of basis has tracing pattern selection specific curves stock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810376238.2A CN108765146A (en) 2018-04-25 2018-04-25 The method and apparatus that a kind of basis has tracing pattern selection specific curves stock

Publications (1)

Publication Number Publication Date
CN108765146A true CN108765146A (en) 2018-11-06

Family

ID=64011996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810376238.2A Pending CN108765146A (en) 2018-04-25 2018-04-25 The method and apparatus that a kind of basis has tracing pattern selection specific curves stock

Country Status (1)

Country Link
CN (1) CN108765146A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570306A (en) * 2019-09-06 2019-12-13 广州快盈信息技术服务有限公司 data monitoring method based on label, server and storage medium
CN115330279A (en) * 2022-10-14 2022-11-11 北京师范大学 Company selection method based on stock trend graph similarity detection
WO2023050331A1 (en) * 2021-09-30 2023-04-06 富途网络科技(深圳)有限公司 K-line form recognition method, and electronic device
CN116520049A (en) * 2023-04-13 2023-08-01 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium
CN116681522A (en) * 2023-06-05 2023-09-01 深圳价值网络科技有限公司 K line form stock selection method and device, terminal equipment and storage medium
CN117495564A (en) * 2023-11-14 2024-02-02 杭州卡方分布信息科技有限公司 Stock exchange strategy construction method, system and medium based on logic driving

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080228559A1 (en) * 2007-03-15 2008-09-18 Kei Kianpoor System and method for creating financial investment indices
CN106408417A (en) * 2016-11-18 2017-02-15 洪志令 Stock recommendation method based on lately predicted increase/decrease and consistency statistics
CN106529726A (en) * 2016-11-16 2017-03-22 洪志令 Method of performing classification and recommendation based on stock prediction trends
CN106780020A (en) * 2016-11-23 2017-05-31 吴梅红 A kind of stock trend analysis and share-selecting method based on strong matching sequence
CN106776692A (en) * 2016-11-11 2017-05-31 洪志令 A kind of stock based on predefined pattern matching recommends share-selecting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080228559A1 (en) * 2007-03-15 2008-09-18 Kei Kianpoor System and method for creating financial investment indices
CN106776692A (en) * 2016-11-11 2017-05-31 洪志令 A kind of stock based on predefined pattern matching recommends share-selecting method
CN106529726A (en) * 2016-11-16 2017-03-22 洪志令 Method of performing classification and recommendation based on stock prediction trends
CN106408417A (en) * 2016-11-18 2017-02-15 洪志令 Stock recommendation method based on lately predicted increase/decrease and consistency statistics
CN106780020A (en) * 2016-11-23 2017-05-31 吴梅红 A kind of stock trend analysis and share-selecting method based on strong matching sequence

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570306A (en) * 2019-09-06 2019-12-13 广州快盈信息技术服务有限公司 data monitoring method based on label, server and storage medium
WO2023050331A1 (en) * 2021-09-30 2023-04-06 富途网络科技(深圳)有限公司 K-line form recognition method, and electronic device
US11928761B2 (en) 2021-09-30 2024-03-12 Futu Network Technology (Shenzhen) Co., Ltd Method for identifying K-line form and electronic device
CN115330279A (en) * 2022-10-14 2022-11-11 北京师范大学 Company selection method based on stock trend graph similarity detection
CN115330279B (en) * 2022-10-14 2023-01-24 北京师范大学 Company selection method based on stock trend graph similarity detection
CN116520049A (en) * 2023-04-13 2023-08-01 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium
CN116520049B (en) * 2023-04-13 2024-05-17 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium
CN116681522A (en) * 2023-06-05 2023-09-01 深圳价值网络科技有限公司 K line form stock selection method and device, terminal equipment and storage medium
CN117495564A (en) * 2023-11-14 2024-02-02 杭州卡方分布信息科技有限公司 Stock exchange strategy construction method, system and medium based on logic driving

Similar Documents

Publication Publication Date Title
CN108765146A (en) The method and apparatus that a kind of basis has tracing pattern selection specific curves stock
US20150271282A1 (en) Methods and systems for activity-based recommendations
US10019779B2 (en) Browsing interface for item counterparts having different scales and lengths
CN104077693B (en) Commodity control methods, server, client and e-commerce system
CN102541893B (en) Key word analysis method and device
US7752112B2 (en) System and method for using analyst data to identify peer securities
CN108829764A (en) Recommendation information acquisition methods, device, system, server and storage medium
TWI499289B (en) Method of recommending media content and media playing system
CN106294830A (en) The recommendation method and device of multimedia resource
US10672015B2 (en) Streaming events modeling for information ranking to address new information scenarios
CN106156092B (en) Data processing method and device
JP5541119B2 (en) Content recommendation system, content recommendation device, recommendation method control method, and recommendation method control program
CN109388742A (en) A kind of searching method, search server and search system
CN104317806B (en) Financial data inquiry method and financial data system
Bachrach et al. Optimising trade-offs among stakeholders in ad auctions
CN109597858B (en) Merchant classification method and device and merchant recommendation method and device
CN105512180B (en) A kind of search recommended method and device
CN110580649A (en) Method and device for determining potential value of commodity
WO2014070624A1 (en) Search result ranking method and system
CN105512178B (en) A kind of entity recommended method and device
CN106168980A (en) Multimedia resource recommends sort method and device
CN105868686A (en) Video classification method and apparatus
CN108242016A (en) A kind of method and apparatus of Products Show
CN106874355A (en) The collaborative filtering method of social networks and user's similarity is incorporated simultaneously
CN106326318B (en) Searching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication