CN110415116A - Similar K line chart methods of exhibiting, device, terminal device and computer storage medium - Google Patents

Similar K line chart methods of exhibiting, device, terminal device and computer storage medium Download PDF

Info

Publication number
CN110415116A
CN110415116A CN201910565133.6A CN201910565133A CN110415116A CN 110415116 A CN110415116 A CN 110415116A CN 201910565133 A CN201910565133 A CN 201910565133A CN 110415116 A CN110415116 A CN 110415116A
Authority
CN
China
Prior art keywords
line chart
stock
history
line
current
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
CN201910565133.6A
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.)
Shenzhen Futu Network Technology Co Ltd
Original Assignee
Shenzhen Futu Network 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 Shenzhen Futu Network Technology Co Ltd filed Critical Shenzhen Futu Network Technology Co Ltd
Priority to CN201910565133.6A priority Critical patent/CN110415116A/en
Publication of CN110415116A publication Critical patent/CN110415116A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • 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

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application involves a kind of similar K line chart methods of exhibiting, device, terminal device and computer storage medium, this method is applied to terminal, comprising the following steps: obtains the current K line chart of target stock shown in the stock interface of terminal;Detect whether to receive the trigger action of the default control key on stock interface;When receiving the trigger action of the default control key on stock interface, the history K line chart of each historical stock corresponding with trigger action is obtained from historical stock data;Determine the similarity score of the history K line chart of each historical stock and the current K line chart of target stock;According to similarity score, K line chart to be presented is determined from the history K line chart of each historical stock;K line chart to be presented is shown on the stock interface.The application improves similar K line chart search efficiency, allows stock user according to similarity score fast selecting one or more history K line chart as similar K line chart, and carry out analysis comparison.

Description

