CN112541824B - Drawing method and system of K-line candle graph and storage medium - Google Patents

Drawing method and system of K-line candle graph and storage medium Download PDF

Info

Publication number
CN112541824B
CN112541824B CN202011437604.4A CN202011437604A CN112541824B CN 112541824 B CN112541824 B CN 112541824B CN 202011437604 A CN202011437604 A CN 202011437604A CN 112541824 B CN112541824 B CN 112541824B
Authority
CN
China
Prior art keywords
line
candle
price
data
real
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.)
Active
Application number
CN202011437604.4A
Other languages
Chinese (zh)
Other versions
CN112541824A (en
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.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp 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 China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202011437604.4A priority Critical patent/CN112541824B/en
Publication of CN112541824A publication Critical patent/CN112541824A/en
Application granted granted Critical
Publication of CN112541824B publication Critical patent/CN112541824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • G06F16/2322Optimistic concurrency control using timestamps

Landscapes

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

Abstract

The invention discloses a drawing method and system of a K-line candle graph and a storage medium. The method comprises the steps of receiving real-time price information of a product sent by a quotation engine and storing the real-time price information into a receiving queue; polling the receive queue to determine if there is newly added price data enqueued; when the enqueuing of newly added price data is determined, a thread with a preset K line type is awakened and started, and locking operation is carried out on the thread, so that data processing and candle drawing of a receiving queue are completed, the technical problem that the time sequence and the data processing speed are not ideal due to K line drawing in a multithreading running state are solved, and the technical effect of good instantaneity is achieved.

Description

Drawing method and system of K-line candle graph and storage medium
Technical Field
The invention relates to the field of finance, in particular to a drawing method and system of a K-line candle graph and a storage medium.
Background
At present, with the gradual opening of domestic financial markets, financial transactions are increasingly active, and the demands of bank individual customers and public customers for foreign exchange investment transactions and large commodity investment transactions of noble metals, crude oil, soybeans and the like are rapidly increased. The K line is an advantageous auxiliary tool for the trading user to analyze market trend and grasp buying and selling time. However, high requirements on timeliness and accuracy of K-wire data are generated, the prior art processes on the basis of a common multithreading mode, a custom file is used as a data persistence carrier, and the range of the K-wire product to be drawn is configured on the basis of quotation engine rules.
However, the algorithm logic in the prior art is an access mode for actively judging data, which lacks real-time performance, and the common multi-thread mode processing K line has certain difficulty in ensuring time sequence, so that the data processing speed is influenced.
Aiming at the problem that the time sequence and the data processing speed are not ideal in the prior art when K line drawing is performed in a multithreading running state, a better solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method, a system and a storage medium for drawing a K line candle graph, which are used for at least solving the technical problems that the time sequence and the data processing speed are not ideal in the K line drawing under the multithreading running state in the related technology.
According to one aspect of the embodiment of the invention, a drawing method of a K-line candle graph is provided, which is applied to the financial field and comprises the following steps:
receiving real-time price information of a product sent by a quotation engine and storing the real-time price information into a receiving queue;
polling the receive queue to determine if there is newly added price data enqueued;
when determining that newly added price data is enqueued, waking up and starting a thread with a preset K line type;
And locking the thread to finish data processing and candle drawing of the receiving queue.
Optionally, the product real-time price information is composed of four dimensions of business type information, product type information, standard processing deadline information, and real-time price.
Optionally, creating a list of forms for each standard transaction deadline for the product;
When it is determined that there is newly added price data enqueued, the newly added price data is stored in the corresponding form list and deleted from the reception queue.
Optionally, waking up and starting a thread having a preset K line type includes:
the preset K line type includes a service type, a product type and a standard transaction deadline composition.
Optionally, completing the data processing and candlegraph drawing of the receiving queue includes:
processing data in the form list according to time sequence, updating values of the candle pictures in a minute line, an hour line, a day line, a contour line and a moon line, and finishing drawing of the candle pictures;
wherein, the values of the candle graph comprise a open-disk value, a close-disk value, a highest value and a lowest value.
Optionally, after the drawing of the candle drawing is completed, the method further comprises:
storing the candle drawings which are drawn according to the minute line and the hour line into a database;
and storing the candle graph drawn according to the solar system, the contour line and the moon line into a database according to preset time.
According to another aspect of the embodiment of the invention, there is also provided a drawing system of a K-wire candle graph, applied to the financial field, including:
the price screening module is used for receiving real-time price information of the product sent by the quotation engine and storing the real-time price information into the receiving queue;
The price screening module is also used for polling the receiving queue to determine whether newly added price data is enqueued;
The drawing module is used for waking up and starting a thread with a preset K line type when determining that newly added price data is enqueued;
and the drawing module is also used for locking the thread and finishing the data processing of the receiving queue and the drawing of the candle graph.
Optionally, the price screening module further comprises: creating a list of forms for each standard transaction deadline for the product;
When it is determined that there is newly added price data enqueued, the newly added price data is stored in the corresponding form list and deleted from the reception queue.
Optionally, the drawing module further includes: processing data in the form list according to time sequence, updating values of the candle pictures in a minute line, an hour line, a day line, a contour line and a moon line, and finishing drawing of the candle pictures;
wherein, the values of the candle graph comprise a open-disk value, a close-disk value, a highest value and a lowest value.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the method of drawing a K-line candle graph described above when run.
In the embodiment of the invention, the real-time price information of the product sent by the quotation engine is received and stored in a receiving queue; polling the receive queue to determine if there is newly added price data enqueued; when the enqueuing of newly added price data is determined, a thread with a preset K line type is awakened and started, and locking operation is carried out on the thread, so that data processing and candle drawing of a receiving queue are completed, the technical problem that the time sequence and the data processing speed are not ideal due to K line drawing in a multithreading running state are solved, and the technical effect of good instantaneity is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method of drawing a K-wire candle graph according to an embodiment of the present invention;
fig. 2 is a block diagram of a system architecture for drawing a K-wire candle drawing according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and in the foregoing figures, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a method for drawing a K-wire candle graph, optionally, as an optional implementation manner, the method for drawing a K-wire candle graph in this embodiment may be performed by a computer program, and may be applied to a terminal or a server or a similar computing device or an electronic apparatus. The computing device or electronic device may include, for example, one or more processors (which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory for storing data, and may also include a transmission device for communication functions and an input-output device. More or fewer components than are shown, or have a different configuration than shown. The memory may be used to store a computer program, for example, a software program of application software and a module, for example, a computer program corresponding to a drawing method of a K-wire candle holder in the embodiment of the present invention, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission means is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission means comprises a network adapter (Network Interface Controller, simply referred to as NIC) that can be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Illustratively, as an alternative implementation, fig. 1 is a flowchart of a method for drawing a K-wire candle graph according to an embodiment of the present invention, as shown in fig. 1, where the method includes:
step S101, receiving real-time price information of a product sent by a quotation engine and storing the real-time price information into a receiving queue;
specifically, the quotation engine is the only portal for receiving real-time price information for each product;
It should be noted that, in order to avoid congestion caused by a situation like "production speed is greater than consumption speed", the received real-time price information is not processed here, but is stored in a unique receiving queue in an asynchronous mode.
Step S103, polling the receiving queue to determine whether newly added price data is enqueued;
Specifically, the license management thread started with the system can continuously poll the queue, and after the new enqueued data is found in the queue, the next processing is carried out.
Step S105, when the newly added price data is determined to be enqueued, waking up and starting a thread with a preset K line type;
Specifically, when the thread finds a new price in the queue, the price is put into a corresponding list according to the rule, and the list is deleted from the queue.
Step S107, locking the thread to finish data processing and candlegraph drawing of the receiving queue;
specifically, after locking operation is performed, the condition that two threads process the same queue simultaneously is avoided, so that price data read from a receiving queue each time can be guaranteed, the latest price in the K line is not necessarily represented, repeated processing of the same price is avoided, and processing efficiency is improved.
In one exemplary embodiment, the product real-time price information is composed of four dimensions of business type information, product type information, standard processing deadline information, and real-time price;
wherein, the business type information includes, but is not limited to, spot, dropped period, long period;
The product type information includes a money pair, such as various types of EUR/USD, GBP/USD, USD/JPY, etc.;
Standard processing deadlines may include the following types:
ON, over-right overnight, i.e. the day goes ON, the next day is crossed;
TN: tom-Next, the Next day (Tom is Tomorrow) is at rest, and the third day is when cutting;
SN: spot-Next, i.e. on-demand, i.e. the days of the Spot differ from currency to currency, most 2 days, the Next day of the Spot is handed over;
1W, on-demand, one week after on-demand delivery;
1M, on-demand, one month after on-demand delivery;
1Y, on-demand, one year after on-demand delivery.
In one exemplary embodiment, a form list is created for each standard transaction deadline for a product;
specifically, the creation principle may be that a deadline is taken as a minimum granularity K-line management unit, and it should be noted that the creation of a form by other principles is also applicable to the present scheme.
When it is determined that there is newly added price data enqueued, the newly added price data is stored in the corresponding form list and deleted from the reception queue.
In one exemplary embodiment, waking up and starting a thread having a preset K line type includes:
the preset K line type includes a service type, a product type and a standard transaction deadline composition.
In one exemplary embodiment, completing the data processing and candling of the receive queue includes:
processing data in the form list according to time sequence, updating values of the candle pictures in a minute line, an hour line, a day line, a contour line and a moon line, and finishing drawing of the candle pictures;
wherein, the values of the candle graph comprise a open-disk value, a close-disk value, a highest value and a lowest value.
In one exemplary embodiment, after completing the drawing of the candle pattern, the method further comprises:
storing the candle drawings which are drawn according to the minute line and the hour line into a database;
Storing the candle graph drawn according to the solar system, the contour line and the moon line into a database according to preset time;
specifically, the preset time may be set to 1h,2h, or the like. Only update is made in the subsequent data update, and no new record is inserted.
Through the steps, the real-time price information of the product sent by the quotation engine is received and stored in a receiving queue; polling the receive queue to determine if there is newly added price data enqueued; when the enqueuing of newly added price data is determined, a thread with a preset K line type is awakened and started, and locking operation is carried out on the thread, so that data processing and candle drawing of a receiving queue are completed, the technical problem that the time sequence and the data processing speed are not ideal due to K line drawing in a multithreading running state are solved, and the technical effect of good instantaneity is achieved.
The embodiment of the invention also provides a drawing system of the K-line candle graph, which is used for realizing the embodiment and the preferred implementation mode. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 2 is a block diagram of a drawing system of a K-wire candle graph according to an embodiment of the present invention, as shown in fig. 2, the system includes:
The price screening module 22 is configured to receive real-time price information of the product sent by the quotation engine and store the real-time price information in the receiving queue;
price screening module 22, which is also configured to poll the receive queue to determine whether there is newly added price data enqueued;
a drawing module 24, configured to wake up and start a thread with a preset K line type when it is determined that there is newly added price data enqueuing;
The drawing module 24 is further used for locking the thread to complete data processing of the receiving queue and drawing of the candle graph;
specifically, after locking operation is performed, the condition that two threads process the same queue simultaneously is avoided, so that price data read from a receiving queue each time can be guaranteed, the latest price in the K line is not necessarily represented, repeated processing of the same price is avoided, and processing efficiency is improved.
In one exemplary embodiment, the price screening module further comprises:
creating a list of forms for each standard transaction deadline for the product;
When it is determined that there is newly added price data enqueued, the newly added price data is stored in the corresponding form list and deleted from the reception queue.
In an exemplary embodiment, the drawing module further includes:
processing data in the form list according to time sequence, updating values of the candle pictures in a minute line, an hour line, a day line, a contour line and a moon line, and finishing drawing of the candle pictures;
wherein, the values of the candle graph comprise a open-disk value, a close-disk value, a highest value and a lowest value.
By the K-line candle drawing system, the technical problem that the time sequence and the data processing speed are not ideal due to the fact that K-line drawing cannot be ensured in a multithreading running state is solved, and the technical effect of good instantaneity is achieved.
The following is a specific implementation scenario for further explanation:
Receiving real-time price information of a product sent by a quotation engine, wherein the real-time price information of the product is USD/CNY-spot, USD/CNY-drop-1W, USD/CNY-drop-1M, USD/JPY-spot, USD/JPY-drop-1W and USD/JPY-drop-1M.
The following are defined in the configuration file: 2 traffic types: spot and drop-out; 2 product types: USD/CNY, USD/JPY;2 standard deadlines for drop points: 1W, 1M. When the system is started, the read configuration file generates 1 price receiving queue Q and 6 asynchronous processing queues list.
When Q receives the latest price of the quotation engine, the polling thread stores the numbers into the corresponding 6 asynchronous processing queues according to price types.
Each price type corresponds to a plurality of K lines, and there are minute lines, hour lines, day lines, contour lines, moon lines and the like. When a new price is stored in list (USD/CNY-on-demand), a K line update thread is allocated from the thread pool, and the "USD/CNY-on-demand" price type is locked, and then the thread is started.
A minute line, comparing the update time stamp of the existing minute line candle graph in the memory with the time stamp of the latest price in the list, if the updated time stamp is the same minute, comparing the price in the list with four values of the existing candle graph in the memory, namely, the opening price, the highest price, the closing price and the closing price, and updating the opening price, the closing price and the closing price; if the time is different, the candle graph in the memory is marked as a completed state, the candle graph is written into the database, a candle graph object is newly created, and the four values of the on, off, on, off are initialized to be the latest price in the list. Hour line, update logic same minute line.
And (3) taking the fact that the drawing period of a solar line candle graph is longer is considered, the memory data loss caused by system abnormality is not avoided, and when each hour of line warehousing is performed, the solar line candle graph in the memory is marked as an unfinished state and synchronously warehoused. After one hour, performing update operation on the high-low values of the last warehouse-in solar line candle graph and the update time stamp; if the day has passed 0, the status of the latest candles record in the update database is "completed", and the update of the record of the new day is started at the new candles object. Similarly, the contour and moon line candle drawing can be referenced to the day line.
It should be further noted that other embodiments with the same effects may also be applied to the present solution, and will not be described herein again.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any one of the method embodiments of the method of drawing a K-wire candle graph at run-time.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, receiving real-time price information of a product sent by a quotation engine and storing the real-time price information into a receiving queue;
s2, polling a receiving queue to determine whether newly added price data is enqueued;
S3, when the newly added price data is determined to be enqueued, waking up and starting a thread with a preset K line type;
s4, locking the thread to finish data processing and candlegraph drawing of the receiving queue.
Through the steps, the real-time price information of the product sent by the quotation engine is received and stored in a receiving queue; polling the receive queue to determine if there is newly added price data enqueued; when the enqueuing of newly added price data is determined, a thread with a preset K line type is awakened and started, and locking operation is carried out on the thread, so that data processing and candle drawing of a receiving queue are completed, the technical problem that the time sequence and the data processing speed are not ideal due to K line drawing in a multithreading running state are solved, and the technical effect of good instantaneity is achieved.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logic function division, and there may be other division manners in which a practical implementation may be, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (4)

1. The drawing method of the K-line candle graph is applied to the financial field and is characterized by comprising the following steps of:
receiving real-time price information of a product sent by a quotation engine and storing the real-time price information into a receiving queue;
polling the receive queue to determine if there is newly added price data enqueued;
when determining that newly added price data is enqueued, waking up and starting a thread with a preset K line type;
Locking the thread to finish data processing and candle drawing of the receiving queue;
the product real-time price information consists of four dimensions of service type information, product type information, standard processing deadline information and real-time price;
Creating a list of forms for each standard transaction deadline for the product; when determining that new price data is enqueued, storing the new price data into a corresponding form list, and deleting the new price data from the receiving queue;
The waking up and starting a thread with a preset K line type includes: the preset K line type comprises a service type, a product type and a standard transaction deadline;
The data processing and candle drawing of the receiving queue are completed, and the steps comprise: processing the data in the list according to the time sequence, updating the values of the candle pictures in the minute line, hour line, day line, week line and month line, and finishing the drawing of the candle pictures; the values of the candle graph comprise a starting value, a closing value, a highest value and a lowest value.
2. The method of claim 1, further comprising, after completing the candling, the steps of:
storing the candle drawings which are drawn according to the minute line and the hour line into a database;
and storing the candle graph drawn according to the solar system, the contour line and the moon line into a database according to preset time.
3. The drawing system of K line candle graph is applied to finance field, and its characterized in that includes:
the price screening module is used for receiving real-time price information of the product sent by the quotation engine and storing the real-time price information into the receiving queue;
the price screening module is further used for polling the receiving queue to determine whether newly added price data is enqueued;
The drawing module is used for waking up and starting a thread with a preset K line type when determining that newly added price data is enqueued;
The drawing module is also used for locking the thread to finish the data processing of the receiving queue and the drawing of the candle graph;
the product real-time price information consists of four dimensions of service type information, product type information, standard processing deadline information and real-time price;
the price screening module further comprises:
Creating a list of forms for each standard transaction deadline for the product; when determining that new price data is enqueued, storing the new price data into a corresponding form list, and deleting the new price data from the receiving queue;
the drawing module further includes:
Processing data in the list according to time sequence, updating values of the candle pictures in a minute line, an hour line, a day line, a contour line and a moon line, and finishing drawing of the candle pictures; the values of the candle graph comprise a starting value, a closing value, a highest value and a lowest value.
4. A computer readable storage medium comprising a stored program, wherein the program when run performs the method of any one of claims 1 to 2.
CN202011437604.4A 2020-12-11 2020-12-11 Drawing method and system of K-line candle graph and storage medium Active CN112541824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011437604.4A CN112541824B (en) 2020-12-11 2020-12-11 Drawing method and system of K-line candle graph and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011437604.4A CN112541824B (en) 2020-12-11 2020-12-11 Drawing method and system of K-line candle graph and storage medium

Publications (2)

Publication Number Publication Date
CN112541824A CN112541824A (en) 2021-03-23
CN112541824B true CN112541824B (en) 2024-04-30

Family

ID=75019907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011437604.4A Active CN112541824B (en) 2020-12-11 2020-12-11 Drawing method and system of K-line candle graph and storage medium

Country Status (1)

Country Link
CN (1) CN112541824B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407525B (en) * 2021-08-03 2021-11-09 深圳华锐金融技术股份有限公司 K-line data inspection method and device, computer equipment and readable storage medium
CN114581242A (en) * 2022-05-05 2022-06-03 北京中捷互联信息技术有限公司 Financial data processing system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427697A (en) * 2020-03-18 2020-07-17 深圳市瑞立视多媒体科技有限公司 Motion capture method, device and equipment based on multithreading and storage medium
CN111767143A (en) * 2020-06-24 2020-10-13 中国工商银行股份有限公司 Transaction data processing method, device, equipment and system
CN112015713A (en) * 2019-05-30 2020-12-01 阿里巴巴集团控股有限公司 Database task processing method and device, electronic equipment and readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015713A (en) * 2019-05-30 2020-12-01 阿里巴巴集团控股有限公司 Database task processing method and device, electronic equipment and readable medium
CN111427697A (en) * 2020-03-18 2020-07-17 深圳市瑞立视多媒体科技有限公司 Motion capture method, device and equipment based on multithreading and storage medium
CN111767143A (en) * 2020-06-24 2020-10-13 中国工商银行股份有限公司 Transaction data processing method, device, equipment and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Java多线程同步机制的应用分析;陈益;童亚拉;杨晓艳;;智能计算机与应用;20120601(03);全文 *
基于无锁数据结构的FIFO队列算法;王俊昌;王振;付雄;;计算机工程;20180314(08);全文 *

Also Published As

Publication number Publication date
CN112541824A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US11295384B2 (en) Method and apparatus for order entry in an electronic trading system
ES2754099T3 (en) Synchronized data processing using networked computing resources
CN112541824B (en) Drawing method and system of K-line candle graph and storage medium
US20170124649A1 (en) Techniques for real-time order prioritization and matching
US11588754B2 (en) Activity based electrical computer system request processing architecture
CN108694657A (en) Client's identification device, method and computer readable storage medium
KR20170047292A (en) Dynamic peg orders in an electronic trading system
US20170316502A1 (en) Techniques for automated order matching
CN106874080B (en) Data calculation method and system based on distributed server cluster
CN113222720A (en) Reputation-based privacy protection incentive mechanism method, device and storage medium
CN111626861A (en) Information display method and device, storage medium and electronic device
CN111539809A (en) Method and related device for determining electronic receipt style
CN108345941B (en) Parameter adjusting method and device
CN111815200A (en) Task scheduling method and device, computer equipment and storage medium
CN111461599B (en) Mode state switching method and device, storage medium and electronic device
CN111401985B (en) Information display method and device, storage medium and electronic device
Lipton et al. Trading strategies via book imbalance
CN114493113A (en) Task allocation method, device, electronic device and storage medium
CN112381514A (en) Service data reminding method and device and server
KR101927065B1 (en) Apparatus to share transaction data
Hall et al. Estimating the intensity of buy and sell arrivals in a limit order book market
CN112308639A (en) Target event aging prediction method and device
CN115456787A (en) Transaction data processing method, device, equipment and medium
CN115829740A (en) Processing method and device for financial bill hanging transaction
WO2023056519A1 (en) An electronic trading system for real property financial instruments

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
GR01 Patent grant
GR01 Patent grant