Similar K line chart methods of exhibiting, device, terminal device and computer storage medium
Technical field
This application involves field of computer technology more particularly to a kind of similar K line chart methods of exhibiting, device, terminal device And computer storage medium.
Background technique
Stock user usually checks stock market using quotation client, such as checks single branch or more stock Opening price, closing price, lowest price, highest price and K line of different cycles etc., the K line of different cycles include minute K line, day K Line, week K line and moon K line etc..
Stock user in existing quotation client according to K line morphology it is whether similar to history K line number according to progress Matching, the search history K line number personal share that form matches in, is stated to be similar K line for the history K line number that form matches.
When stock user searches for similar K line, existing quotation client is only supported to check the history K of single branch stock Line number evidence is unable to satisfy the similar K that stock user fast search from history K line number evidence meets stock user demand to matching degree Line causes user experience poor.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, this application provides a kind of phases Like K line chart methods of exhibiting, device, terminal device and computer storage medium.
In view of this, in a first aspect, being applied to terminal, the side this application provides a kind of similar K line chart methods of exhibiting Method the following steps are included:
Obtain the current K line chart of target stock shown in the stock interface of the terminal;
Detect whether to receive the trigger action of the default control key on the stock interface;
When receiving the trigger action of the default control key on the stock interface, from historical stock data obtain with The history K line chart of the corresponding each historical stock of the trigger action;
Determine the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock;
According to the similarity score, K line chart to be presented is determined from the history K line chart of each historical stock;
K line chart to be presented is shown on the stock interface.
With reference to first aspect, in first aspect in the first possible embodiment, each history stock of determination The similarity score of the current K line chart of the history K line chart and target stock of ticket, comprising:
Normalized is executed to each history K line chart;
The tendency of each history K line chart and the current K line chart is subjected to similarity mode respectively, is obtained corresponding First similarity value;And respectively by upper hachure, lower hachure and the entity of each history K line chart and the current K line chart Line carries out similarity mode, obtains corresponding second similarity value;
Weighted sum operation is executed to each first similarity value and corresponding second similarity value, by what is obtained Similarity score of the value of each weighted sum respectively as corresponding each history K line chart and the current K line chart.
It is with reference to first aspect, described according to the similarity score in second of first aspect possible embodiment, K line chart to be presented is determined from the history K line chart of each historical stock, comprising:
According to the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock, Each historical stock is ranked up according to sequence from high to low;
According to the order of sequence, preset quantity historical stock is successively selected;Wherein, preset quantity is the history stock One or more of ticket;
Obtain history K line chart corresponding with selected preset quantity historical stock, and the history K line chart that will acquire As K line chart to be presented.
With reference to first aspect, in first aspect in the third possible embodiment, the method also includes:
Prediction subsequent trend graph of the current K line chart in predetermined period is generated using K line chart to be presented, specifically Include:
Determine subsequent trend graph of each K line chart to be presented in predetermined period;
Calculate the confidence level of each subsequent trend graph;
According to the calculated result of confidence level, the highest subsequent trend graph of confidence level is selected;
After using the highest subsequent trend graph of selected confidence level as prediction of the current K line chart in predetermined period Continuous trend graph.
With reference to first aspect, described respectively by each history K in the 4th kind of possible embodiment of first aspect The tendency of line chart and the current K line chart carries out similarity mode, obtains corresponding first similarity value;And it respectively will be every The upper hachure of a history K line chart and the current K line chart, lower hachure and entity line carry out similarity mode, are corresponded to The second similarity value, comprising:
Using cosine similarity algorithm, the tendency of each history K line chart and the current K line chart is subjected to phase respectively It is matched like degree, obtains corresponding first similarity value;And respectively by each history K line chart and the current K line chart Upper hachure, lower hachure and entity line carry out similarity mode, obtain corresponding second similarity value.
Second aspect, this application provides a kind of similar K line charts to show device, is applied to terminal, and described device includes:
First acquisition unit is configured to obtain the current K line of target stock shown in the stock interface of the terminal Figure;
Detection unit is configured to detect whether to receive the trigger action of the default control key on the stock interface;
Second acquisition unit is configured to when receiving the trigger action of the default control key on the stock interface, The history K line chart of each historical stock corresponding with the trigger action is obtained from historical stock data;
First determination unit is configured to determine the history K line chart of each historical stock and the target stock The similarity score of current K line chart;
Second determination unit is configured to according to the similarity score, from the history K line chart of each historical stock Middle determination K line chart to be presented;
Display unit is configured to for K line chart to be presented being shown on the stock interface.
In conjunction with second aspect, in second aspect in the first possible embodiment, first determination unit includes:
Normalized subelement is configured to execute normalized to each history K line chart;
Similarity mode subelement is configured to the tendency of each history K line chart and the current K line chart respectively Similarity mode is carried out, corresponding first similarity value is obtained;And respectively by each history K line chart and the current K Upper hachure, lower hachure and the entity line of line chart carry out similarity mode, obtain corresponding second similarity value;
Weighted sum subelement is configured to hold each first similarity value and corresponding second similarity value Row weighted sum operation, using the value of obtained each weighted sum as corresponding each history K line chart with it is described The similarity score of current K line chart.
In conjunction with second aspect, in second of second aspect possible embodiment, second determination unit includes:
Sorting subunit is configured to according to the history K line chart of each historical stock and working as the target stock The similarity score of preceding K line chart is ranked up each historical stock according to sequence from high to low;
Subelement is selected, the order according to sequence is configured to, successively selects preset quantity historical stock;Wherein, in advance If quantity is one or more of described historical stock;
Subelement is obtained, is configured to obtain history K line chart corresponding with selected preset quantity historical stock, and The history K line chart that will acquire is as K line chart to be presented.
The third aspect, this application provides a kind of terminal device, the terminal device includes: at least one processor, deposits Reservoir, at least one network interface and user interface;
At least one described processor, memory, at least one network interface and user interface are coupled by bus system Together;
The program or instruction that the processor is stored by the calling memory, for executing as described in relation to the first aspect The step of similar K line chart methods of exhibiting.
Fourth aspect, this application provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with similar K line chart presentation program, is realized as described in relation to the first aspect when the similar K line chart presentation program is executed by processor Similar K line chart methods of exhibiting the step of.
Above-mentioned technical proposal provided by the embodiments of the present application has the advantages that compared with prior art
The embodiment of the present application provides a kind of similar K line chart methods of exhibiting, device, terminal device and computer storage and is situated between Matter, the similar K line chart methods of exhibiting are applied to terminal, open up in the stock interface of the terminal specifically includes the following steps: obtaining The current K line chart of the target stock shown;Detect whether to receive the trigger action of the default control key on the stock interface;When When receiving the trigger action of the default control key on the stock interface, obtains from historical stock data and grasped with the triggering Make the history K line chart of corresponding each historical stock;Determine the history K line chart and the target stock of each historical stock Current K line chart similarity score;According to the similarity score, from the history K line chart of each historical stock really Fixed K line chart to be presented;K line chart to be presented is shown on the stock interface.
The embodiment of the present application is in terminal according to the history K line chart of each historical stock and working as target stock being calculated The similarity score of preceding K line chart chooses one or more K line chart as similar K line from the history K line chart of each historical stock Figure, is shown on the stock interface of terminal, improves search efficiency relative to the similar K line chart of manual hand search, make stock Ticket user can be according to similarity score fast selecting one or more history K line chart as similar K line chart, and being capable of basis Similarity score shows that one or more similar K line charts are compared for stock customer analysis on stock interface.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of similar K line chart methods of exhibiting provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the similar K line chart methods of exhibiting of another kind provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another similar K line chart methods of exhibiting provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another similar K line chart methods of exhibiting provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram that a kind of similar K line chart provided by the embodiments of the present application shows device;
Fig. 6 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The embodiment of the present application provides a kind of similar K line chart methods of exhibiting, is applied to terminal, as shown in Figure 1, this method can With the following steps are included:
S101, the current K line chart for obtaining target stock shown in the stock interface of terminal.
In the stock interface of client, user is capable of the current K line chart of object observing stock, and current K line chart is this Application embodiment will find the K line chart of its similar K line, and current K line chart includes but is not limited to nearest 20 days day K of target stock Line chart.
S102, the trigger action for detecting whether to receive default control key on stock interface.
In the embodiment of the present application, default control key is " similar K line " button on stock interface, clicks " phase in user Like K line " after button, corresponding search interface is popped up at stock interface, and the current K line chart of target stock is shown on search interface.
Whether the embodiment of the present application further includes supporting display interface to show phase after user clicks " similar K line " button It is analyzed and determined like K line, K line chart is there are many period, and e.g., whether minute K, day K, moon K, week K support current week according to system The similar K line operation of phase judged, such as: if only the operation in day K period is supported not to be available at the non-interface day K Similar K line function lists equity share less than 20 days and similar K line is not supported to show yet, for example, index, spin-off (futures, Option, nest wheel ox bear etc.), plate do not support similar K line to show.
S103, when receiving the trigger action of the default control key on stock interface, obtained from historical stock data The history K line chart of each historical stock corresponding with trigger action.
Server searches the history K line chart of whole historical stocks in stock database, to every phase of history K line chart with The current K line chart of target stock carries out similarity score.
The similarity score of the current K line chart of S104, the history K line chart for determining each historical stock and target stock.
S105, according to the similarity score, K line chart to be presented is determined from the history K line chart of each historical stock.
S106, K line chart to be presented is shown on stock interface.
The several segments K line chart that similarity score sorts forward is shown under search interface.
The embodiment of the present application is in terminal according to the history K line chart of each historical stock and working as target stock being calculated The similarity score of preceding K line chart chooses one or more K line chart as similar K line from the history K line chart of each historical stock Figure, is shown on the stock interface of terminal, improves search efficiency relative to the similar K line chart of manual hand search, make stock Ticket user can be according to similarity score fast selecting one or more history K line chart as similar K line chart, and being capable of basis Similarity score shows that one or more similar K line charts are compared for stock customer analysis on stock interface.
Referring to Fig. 2, the embodiment of the invention also provides a kind of similar K line chart methods of exhibiting, this method implementations shown in Fig. 1 On the basis of example, above-mentioned steps S104, the phase for determining the history K line chart of each historical stock and the current K line chart of target stock It scores like degree, further comprising the steps of:
S201, normalized is executed to each history K line chart.
Preferably, the height of history K line chart is opened and low accepts row normalized.
S202, the tendency of each history K line chart and current K line chart is subjected to similarity mode respectively, obtains corresponding the One similarity value;And it is respectively that each history K line chart is similar to the upper hachure of current K line chart, lower hachure and the progress of entity line Degree matching, obtains corresponding second similarity value.
Preferably, the embodiment of the present application calculates the first similarity and the second similarity value using cosine similarity algorithm.
S203, weighted sum operation is executed to each first similarity value and corresponding second similarity value, will obtained Each weighted sum value respectively as corresponding each history K line chart and current K line chart similarity score.
Referring to Fig. 3, the embodiment of the invention also provides a kind of similar line chart methods of exhibiting, this method implementations shown in Fig. 1 On the basis of example, above-mentioned steps S105, according to similarity score, determination is to be presented from the history K line chart of each historical stock K line chart, including following sub-step:
S301, the similarity score according to the current K line chart of the history K line chart and target stock of each historical stock are right Each historical stock is ranked up according to sequence from high to low.
S302, the order according to sequence successively select preset quantity historical stock;Wherein, preset quantity is history One or more of stock.
S303, history K line chart corresponding with selected preset quantity historical stock, and the history that will acquire are obtained K line chart is as K line chart to be presented.
Referring to Fig. 4, the embodiment of the invention also provides a kind of similar line chart methods of exhibiting, this method implementations shown in Fig. 1 It further include generating prediction subsequent tendency of the current K line chart in predetermined period using K line chart to be presented on the basis of example Figure, specifically includes the following steps:
S401, subsequent trend graph of each K line chart to be presented in predetermined period is determined.
S402, the confidence level for calculating each subsequent trend graph.
S403, the calculated result according to confidence level select the highest subsequent trend graph of confidence level.
S404, the prediction using the highest subsequent trend graph of selected confidence level as current K line chart in predetermined period Subsequent trend graph.
Predetermined period can be for daily, weekly or monthly etc., the embodiment of the present application limit this.
Referring to Fig. 5, the embodiment of the present application also provides a kind of similar K line charts to show device, is applied to terminal, the device packet It includes:
First acquisition unit 11 is configured to obtain the current K of target stock shown in the stock interface of the terminal Line chart;
Detection unit 12 is configured to detect whether to receive the triggering behaviour of the default control key on the stock interface Make;
Second acquisition unit 13 is configured to when the trigger action for receiving the default control key on the stock interface When, the history K line chart of each historical stock corresponding with the trigger action is obtained from historical stock data;
First determination unit 14 is configured to determine the history K line chart of each historical stock and the target stock Current K line chart similarity score;
Second determination unit 15 is configured to according to the similarity score, from the history K line of each historical stock K line chart to be presented is determined in figure;
Display unit 16 is configured to for K line chart to be presented being shown on the stock interface.
In another embodiment of the application, the first determination unit 14 includes:
Normalized subelement (not shown) is configured to execute at normalization each history K line chart Reason;
Similarity mode subelement (not shown) is configured to respectively work as each history K line chart with described The tendency of preceding K line chart carries out similarity mode, obtains corresponding first similarity value;And respectively by each history K line The upper hachure, lower hachure and entity line of figure and the current K line chart carry out similarity mode, obtain corresponding second similarity Value;
Weighted sum subelement (not shown) is configured to each first similarity value and corresponding Two similarity values execute weighted sum operation, using the value of obtained each weighted sum as corresponding each history The similarity score of K line chart and the current K line chart.
In another embodiment of the application, the second determination unit 15 includes:
Sorting subunit (not shown), be configured to according to the history K line chart of each historical stock with it is described The similarity score of the current K line chart of target stock is ranked up each historical stock according to sequence from high to low;
Subelement (not shown) is selected, the order according to sequence is configured to, successively selects preset quantity history Stock;Wherein, preset quantity is one or more of described historical stock;
Subelement (not shown) is obtained, is configured to obtain corresponding with selected preset quantity historical stock History K line chart, and the history K line chart that will acquire is as K line chart to be presented.
The embodiment of the present application also provides a kind of computer readable storage medium, deposited on the computer readable storage medium Similar K line chart presentation program is contained, is realized when the similar K line chart presentation program is executed by processor such as each method embodiment institute The step of similar K line chart methods of exhibiting shown, for example including following steps:
Obtain the current K line chart of target stock shown in the stock interface of the terminal;
Detect whether to receive the trigger action of the default control key on the stock interface;
When receiving the trigger action of the default control key on the stock interface, from historical stock data obtain with The history K line chart of the corresponding each historical stock of the trigger action;
Determine the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock;
According to the similarity score, K line chart to be presented is determined from the history K line chart of each historical stock;
K line chart to be presented is shown on the stock interface.
Fig. 6 is the structural schematic diagram for the mobile terminal that another embodiment of the present invention provides.Mobile terminal shown in fig. 6 600 include: at least one processor 601, memory 602, at least one network interface 604 and other users interface 603.It is mobile Various components in terminal 600 are coupled by bus system 605.It is understood that bus system 605 is for realizing these groups Connection communication between part.Bus system 605 further includes power bus, control bus and state in addition to including data/address bus Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).Memory 602 described herein is intended to include but is not limited to these to be suitble to any other The memory of type.
In some embodiments, memory 602 stores following element, and unit or data structure can be performed, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, processor 601 are used to execute method and step provided by each method embodiment, such as Include:
Obtain the current K line chart of target stock shown in the stock interface of the terminal;
Detect whether to receive the trigger action of the default control key on the stock interface;
When receiving the trigger action of the default control key on the stock interface, from historical stock data obtain with The history K line chart of the corresponding each historical stock of the trigger action;
Determine the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock;
According to the similarity score, K line chart to be presented is determined from the history K line chart of each historical stock;
K line chart to be presented is shown on the stock interface.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601. Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software unit combination execute completion.Software unit can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 602, and processor 601 reads the information in memory 602, and the step of the above method is completed in conjunction with its hardware Suddenly.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application SpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), Digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), Field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller In device, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, the techniques described herein can be realized by executing the unit of function described herein.Software generation Code is storable in memory and is executed by processor.Memory can in the processor or portion realizes outside the processor.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of similar K line chart methods of exhibiting, which is characterized in that be applied to terminal, the described method comprises the following steps:
Obtain the current K line chart of target stock shown in the stock interface of the terminal;
Detect whether to receive the trigger action of the default control key on the stock interface;
When receiving the trigger action of the default control key on the stock interface, from historical stock data obtain with it is described The history K line chart of the corresponding each historical stock of trigger action;
Determine the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock;
According to the similarity score, K line chart to be presented is determined from the history K line chart of each historical stock;
K line chart to be presented is shown on the stock interface.
2. the method according to claim 1, wherein the history K line chart of each historical stock of the determination With the similarity score of the current K line chart of the target stock, comprising:
Normalized is executed to each history K line chart;
The tendency of each history K line chart and the current K line chart is subjected to similarity mode respectively, obtains corresponding first Similarity value;And respectively by upper hachure, lower hachure and the entity line of each history K line chart and the current K line chart into Row similarity mode obtains corresponding second similarity value;
Each of weighted sum operation is executed to each first similarity value and corresponding second similarity value, will obtain Similarity score of the value of weighted sum respectively as corresponding each history K line chart and the current K line chart.
3. the method according to claim 1, wherein described according to the similarity score, described gone through from each K line chart to be presented is determined in the history K line chart of history stock, comprising:
According to the similarity score of the history K line chart of each historical stock and the current K line chart of the target stock, to every A historical stock is ranked up according to sequence from high to low;
According to the order of sequence, preset quantity historical stock is successively selected;Wherein, preset quantity is in the historical stock One or more;
Obtain history K line chart corresponding with selected preset quantity historical stock, and the history K line chart conduct that will acquire K line chart to be presented.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Prediction subsequent trend graph of the current K line chart in predetermined period is generated using K line chart to be presented, it is specific to wrap It includes:
Determine subsequent trend graph of each K line chart to be presented in predetermined period;
Calculate the confidence level of each subsequent trend graph;
According to the calculated result of confidence level, the highest subsequent trend graph of confidence level is selected;
Using the highest subsequent trend graph of selected confidence level as prediction of the current K line chart in predetermined period it is subsequent walk Gesture figure.
5. according to the method described in claim 2, it is characterized in that, described respectively work as each history K line chart with described The tendency of preceding K line chart carries out similarity mode, obtains corresponding first similarity value;And respectively by each history K line The upper hachure, lower hachure and entity line of figure and the current K line chart carry out similarity mode, obtain corresponding second similarity Value, comprising:
Using cosine similarity algorithm, the tendency of each history K line chart and the current K line chart is subjected to similarity respectively Matching, obtains corresponding first similarity value;And respectively by the upper shadow of each history K line chart and the current K line chart Line, lower hachure and entity line carry out similarity mode, obtain corresponding second similarity value.
6. a kind of similar K line chart shows device, which is characterized in that be applied to terminal, described device includes:
First acquisition unit is configured to obtain the current K line chart of target stock shown in the stock interface of the terminal;
Detection unit is configured to detect whether to receive the trigger action of the default control key on the stock interface;
Second acquisition unit is configured to when receiving the trigger action of the default control key on the stock interface, from going through The history K line chart of each historical stock corresponding with the trigger action is obtained in history stock certificate data;
First determination unit is configured to determine the current K of the history K line chart of each historical stock and the target stock The similarity score of line chart;
Second determination unit is configured to according to the similarity score, from the history K line chart of each historical stock really Fixed K line chart to be presented;
Display unit is configured to for K line chart to be presented being shown on the stock interface.
7. device according to claim 6, which is characterized in that first determination unit includes:
Normalized subelement is configured to execute normalized to each history K line chart;
Similarity mode subelement is configured to respectively carry out the tendency of each history K line chart and the current K line chart Similarity mode obtains corresponding first similarity value;And respectively by each history K line chart and the current K line chart Upper hachure, lower hachure and entity line carry out similarity mode, obtain corresponding second similarity value;
Weighted sum subelement is configured to add each first similarity value and the execution of corresponding second similarity value Sum operation is weighed, using the value of obtained each weighted sum as corresponding each history K line chart and the current K The similarity score of line chart.
8. device according to claim 6, which is characterized in that second determination unit includes:
Sorting subunit is configured to the current K line of the history K line chart and the target stock according to each historical stock The similarity score of figure is ranked up each historical stock according to sequence from high to low;
Subelement is selected, the order according to sequence is configured to, successively selects preset quantity historical stock;Wherein, present count Amount is one or more of described historical stock;
Subelement is obtained, is configured to obtain history K line chart corresponding with selected preset quantity historical stock, and will obtain The history K line chart got is as K line chart to be presented.
9. a kind of terminal device, which is characterized in that the terminal device include: at least one processor, memory, at least one Network interface and user interface;
At least one described processor, memory, at least one network interface and user interface are coupled in one by bus system It rises;
The processor is used to execute as any in claim 1 to 5 by the program or instruction of calling the memory to store The step of similar K line chart methods of exhibiting described in one.
10. a kind of computer readable storage medium, which is characterized in that be stored with similar K on the computer readable storage medium Line chart presentation program is realized when the similar K line chart presentation program is executed by processor such as any one of claim 1 to 5 The step of described similar K line chart methods of exhibiting.
CN201910565133.6A 2019-06-27 2019-06-27 Similar K line chart methods of exhibiting, device, terminal device and computer storage medium Pending CN110415116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910565133.6A CN110415116A (en) 2019-06-27 2019-06-27 Similar K line chart methods of exhibiting, device, terminal device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910565133.6A CN110415116A (en) 2019-06-27 2019-06-27 Similar K line chart methods of exhibiting, device, terminal device and computer storage medium

Publications (1)

Publication Number Publication Date
CN110415116A true CN110415116A (en) 2019-11-05

Family

ID=68358357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910565133.6A Pending CN110415116A (en) 2019-06-27 2019-06-27 Similar K line chart methods of exhibiting, device, terminal device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110415116A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112329982A (en) * 2020-09-29 2021-02-05 武汉地大信息工程股份有限公司 K-line graph-based geological disaster prediction method and system
CN112905291A (en) * 2021-03-19 2021-06-04 北京字节跳动网络技术有限公司 Data display method and device and electronic equipment
CN113362174A (en) * 2021-06-17 2021-09-07 富途网络科技(深圳)有限公司 Data comparison method, device, equipment and storage medium
WO2023050331A1 (en) * 2021-09-30 2023-04-06 富途网络科技(深圳)有限公司 K-line form recognition method, and electronic device
CN116681522A (en) * 2023-06-05 2023-09-01 深圳价值网络科技有限公司 K line form stock selection method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557842A (en) * 2016-11-23 2017-04-05 上海银天下科技有限公司 The method and device of prediction K lines
CN107977755A (en) * 2017-12-21 2018-05-01 深圳市富途网络科技有限公司 A kind of shares changing tendency Forecasting Methodology based on K line numbers according to similarity
CN108154436A (en) * 2017-12-26 2018-06-12 福建中金在线信息科技有限公司 A kind of share-selecting method, device, electronic equipment and computer readable storage medium
CN108446790A (en) * 2018-02-10 2018-08-24 灯塔财经信息有限公司 A kind of similar K lines prediction technique and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557842A (en) * 2016-11-23 2017-04-05 上海银天下科技有限公司 The method and device of prediction K lines
CN107977755A (en) * 2017-12-21 2018-05-01 深圳市富途网络科技有限公司 A kind of shares changing tendency Forecasting Methodology based on K line numbers according to similarity
CN108154436A (en) * 2017-12-26 2018-06-12 福建中金在线信息科技有限公司 A kind of share-selecting method, device, electronic equipment and computer readable storage medium
CN108446790A (en) * 2018-02-10 2018-08-24 灯塔财经信息有限公司 A kind of similar K lines prediction technique and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112329982A (en) * 2020-09-29 2021-02-05 武汉地大信息工程股份有限公司 K-line graph-based geological disaster prediction method and system
CN112329982B (en) * 2020-09-29 2022-06-28 武汉地大信息工程股份有限公司 Geological disaster prediction method and system based on K-line graph
CN112905291A (en) * 2021-03-19 2021-06-04 北京字节跳动网络技术有限公司 Data display method and device and electronic equipment
CN113362174A (en) * 2021-06-17 2021-09-07 富途网络科技(深圳)有限公司 Data comparison method, device, equipment and storage medium
CN113362174B (en) * 2021-06-17 2023-01-24 富途网络科技(深圳)有限公司 Data comparison method, device, equipment 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
CN116681522A (en) * 2023-06-05 2023-09-01 深圳价值网络科技有限公司 K line form stock selection method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110415116A (en) Similar K line chart methods of exhibiting, device, terminal device and computer storage medium
CN111782943B (en) Information recommendation method, device, equipment and medium based on historical data record
CN110825957B (en) Deep learning-based information recommendation method, device, equipment and storage medium
US7548982B2 (en) Predictive branching and caching method and apparatus for applications
CA2830034C (en) Context-based keyboard
CN111104507B (en) Method and device for providing associated book information
CN108509466A (en) A kind of information recommendation method and device
CN111144874B (en) Payment mode recommendation method, device and equipment
CN105069036A (en) Information recommendation method and apparatus
CN108170794B (en) Information recommendation method and device, storage medium and electronic equipment
US20070198490A1 (en) Method and system for selecting information of advertiser in internet search engine in response to search-ordering of partner-site
CN110413870A (en) Method of Commodity Recommendation, device and server
CN103383702A (en) Method and system for recommending personalized news based on ranking of votes of users
US20090187559A1 (en) Method of analyzing unstructured documents to predict asset value performance
CN110766513A (en) Information sorting method and device, electronic equipment and readable storage medium
Shetty et al. Advantages of fine‐grained side chain conformer libraries
CN113838541A (en) Method and apparatus for designing ligand molecules
CN112346951B (en) Service testing method and device
CN111915315B (en) Authentication mode recommendation method and device, electronic equipment and readable storage medium
CN116126538A (en) Service processing method, device, equipment and storage medium
US8380605B2 (en) System and method for generating cross-sectional volatility index
CN106020505B (en) A kind of sort method and mobile terminal of candidates of input method
CN113988968A (en) Matching degree-based electric power retail transaction method, platform and storage medium
CN108388602B (en) Quick-searching can dispense the method and device and electronic equipment in warehouse
WO2006059859A1 (en) Method for providing search service and system for executing the method

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: 20191105