CN114820193A - Chip change curve generation method, device, equipment and storage medium - Google Patents

Chip change curve generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114820193A
CN114820193A CN202210554512.7A CN202210554512A CN114820193A CN 114820193 A CN114820193 A CN 114820193A CN 202210554512 A CN202210554512 A CN 202210554512A CN 114820193 A CN114820193 A CN 114820193A
Authority
CN
China
Prior art keywords
chip
condition
change
price
day
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
CN202210554512.7A
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.)
Guangdong Bozhong Intelligent Technology Investment Co ltd
Original Assignee
Guangdong Bozhong Intelligent Technology Investment 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 Guangdong Bozhong Intelligent Technology Investment Co ltd filed Critical Guangdong Bozhong Intelligent Technology Investment Co ltd
Priority to CN202210554512.7A priority Critical patent/CN114820193A/en
Publication of CN114820193A publication Critical patent/CN114820193A/en
Pending legal-status Critical Current

Links

Images

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
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a chip change curve generation method, a device, equipment and a storage medium, wherein the method comprises the following steps: obtaining the current chip change data and the historical chip change data of the stock to be changed; when the chip change data of the current day meets the preset statistical conditions according to the historical chip change data, generating a starting value and acquiring a starting counting value; when the starting value meets the starting condition, judging whether the starting count value meets the change condition, if so, determining a change point, and generating a chip change curve according to the change point and the chip change data of the current day; otherwise, determining a calculation updating condition according to the starting counting value, and updating the starting counting value when the chip changing data of the current day and the historical chip changing data meet the counting updating condition. The problem that the chip change points cannot be determined is solved, the information of the change points is accurately determined, the chip change curve is generated according to the change points, the change points are displayed, and the check is facilitated.

Description

一种筹码变更曲线生成方法、装置、设备及存储介质Method, device, device and storage medium for generating chip change curve

技术领域technical field

本发明涉及数据处理技术领域,尤其涉及一种筹码变更曲线生成方法、装置、设备及存储介质。The present invention relates to the technical field of data processing, and in particular, to a method, device, device and storage medium for generating a chip change curve.

背景技术Background technique

随着生活水平的提高,股票成为越来越多人的理财选择。股票通过K线图反映大事的状况和价格信息。筹码是股市瓯子这持有的成本的比例变化,筹码的多少也表示了投资者对股票持有的多少。因此,对筹码进行变更非常重要。如何选择合适的时间对筹码进行变更成为有待解决的问题。With the improvement of living standards, stocks have become a financial choice for more and more people. The stock reflects the status and price information of major events through the K-line chart. Chips are the proportion of changes in the cost of holding the stock market, and the amount of chips also indicates how much investors hold the stock. Therefore, it is very important to make changes to the chips. How to choose the right time to change the chips has become a problem to be solved.

发明内容SUMMARY OF THE INVENTION

本发明提供了一种筹码变更曲线生成方法、装置、设备及存储介质,以解决无法准确对筹码进行变更的问题。The present invention provides a method, device, device and storage medium for generating a chip change curve, so as to solve the problem that the chip cannot be changed accurately.

根据本发明的一方面,提供了一种筹码变更曲线生成方法,该方法包括:According to an aspect of the present invention, a method for generating a chip change curve is provided, the method comprising:

获取待变更股票的当日筹码变更数据及历史筹码变更数据;Obtain the current chip change data and historical chip change data of the stock to be changed;

当根据所述历史筹码变更数据确定所述当日筹码变更数据满足预设统计条件时,生成启动值并获取启动计数值;When it is determined according to the historical chip change data that the current day's chip change data satisfies a preset statistical condition, generating an activation value and acquiring an activation count value;

当所述启动值满足启动条件时,判断所述启动计数值是否满足变更条件,若是,则确定变更点,并根据所述变更点和当日筹码变更数据生成筹码变更曲线;When the activation value satisfies the activation condition, determine whether the activation count value satisfies the change condition, and if so, determine the change point, and generate a chip change curve according to the change point and the chip change data of the day;

否则,根据所述启动计数值确定计算更新条件,当确定所述当日筹码变更数据及历史筹码变更数据满足所述计数更新条件时,对所述启动计数值进行更新。Otherwise, a calculation update condition is determined according to the start count value, and when it is determined that the current day chip change data and the historical chip change data satisfy the count update condition, the start count value is updated.

根据本发明的另一方面,提供了一种筹码变更曲线生成装置,该装置包括:According to another aspect of the present invention, there is provided a chip change curve generating device, the device comprising:

数据获取模块,用于获取待变更股票的当日筹码变更数据及历史筹码变更数据;The data acquisition module is used to acquire the current chip change data and historical chip change data of the stock to be changed;

计数值获取模块,用于当根据所述历史筹码变更数据确定所述当日筹码变更数据满足预设统计条件时,生成启动值并获取启动计数值;a count value acquisition module, configured to generate a start value and obtain a start count value when it is determined according to the historical chip change data that the current day's chip change data satisfies a preset statistical condition;

变更判断模块,用于当所述启动值满足启动条件时,判断所述启动计数值是否满足变更条件,若是,则确定变更点,并根据所述变更点和当日筹码变更数据生成筹码变更曲线;否则,根据所述启动计数值确定计算更新条件,当确定所述当日筹码变更数据及历史筹码变更数据满足所述计数更新条件时,对所述启动计数值进行更新。a change judgment module, configured to judge whether the start count value satisfies the change condition when the start value satisfies the start condition, and if so, determine the change point, and generate a chip change curve according to the change point and the chip change data of the day; Otherwise, a calculation update condition is determined according to the start count value, and when it is determined that the current day chip change data and the historical chip change data satisfy the count update condition, the start count value is updated.

根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的筹码变更曲线生成方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any of the embodiments of the present invention. Chip change curve generation method.

根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的筹码变更曲线生成方法。According to another aspect of the present invention, a computer-readable storage medium is provided, where computer instructions are stored in the computer-readable storage medium, and the computer instructions are used to cause a processor to implement any of the embodiments of the present invention when executed. The chip change curve generation method.

本发明实施例的技术方案,通过获取待变更股票的当日筹码变更数据及历史筹码变更数据;当根据历史筹码变更数据确定当日筹码变更数据满足预设统计条件时,生成启动值并获取启动计数值;当启动值满足启动条件时,判断启动计数值是否满足变更条件,若是,则确定变更点,并根据变更点和当日筹码变更数据生成筹码变更曲线;否则,根据启动计数值确定计算更新条件,当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件时,对启动计数值进行更新。解决了无法确定筹码变更点的问题,通过对当日筹码变更数据及历史筹码变更数据进行分析,确定满足预设统计条件时,生成启动值并获取启动计数值。在启动值满足启动条件时,启动变更点分析。在启动计数值满足变更条件时,确定变更点,实现对筹码变更的准确分析;并根据变更点和当日筹码变更数据生成筹码变更曲线,对变更点进行展示,便于查看。在启动计数值不满足变更条件时,确定计数更新条件,不同的启动计数值对应不同的计数更新条件,判断当日筹码变更数据及历史筹码变更数据是否满足计数更新条件,对启动计数值进行更新,直到启动计数值满足变更条件,实现变更点的确定。通过设置不同的条件,结合当日筹码变更数据及历史筹码变更数据确定变更点,准确确定变更点的信息,提高变更点确定的准确率。The technical solution of the embodiment of the present invention is to obtain the current-day chip change data and historical chip change data of the stock to be changed; when it is determined according to the historical chip change data that the current-day chip change data meets the preset statistical conditions, a startup value is generated and a startup count value is obtained. ; When the start value satisfies the start condition, judge whether the start count value satisfies the change condition, if so, determine the change point, and generate the chip change curve according to the change point and the chip change data of the day; otherwise, determine the calculation update condition according to the start count value, When it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition, the start count value is updated. The problem that the chip change point cannot be determined is solved. By analyzing the chip change data of the current day and the historical chip change data, it is determined that when the preset statistical conditions are met, the activation value is generated and the activation count value is obtained. When the start value meets the start condition, the change point analysis is started. When the startup count value meets the change conditions, the change point is determined to realize accurate analysis of the chip change; and the chip change curve is generated according to the change point and the chip change data of the day, and the change point is displayed for easy viewing. When the start count value does not meet the change condition, determine the count update condition, different start count values correspond to different count update conditions, judge whether the current chip change data and historical chip change data meet the count update condition, and update the start count value, Until the start count value satisfies the change condition, the determination of the change point is realized. By setting different conditions, the change point is determined in combination with the chip change data of the day and the historical chip change data, the information of the change point is accurately determined, and the accuracy of the change point determination is improved.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become readily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是根据本发明实施例一提供的一种筹码变更曲线生成方法的流程图;1 is a flowchart of a method for generating a chip change curve according to Embodiment 1 of the present invention;

图2是根据本发明实施例二提供的一种筹码变更曲线生成方法的流程图;2 is a flowchart of a method for generating a chip change curve according to Embodiment 2 of the present invention;

图3是根据本发明实施例二提供的一种确定第一变更点的实现示例图;FIG. 3 is an exemplary diagram of an implementation of determining a first change point according to Embodiment 2 of the present invention;

图4是根据本发明实施例二提供的一种确定第二变更点的实现示例图;FIG. 4 is a diagram illustrating an implementation example of determining a second change point according to Embodiment 2 of the present invention;

图5是根据本发明实施例三提供的一种筹码变更曲线生成装置的结构示意图;5 is a schematic structural diagram of an apparatus for generating a chip change curve according to Embodiment 3 of the present invention;

图6是实现本发明实施例的筹码变更曲线生成方法的电子设备的结构示意图。6 is a schematic structural diagram of an electronic device implementing the method for generating a chip change curve according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

实施例一Example 1

图1为本发明实施例一提供了一种筹码变更曲线生成方法的流程图,本实施例可适用于对筹码变更进行分析的情况,该方法可以由筹码变更曲线生成装置来执行,该筹码变更曲线生成装置可以采用硬件和/或软件的形式实现,该筹码变更曲线生成装置可配置于中。如图1所示,该方法包括:1 is a flowchart of a method for generating a chip change curve according to Embodiment 1 of the present invention. This embodiment is applicable to the situation of analyzing chip changes. The method can be executed by a chip change curve generating device. The curve generating device may be implemented in the form of hardware and/or software, and the chip change curve generating device may be configured in . As shown in Figure 1, the method includes:

S101、获取待变更股票的当日筹码变更数据及历史筹码变更数据。S101. Acquire current-day chip change data and historical chip change data of the stock to be changed.

在本实施例中,待变更股票具体可以理解为具有变更分析需求的股票。当日筹码变更数据具体可以理解为当日的筹码进行变更时所涉及的相关数据,例如,收盘价、开盘价、最低价、最高价等数据。历史筹码变更数据具体可以理解为当日之前的筹码变更涉及到的相关数据,历史筹码变更数据与当前筹码变更数据的数据类型相同,仅日期不同。In this embodiment, the stock to be changed can be specifically understood as a stock with a change analysis requirement. The chip change data on the current day can be specifically understood as the relevant data involved when the chips on the current day are changed, for example, data such as closing price, opening price, lowest price, and highest price. The historical chip change data can be specifically understood as the relevant data involved in the chip change before the current day. The historical chip change data and the current chip change data have the same data type, only the date is different.

具体的,待变更股票可以由用户自行选择,选择需要关注的股票作为待变更股票。如果待变更股票的数量为多个,每一个待变更股票均通过相同的方式生成筹码变更曲线。对于每支股票,均记录每日的筹码变更数据并存储;或者,仅记录待变更股票每日的筹码变更数据并存储。在确定待变更股票后,从相应的存储空间获取待变更股票的当日筹码变更数据和历史筹码变更数据。当日筹码变更数据及历史筹码变更数据还可以存储在服务器端,本申请所提供的筹码变更曲线生成方法可以在客户端执行,客户端创建Socket,并与服务端连接,通过指令从服务端获取当日筹码变更数据及历史筹码变更数据。Specifically, the stock to be changed can be selected by the user, and the stock that needs attention is selected as the stock to be changed. If the number of stocks to be changed is multiple, each of the stocks to be changed will generate a chip change curve in the same way. For each stock, the daily chip change data is recorded and stored; or, only the daily chip change data of the stock to be changed is recorded and stored. After the stock to be changed is determined, the current day chip change data and the historical chip change data of the stock to be changed are acquired from the corresponding storage space. The chip change data of the day and the historical chip change data can also be stored on the server side. The chip change curve generation method provided by this application can be executed on the client side. The client side creates a Socket and connects with the server side, and obtains the current day from the server side through instructions. Chip change data and historical chip change data.

S102、当根据历史筹码变更数据确定当日筹码变更数据满足预设统计条件时,生成启动值并获取启动计数值。S102. When it is determined according to the historical chip change data that the current day's chip change data satisfies a preset statistical condition, generate an activation value and acquire an activation count value.

在本实施例中,预设统计条件具体可以理解为预先设置的条件,用于判断是否可以启动筹码变更曲线的生成。启动值具体可以理解为一个数值,例如,1、2等,用于衡量筹码变更数据是否符合要求。启动计数值具体可以理解为一个数值,用于计数。In this embodiment, the preset statistical condition can be specifically understood as a preset condition used to determine whether the generation of the chip change curve can be started. The starting value can be understood as a numerical value, for example, 1, 2, etc., which is used to measure whether the chip change data meets the requirements. The start count value can be specifically understood as a numerical value for counting.

具体的,设置不同的预设统计条件,不同的预设统计条件对应的变更点的类型不同,不同的变更点对应不同的股票归属权的变更,例如,变更股票归属权为让出归属权,或者拥有归属权。比较当日筹码变更数据与历史筹码变更数据,例如,判断当前筹码变更数据的收盘价与历史筹码变更数据中的收盘价的大小,确定是否满足预设统计条件,若满足,生成启动值并获取启动计数值。生成启动值可以是为启动值进行初始赋值,例如,在满足预设统计条件时,将启动值设置为1,即生成的启动值为1。启动计数值设置初始值,其初始值可以设置为0,在生成启动值后所获取的启动计数值为初始值。Specifically, different preset statistical conditions are set, the types of change points corresponding to different preset statistical conditions are different, and different change points correspond to changes of different stock ownership rights. Or have attribution. Compare the current chip change data with the historical chip change data, for example, determine the size of the closing price of the current chip change data and the closing price in the historical chip change data, determine whether the preset statistical conditions are met, and if so, generate the activation value and obtain the activation value count value. The generation of the start value may be an initial assignment of the start value, for example, when a preset statistical condition is satisfied, the start value is set to 1, that is, the generated start value is 1. The startup count value sets the initial value, and its initial value can be set to 0, and the startup count value obtained after the startup value is generated is the initial value.

S103、当启动值满足启动条件时,判断启动计数值是否满足变更条件,若是,执行S104;否则,执行S105。S103 , when the activation value satisfies the activation condition, determine whether the activation count value satisfies the change condition, and if so, execute S104 ; otherwise, execute S105 .

在本实施例中,启动条件可以是启动值大于一定的阈值,或者启动值在一定的阈值范围内等。变更条件具体可以理解为用于判断是否存在变更点的条件,例如,启动计数值大于3。In this embodiment, the activation condition may be that the activation value is greater than a certain threshold value, or the activation value is within a certain threshold value range, or the like. The change condition can be specifically understood as a condition for judging whether there is a change point, for example, the start count value is greater than 3.

具体的,判断启动值是否满足启动条件,当启动值满足启动条件时,判断启动计数值是否满足变更条件,若满足变更条件,执行S104;若不满足变更条件,执行S105。当启动值不满足启动条件时,此时不存在变更点,等待启动值满足启动条件。Specifically, it is judged whether the activation value satisfies the activation condition, and when the activation value satisfies the activation condition, it is judged whether the activation count value satisfies the change condition. If the change condition is met, S104 is executed; When the start value does not meet the start condition, there is no change point at this time, and wait for the start value to meet the start condition.

S104、确定变更点,并根据变更点和当日筹码变更数据生成筹码变更曲线。S104. Determine the change point, and generate a chip change curve according to the change point and the chip change data of the current day.

在本实施例中,变更点可以表示此时可以进行筹码归属权的变更。当启动计数值满足变更条件时,确定当日存在一个变更点,即确定变更点所在的日期,根据当日筹码变更数据确定变更点对应的收盘价、最低价、最高价等,生成筹码变更曲线。In this embodiment, the change point may indicate that the chip ownership can be changed at this time. When the start count value satisfies the change condition, it is determined that there is a change point on the day, that is, the date of the change point is determined, and the closing price, the lowest price, the highest price, etc. corresponding to the change point are determined according to the chip change data of the day, and the chip change curve is generated.

S105、根据启动计数值确定计数更新条件,当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件时,对启动计数值进行更新。S105: Determine the count update condition according to the start count value, and update the start count value when it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition.

在本实施例中,计数更新条件具体可以理解为判断启动计数值是否需要进行更新的条件,计数更新条件与启动计数值的大小相关,不同的启动计数值对应的计数更新条件可能不同。In this embodiment, the count update condition can be specifically understood as a condition for judging whether the start count value needs to be updated, the count update condition is related to the size of the start count value, and the count update conditions corresponding to different start count values may be different.

具体的,预先设置不同的计数更新条件,在确定启动计数值后,确定与其对应关联的计数更新条件。在根据计数更新条件后,判断当日筹码变更数据及历史筹码变更数据是否满足计数更新条件,若满足,则对启动计数值进行更新,更新可以是对启动计数值进行加1、加2等操作。对于更新后的启动计数值,在下一天可以继续获得新的当日筹码变更数据,由于启动值是未改变的,因此启动值依然满足启动条件,重复执行判断启动计数值是否满足变更条件的操作,直到启动计数值满足变更条件,确定变更点。当不满足计数更新条件时,启动计数值保持不变,在下一天可以继续获得新的当日筹码变更数据,由于启动值是未改变的,因此启动值依然满足启动条件,重复执行判断启动计数值是否满足变更条件的操作,此时的启动计数值由于未发生改变,依然不满足变更条件,继续确定计数更新条件并判断新的当日筹码变更数据和历史筹码变更数据是否满足计数更新条件。Specifically, different count update conditions are preset, and after the start count value is determined, the count update condition corresponding to it is determined. After the counting update condition is used, it is judged whether the current chip change data and the historical chip change data satisfy the count update condition. If so, the start count value is updated, and the update can be an operation such as adding 1 or 2 to the start count value. For the updated start count value, you can continue to obtain the new day's chip change data on the next day. Since the start value has not changed, the start value still satisfies the start condition, and the operation of judging whether the start count value meets the change condition is repeated until When the start count value satisfies the change condition, the change point is determined. When the count update condition is not met, the start count value remains unchanged, and new day chip change data can be obtained in the next day. Since the start value has not changed, the start value still satisfies the start condition. Repeat the execution to determine whether the start count value is not changed. For an operation that satisfies the change condition, since the start count value at this time has not changed, it still does not meet the change condition. Continue to determine the count update condition and judge whether the new current day chip change data and historical chip change data satisfy the count update condition.

本发明实施例提供了一种筹码变更曲线生成方法,解决了无法确定筹码变更点的问题,通过对当日筹码变更数据及历史筹码变更数据进行分析,确定满足预设统计条件时,生成启动值并获取启动计数值。在启动值满足启动条件时,启动变更点分析。在启动计数值满足变更条件时,确定变更点,实现对筹码变更的准确分析;并根据变更点和当日筹码变更数据生成筹码变更曲线,对变更点进行展示,便于查看。在启动计数值不满足变更条件时,确定计数更新条件,不同的启动计数值对应不同的计数更新条件,判断当日筹码变更数据及历史筹码变更数据是否满足计数更新条件,对启动计数值进行更新,直到启动计数值满足变更条件,实现变更点的确定。通过设置不同的条件,结合当日筹码变更数据及历史筹码变更数据确定变更点,准确确定变更点的信息,提高变更点确定的准确率。The embodiment of the present invention provides a method for generating a chip change curve, which solves the problem that the chip change point cannot be determined. By analyzing the chip change data of the current day and the historical chip change data, it is determined that a preset statistical condition is met, and a startup value is generated and Get the start count value. When the start value meets the start condition, the change point analysis is started. When the startup count value meets the change conditions, the change point is determined to realize accurate analysis of the chip change; and the chip change curve is generated according to the change point and the chip change data of the day, and the change point is displayed for easy viewing. When the start count value does not meet the change condition, determine the count update condition, different start count values correspond to different count update conditions, judge whether the current chip change data and historical chip change data meet the count update condition, and update the start count value, Until the start count value satisfies the change condition, the determination of the change point is realized. By setting different conditions, the change point is determined in combination with the chip change data of the day and the historical chip change data, the information of the change point is accurately determined, and the accuracy of the change point determination is improved.

实施例二Embodiment 2

图2为本发明实施例二提供的一种筹码变更曲线生成方法的流程图,本实施例在上述实施例的基础上进行细化。如图2所示,该方法包括:FIG. 2 is a flowchart of a method for generating a chip change curve according to Embodiment 2 of the present invention. This embodiment is refined on the basis of the foregoing embodiment. As shown in Figure 2, the method includes:

S201、获取待变更股票的当日筹码变更数据及历史筹码变更数据。S201. Acquire the current-day chip change data and historical chip change data of the stock to be changed.

可选的,预设统计条件为第一统计条件或第二统计条件。Optionally, the preset statistical condition is the first statistical condition or the second statistical condition.

第一统计条件和第二统计条件对应不同的类型的变更点,S202-S203与S204-S205为并列方案,在实际应用中选择其中一个分支执行。The first statistical condition and the second statistical condition correspond to different types of change points. S202-S203 and S204-S205 are parallel schemes, and one of the branches is selected for execution in practical applications.

S202、如果当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值小于第一差值阈值,对第一计数值进行递加。S202. If the difference between the closing price of the current day in the chip change data of the current day and the previous closing price of the chip change data of the previous day is less than a first difference threshold, increment the first count value.

在本实施例中,当日收盘价具体可以理解为待变更股票在当天的收盘价格。上一日筹码变更数据具体可以理解为上一天的筹码变更数据。历史筹码变更数据中包括上一日筹码变更数据;上一收盘价具体可以理解为待变更股票在上一天的收盘价。第一差值阈值可以根据需求设置,例如,0、1、2等。第一计数值具体可以理解为用于计数的数值。In this embodiment, the closing price of the current day can be specifically understood as the closing price of the stock to be changed on the current day. The chip change data of the previous day can be specifically understood as the chip change data of the previous day. The historical chip change data includes the chip change data of the previous day; the last closing price can be specifically understood as the closing price of the stock to be changed on the previous day. The first difference threshold can be set according to requirements, for example, 0, 1, 2, and so on. The first count value can be specifically understood as a numerical value used for counting.

具体的,根据当日筹码变更数据确定当日收盘价,从历史筹码变更数据中获取上一日筹码变更数据,根据上一日筹码变更数据确定上一收盘价。计算当日收盘价与上一收盘价的差值,如果差值小于第一差值阈值,对第一计数值进行递加。递加可以是加1、加2等。如果当日收盘价与上一收盘价的差值不小于第一差值阈值,对第一计数值进行清零。Specifically, the closing price of the current day is determined according to the chip change data of the current day, the chip change data of the previous day is obtained from the historical chip change data, and the previous closing price is determined according to the chip change data of the previous day. Calculate the difference between the closing price of the current day and the previous closing price. If the difference is less than the first difference threshold, increment the first count value. Increment can be adding 1, adding 2, etc. If the difference between the closing price of the current day and the previous closing price is not less than the first difference threshold, the first count value is cleared.

S203、当第一计数值满足第一计数条件时,确定当日筹码变更数据满足第一统计条件。S203. When the first count value satisfies the first count condition, determine that the chip change data of the current day satisfies the first statistical condition.

在本实施例中,第一计数条件可以是第一计数值大于n1,n1可以是1、2、3…等。当第一计数值满足第一计数条件时,此时当日收盘价与上一收盘价的差值连续n1次小于第一差值阈值,确定当日筹码变更数据满足第一统计条件。当第一计数值不满足第一计数条件时,等待下一日的筹码变更数据,继续判断当日收盘价与上一收盘价的差值是否小于第一差值阈值。In this embodiment, the first count condition may be that the first count value is greater than n1, and n1 may be 1, 2, 3, . . . and so on. When the first count value satisfies the first count condition, and the difference between the closing price of the current day and the previous closing price is smaller than the first difference threshold for n1 consecutive times, it is determined that the chip change data of the current day meets the first statistical condition. When the first count value does not meet the first count condition, wait for the chip change data of the next day, and continue to judge whether the difference between the closing price of the current day and the last closing price is less than the first difference threshold.

示例性的,以第一差值阈值为0,第一计数条件为3为例,说明满足第一统计条件的情况。如果当日收盘价小于上一收盘价,对第一计数值进行加1,当第一计数值大于3时,当日筹码变更数据满足第一统计条件,即连续4天当日收盘价小于上一收盘价时,满足第一统计条件。Exemplarily, taking the first difference threshold as 0 and the first count condition as 3 as an example, the case where the first statistical condition is satisfied is described. If the closing price of the current day is less than the previous closing price, add 1 to the first count value. When the first count value is greater than 3, the chip change data of the current day meets the first statistical condition, that is, the closing price of the current day is less than the previous closing price for 4 consecutive days , the first statistical condition is satisfied.

S204、如果当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值大于第二差值阈值,对第二计数值进行递加。S204. If the difference between the closing price of the current day in the chip change data of the current day and the previous closing price of the chip change data of the previous day is greater than the second difference threshold, increment the second count value.

在本实施例中,第二差值阈值可以根据需求设置,例如,0、1、2等。第二差值阈值与第一差值阈值的大小可以相同,也可以不同。第二计数值具体可以理解为用于计数的数值。In this embodiment, the second difference threshold can be set according to requirements, for example, 0, 1, 2, and so on. The size of the second difference threshold and the first difference threshold may be the same or different. Specifically, the second count value can be understood as a numerical value used for counting.

具体的,计算当日收盘价与上一收盘价的差值,如果差值大于第二差值阈值,对第二计数值进行递加。递加可以是加1、加2等。如果当日收盘价与上一收盘价的差值不大于第二差值阈值,对第二计数值进行清零。Specifically, the difference between the closing price of the current day and the previous closing price is calculated, and if the difference is greater than the second difference threshold, the second count value is incremented. Increment can be adding 1, adding 2, etc. If the difference between the closing price of the current day and the closing price of the previous day is not greater than the second difference threshold, the second count value is cleared to zero.

S205、当第二计数值满足第二计数条件时,确定当日筹码变更数据满足第二统计条件。S205. When the second count value satisfies the second count condition, determine that the chip change data of the current day satisfies the second statistic condition.

在本实施例中,第二计数条件可以是第二计数值大于n2,n2可以是1、2、3…等。当第二计数值满足第二计数条件时,此时当日收盘价与上一收盘价的差值连续n2次大于第二差值阈值,确定当日筹码变更数据满足第二统计条件。当第二计数值不满足第二计数条件时,等待下一日的筹码变更数据,继续判断当日收盘价与上一收盘价的差值是否大于第二差值阈值。In this embodiment, the second count condition may be that the second count value is greater than n2, and n2 may be 1, 2, 3, . . . and so on. When the second count value satisfies the second count condition, the difference between the closing price of the current day and the previous closing price is greater than the second difference threshold for n2 consecutive times, and it is determined that the chip change data of the current day meets the second statistical condition. When the second count value does not meet the second count condition, wait for the chip change data of the next day, and continue to judge whether the difference between the closing price of the current day and the last closing price is greater than the second difference threshold.

示例性的,以第一差值阈值为0,第一计数条件为3为例,如果当日收盘价大于上一收盘价,对第二计数值进行加1,当第二计数值大于3时,当日筹码变更数据满足第二统计条件,即连续4天当日收盘价大于上一收盘价时,满足第二统计条件。Exemplarily, taking the first difference threshold as 0 and the first count condition as 3 as an example, if the closing price of the current day is greater than the previous closing price, add 1 to the second count value, and when the second count value is greater than 3, The chip change data of the current day satisfies the second statistical condition, that is, when the closing price of the current day is greater than the previous closing price for 4 consecutive days, the second statistical condition is satisfied.

S206、生成启动值并获取启动计数值。S206. Generate a startup value and obtain a startup count value.

S207、当启动值满足启动条件时,判断启动计数值是否满足变更条件,若是,执行S208;否则,执行S215。S207 , when the activation value satisfies the activation condition, determine whether the activation count value satisfies the change condition, and if so, execute S208 ; otherwise, execute S215 .

S208、确定预设统计条件为第一统计条件或者为第二统计条件,当预设统计条件为第一统计条件时,执行S209,当预设统计条件为第二统计条件时,执行S212。S208. Determine that the preset statistical condition is the first statistical condition or the second statistical condition. When the preset statistical condition is the first statistical condition, execute S209, and when the preset statistical condition is the second statistical condition, execute S212.

判断预设统计条件为第一统计条件还是第二统计条件,当预设统计条件为第一统计条件时执行S209,当预设统计条件为第二统计条件时,执行S212。It is determined whether the preset statistical condition is the first statistical condition or the second statistical condition. When the preset statistical condition is the first statistical condition, S209 is executed, and when the preset statistical condition is the second statistical condition, S212 is executed.

当预设统计条件为第一统计条件时,变更点为第一变更点。When the preset statistical condition is the first statistical condition, the change point is the first change point.

S209、将当日时间确定为第一变更点的横坐标。S209. Determine the time of the day as the abscissa of the first change point.

在本实施例中,第一变更点具体可以理解为获取待变更股票的筹码的归属权的变更点。相应的,在对第一计数值进行递加时,当日收盘价需小于上一收盘价,第一差值阈值可根据需求设置,保证当日收盘价小于上一收盘价即可。将当日时间作为第一变更点的横坐标,确定第一变更点的出现时间。In this embodiment, the first change point can be specifically understood as a change point for acquiring the ownership right of the chips of the stock to be changed. Correspondingly, when incrementing the first count value, the closing price of the current day needs to be less than the previous closing price, and the first difference threshold can be set according to the demand, so as to ensure that the closing price of the current day is less than the previous closing price. Taking the time of the day as the abscissa of the first change point, the appearance time of the first change point is determined.

S210、根据当日筹码变更数据确定最低价,将最低价确定为第一变更点的纵坐标。S210. Determine the lowest price according to the chip change data of the current day, and determine the lowest price as the ordinate of the first change point.

通过对当日筹码变更数据进行分析,确定最低价,将最低价作为第一变更点的纵坐标。By analyzing the chip change data of the day, the lowest price is determined, and the lowest price is taken as the ordinate of the first change point.

S211、根据第一变更点的横坐标和纵坐标生成筹码变更曲线。S211. Generate a chip change curve according to the abscissa and ordinate of the first change point.

根据第一变更点的横坐标和纵坐标生成筹码变更曲线可以是在K线基础上标示出第一变更点,形成筹码变更曲线,即将第一变更点绘制在K线图上。也可以额外绘制筹码变更曲线,将所有变更点绘制在一个图中,例如,在第一次确定出变更点后,将根据其坐标绘制出第一变更点,当变更点的数量大于或等于两个时,即可通过连线的方式生成筹码变更曲线,在之后再次确定变更点时,在上一日的筹码变更曲线上标示出变更点,以便将所有变更点通过同一个筹码变更曲线进行表示,方便对数据进行汇总查看。Generating the chip change curve according to the abscissa and ordinate of the first change point may be to mark the first change point on the basis of the K-line to form the chip change curve, that is, to draw the first change point on the K-line chart. You can also draw the chip change curve additionally, and draw all the change points in one graph. For example, after the change point is determined for the first time, the first change point will be drawn according to its coordinates. When the number of change points is greater than or equal to two. When the number of chips is changed, the chip change curve can be generated by connecting lines. When the change point is determined again later, the change point will be marked on the chip change curve of the previous day, so that all the change points can be represented by the same chip change curve. , which is convenient for summarizing and viewing the data.

示例性的,本申请给出一种第一变更点的绘制方法。运用Android SDK中BitmapFactory工厂类的decodeResource()函数构造Bitmap对象,在Android系统中,Bitmap代表一张位图,是图像处理最重要的中转类之一。当确定第一变更点后,在主图K线上方绘制第一变更点的位图标记,表明为第一变更点。在获取到对应交易日K线的最低价在K线图标中的坐标后,作为第一变更点的纵坐标,通过Android SDK提供的Rect绘制工具类确定位图在屏幕的左、上、右、下的坐标,运用Canvas的drawBitmap()函数绘制出标明为第一变更点的小图标。Exemplarily, the present application provides a method for drawing the first change point. Use the decodeResource() function of the BitmapFactory factory class in the Android SDK to construct a Bitmap object. In the Android system, Bitmap represents a bitmap and is one of the most important transfer classes for image processing. After the first change point is determined, a bitmap mark of the first change point is drawn above the K line of the main image, indicating that it is the first change point. After obtaining the coordinates of the lowest price of the K-line on the corresponding trading day in the K-line icon, as the ordinate of the first change point, the Rect drawing tool class provided by the Android SDK is used to determine the position of the bitmap on the left, top, right, Use the drawBitmap() function of Canvas to draw a small icon marked as the first change point.

当预设统计条件为第二统计条件时,变更点为第二变更点。When the preset statistical condition is the second statistical condition, the change point is the second change point.

S212、将当日时间确定为第二变更点的横坐标。S212. Determine the time of the day as the abscissa of the second change point.

在本实施例中,第二变更点具体可以理解为失去待变更股票的筹码的归属权的变更点。相应的,在对第二计数值进行递加时,当日收盘价需大于上一收盘价,第二差值阈值同样可以根据需求设置,保证当日收盘价大于上一收盘价即可。将当日时间作为第二变更点的横坐标,确定第二变更点的出现时间。In this embodiment, the second change point can be specifically understood as a change point of losing the ownership right of the chips of the stock to be changed. Correspondingly, when incrementing the second count value, the closing price of the current day needs to be greater than the previous closing price, and the second difference threshold can also be set according to the requirements to ensure that the closing price of the current day is greater than the previous closing price. Taking the time of the day as the abscissa of the second change point, the appearance time of the second change point is determined.

S213、根据当日筹码变更数据确定最高价,将最高价确定为第二变更点的纵坐标。S213. Determine the highest price according to the chip change data of the current day, and determine the highest price as the ordinate of the second change point.

通过对当日筹码变更数据进行分析,确定最高价,将最高价作为第二变更点的纵坐标。By analyzing the chip change data of the day, the highest price is determined, and the highest price is taken as the ordinate of the second change point.

S214、如果当日时间之前存在第一变更点,根据第二变更点的横坐标和纵坐标生成筹码变更曲线。S214. If the first change point exists before the time of the day, generate a chip change curve according to the abscissa and the ordinate of the second change point.

如果在第二变更点出现之前,已经存在第一变更点,则根据第二变更点的坐标生成筹码变更曲线。第二变更点的绘制方式与第一变更点的绘制方式相同,在此不再进行赘述。If the first change point already exists before the second change point occurs, a chip change curve is generated according to the coordinates of the second change point. The drawing method of the second change point is the same as the drawing method of the first change point, and details are not described herein again.

作为本实施例的一个可选实施例,本可选实施例进一步优化包括在所确定变更点之后,还包括:对启动值和启动计数值进行清零。As an optional embodiment of this embodiment, further optimization in this optional embodiment includes, after the determined change point, further comprising: clearing the start value and the start count value.

当确定变更点后,对启动值和启动计数值进行清零,结束此次循环,以便重新根据新的当日筹码变更数据及历史筹码变更数据判断是否满足预设统计条件。After the change point is determined, the start value and the start count value are reset to zero, and this cycle is ended, so as to judge whether the preset statistical conditions are met again according to the new day's chip change data and historical chip change data.

S215、确定预设统计条件为第一统计条件或者未第二统计条件,当预设统计条件为第一统计条件时,执行S216,当预设统计条件为第二统计条件时,执行S219。S215. Determine that the preset statistical condition is the first statistical condition or the second statistical condition. When the preset statistical condition is the first statistical condition, execute S216, and when the preset statistical condition is the second statistical condition, execute S219.

判断预设统计条件为第一统计条件还是第二统计条件,当预设统计条件为第一统计条件时,执行S216,当预设统计条件为第二统计条件时,执行S219。It is determined whether the preset statistical condition is the first statistical condition or the second statistical condition. When the preset statistical condition is the first statistical condition, S216 is executed, and when the preset statistical condition is the second statistical condition, S219 is executed.

S216、判断启动计数值是否等于0,若是,执行S217;否则,执行S218。S216, determine whether the startup count value is equal to 0, if so, execute S217; otherwise, execute S218.

S217、确定计数更新条件为当日收盘价大于或等于上两日最高价且当日最高价大于上一日最高价。S217. Determine the count update condition that the closing price of the current day is greater than or equal to the highest price of the previous two days and the highest price of the current day is greater than the highest price of the previous day.

在本实施例中,上两日最高价具体可以理解为当日之前两日的最高价;上一日最高价具体可以理解为当日的前一日的最高价。例如,当日为2022年1月17号,上两日最高价即为2022年1月15号的待变更股票的最高价;上一日最高价即为2022年1月16号的待变更股票的最高价。In this embodiment, the highest price of the last two days can be specifically understood as the highest price of the two days before the current day; the highest price of the previous day can be specifically understood as the highest price of the previous day of the current day. For example, if the current day is January 17, 2022, the highest price of the previous two days is the highest price of the stock to be changed on January 15, 2022; the highest price of the previous day is the highest price of the stock to be changed on January 16, 2022 highest price.

计数更新条件可以表示为:close[0]>=high[2]and high[0]>high[1];其中,close[0]为当日收盘价;high[2]为上两日最高价;high[0]为当日最高价;high[1]为上一日最高价。The count update condition can be expressed as: close[0]>=high[2] and high[0]>high[1]; among them, close[0] is the closing price of the current day; high[2] is the highest price of the previous two days; high[0] is the highest price of the day; high[1] is the highest price of the previous day.

S218、确定计数更新条件为当前收盘价大于或等于上两日最高价、当日最高价大于上一日最高价且当日收盘价大于第一目标价。S218. Determine the count update condition that the current closing price is greater than or equal to the highest price of the previous two days, the highest price of the current day is greater than the highest price of the previous day, and the closing price of the current day is greater than the first target price.

在本实施例中,第一目标价同样为一种价格,第一目标价与收盘价以及是否满足计数更新条件相关,与当日筹码变更数据无直接联系。第一目标价预先确定,并随着是否满足计数更新条件以及收盘价进行实时更新。In this embodiment, the first target price is also a price, and the first target price is related to the closing price and whether the count update condition is satisfied, and is not directly related to the chip change data of the current day. The first target price is predetermined, and is updated in real time as the count update conditions are met and the closing price.

计数更新条件可以表示为:close[0]>=high[2]and high[0]>high[1]and close[0]>close[time1];其中,close[time1]为第一目标价。The count update condition can be expressed as: close[0]>=high[2] and high[0]>high[1] and close[0]>close[time1]; wherein, close[time1] is the first target price.

S219、判断启动计数值是否等于0,若是,执行S220;否则,执行S221。S219, determine whether the start count value is equal to 0, if so, execute S220; otherwise, execute S221.

S220、确定计数更新条件为当日收盘价小于或等于上两日最低价且当日最低价小于上一日最低价。S220. Determine the count update condition that the closing price of the current day is less than or equal to the lowest price of the previous two days and the lowest price of the current day is less than the lowest price of the previous day.

在本实施例中,上两日最低价具体可以理解为当日之前两日的最低价;上一日最低价具体可以理解为当日的前一日的最低价。例如,当日为2022年1月17号,上两日最低价即为2022年1月15号的待变更股票的最低价;上一日最低价即为2022年1月16号的待变更股票的最低价。In this embodiment, the lowest price of the last two days can be specifically understood as the lowest price of the two days before the current day; the lowest price of the previous day can be specifically understood as the lowest price of the previous day of the current day. For example, if the current day is January 17, 2022, the lowest price of the previous two days is the lowest price of the stock to be changed on January 15, 2022; the lowest price of the previous day is the lowest price of the stock to be changed on January 16, 2022 lowest price.

计数更新条件可以表示为:close[0]<=low[2]and low[0]<low[1];其中,low[2]为上两日最低价;low[0]为当日最低价;low[1]为上一日最低价。The count update condition can be expressed as: close[0]<=low[2] and low[0]<low[1]; where low[2] is the lowest price of the last two days; low[0] is the lowest price of the current day; low[1] is the lowest price of the previous day.

S221、确定计数更新条件为当日收盘价小于或等于上两日最低价、当日最低价小于上一日最低价且当日收盘价小于第二目标价。S221. Determine the count update condition that the closing price of the current day is less than or equal to the lowest price of the previous two days, the lowest price of the current day is less than the lowest price of the previous day, and the closing price of the current day is less than the second target price.

在本实施例中,第二目标价同样为一种价格,第二目标价同样与收盘价以及是否满足计数更新条件相关,与当日筹码变更数据无直接联系。第二目标价预先确定,并随着是否满足计数更新条件以及收盘价进行实时更新。根据连续三天的数据确定是否计数更新条件,结果更加准确。In this embodiment, the second target price is also a price, and the second target price is also related to the closing price and whether the count update condition is satisfied, and is not directly related to the chip change data of the day. The second target price is predetermined and updated in real time as the count update condition is met and the closing price. According to the data of three consecutive days to determine whether to count the update condition, the result is more accurate.

计数更新条件可以表示为:close[0]<=low[2]and low[0]<low[1]and close[0]<close[time2];其中,close[time2]为第二目标价。The count update condition can be expressed as: close[0]<=low[2] and low[0]<low[1] and close[0]<close[time2]; wherein, close[time2] is the second target price.

S222、当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件时,对启动计数值进行更新。S222 , when it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition, update the start count value.

本申请实施例中,当日筹码变更数据只能满足第一统计条件或第二统计条件,即如果满足变更条件生成的变更点只能是第一变更点和第二变更点中的一种。因此,在确定计数更新条件后,根据计数更新条件从当日筹码变更数据和历史筹码变更数据筛选出相应类型的数据,判断数据是否满足计数更新条件,在满足条件时,对启动计数值进行更新。In the embodiment of the present application, the chip change data of the current day can only satisfy the first statistical condition or the second statistical condition, that is, the change point generated if the change condition is satisfied can only be one of the first change point and the second change point. Therefore, after determining the count update condition, filter out the corresponding type of data from the current chip change data and historical chip change data according to the count update condition, determine whether the data satisfies the count update condition, and update the start count value when the condition is met.

作为本实施例的一个可选实施例,本可选实施例进一步优化包括了当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件之后,还包括:根据当日收盘价对第一目标价或第二目标价进行更新。As an optional embodiment of this embodiment, this optional embodiment further optimizes the following steps: after determining that the chip change data of the current day and the historical chip change data satisfy the count update condition, it further includes: adjusting the first target price or the first target price or The second target price is updated.

如果当日筹码变更数据及历史筹码变更数据满足计数更新条件,此时将当日收盘价作为新的第一目标价或第二目标价,实现对第一目标价或第二目标价的更新。关于第一目标价和第二目标价的更新,当预设统计条件为第一统计条件时,对第一目标价进行更新;当当预设统计条件为第二统计条件时,对第二目标价进行更新。If the chip change data of the current day and the historical chip change data satisfy the count update condition, then the closing price of the current day is used as the new first target price or second target price to realize the update of the first target price or the second target price. Regarding the update of the first target price and the second target price, when the preset statistical condition is the first statistical condition, the first target price is updated; when the preset statistical condition is the second statistical condition, the second target price is updated. to update.

示例性的,图3提供了一种确定第一变更点的实现示例图,图3中以预设统计条件为第一统计条件为例。Exemplarily, FIG. 3 provides an example diagram of an implementation of determining the first change point, and FIG. 3 takes the preset statistical condition as the first statistical condition as an example.

S301、获取待变更股票的当日筹码变更数据及历史筹码变更数据。S301. Acquire the current-day chip change data and historical chip change data of the stock to be changed.

S302、如果当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值小于第一差值阈值,对第一计数值进行递加。S302. If the difference between the closing price of the current day in the chip change data of the current day and the previous closing price of the chip change data of the previous day is less than a first difference threshold, increment the first count value.

S303、当第一计数值满足第一计数条件时,确定当日筹码变更数据满足第一统计条件。S303. When the first count value satisfies the first count condition, determine that the chip change data of the current day satisfies the first statistical condition.

S304、生成启动值并获取启动计数值。S304. Generate a startup value and obtain a startup count value.

S305、当启动值满足启动条件时,判断启动计数值是否满足变更条件,若是,执行S306;否则,执行S309。S305 , when the activation value satisfies the activation condition, determine whether the activation count value satisfies the change condition, and if so, execute S306 ; otherwise, execute S309 .

S306、将当日时间确定为第一变更点的横坐标。S306. Determine the time of the day as the abscissa of the first change point.

S307、根据当日筹码变更数据确定最低价,将最低价确定为第一变更点的纵坐标。S307: Determine the lowest price according to the chip change data of the current day, and determine the lowest price as the ordinate of the first change point.

S308、根据第一变更点的横坐标和纵坐标生成筹码变更曲线。S308. Generate a chip change curve according to the abscissa and ordinate of the first change point.

S309、判断启动计数值是否等于0,若是,执行S310;否则,执行S311。S309: Determine whether the startup count value is equal to 0, if so, execute S310; otherwise, execute S311.

S310、确定计数更新条件为当日收盘价大于或等于上两日最高价且当日最高价大于上一日最高价。S310. Determine the count update condition that the closing price of the current day is greater than or equal to the highest price of the previous two days and the highest price of the current day is greater than the highest price of the previous day.

S311、确定计数更新条件为当前收盘价大于或等于上两日最高价、当日最高价大于上一日最高价且当日收盘价大于第一目标价。S311. Determine the count update condition that the current closing price is greater than or equal to the highest price of the previous two days, the highest price of the current day is greater than the highest price of the previous day, and the closing price of the current day is greater than the first target price.

S312、当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件时,对启动计数值进行更新。S312 , when it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition, update the start count value.

示例性的,图4提供了一种确定第二变更点的实现示例图,图4中以预设统计条件为第二统计条件为例。Exemplarily, FIG. 4 provides an example diagram of an implementation of determining the second change point, and FIG. 4 takes the preset statistical condition as the second statistical condition as an example.

S401、获取待变更股票的当日筹码变更数据及历史筹码变更数据。S401 , acquiring the current-day chip change data and historical chip change data of the stock to be changed.

S402、如果当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值大于第二差值阈值,对第二计数值进行递加。S402. If the difference between the closing price of the current day in the chip change data of the current day and the previous closing price of the chip change data of the previous day is greater than a second difference threshold, increment the second count value.

S403、当第二计数值满足第二计数条件时,确定当日筹码变更数据满足第二统计条件。S403. When the second count value satisfies the second count condition, determine that the chip change data of the current day satisfies the second statistic condition.

S404、生成启动值并获取启动计数值。S404. Generate a startup value and obtain a startup count value.

S405、当启动值满足启动条件时,判断启动计数值是否满足变更条件,若是,执行S406;否则,执行S409。S405 , when the activation value satisfies the activation condition, determine whether the activation count value satisfies the change condition, and if so, execute S406 ; otherwise, execute S409 .

S406、将当日时间确定为第二变更点的横坐标。S406. Determine the time of the day as the abscissa of the second change point.

S407、根据所述当日筹码变更数据确定最高价,将所述最高价确定为第二变更点的纵坐标。S407. Determine the highest price according to the chip change data of the current day, and determine the highest price as the ordinate of the second change point.

S408、如果当日时间之前存在第一变更点,根据第二变更点的横坐标和纵坐标生成筹码变更曲线。S408. If there is a first change point before the time of the day, generate a chip change curve according to the abscissa and ordinate of the second change point.

S409、判断启动计数值是否等于0,若是,执行S410;否则,执行S411。S409, determine whether the start count value is equal to 0, if so, execute S410; otherwise, execute S411.

S410、确定计数更新条件为当日收盘价小于或等于上两日最低价且当日最低价小于上一日最低价。S410. Determine that the count update condition is that the closing price of the current day is less than or equal to the lowest price of the previous two days and the lowest price of the current day is less than the lowest price of the previous day.

S411、确定计数更新条件为当日收盘价小于或等于上两日最低价、当日最低价小于上一日最低价且当日收盘价小于第二目标价。S411. Determine the count update condition that the closing price of the current day is less than or equal to the lowest price of the previous two days, the lowest price of the current day is less than the lowest price of the previous day, and the closing price of the current day is less than the second target price.

S412、当确定当日筹码变更数据及历史筹码变更数据满足计数更新条件时,对启动计数值进行更新。S412 , when it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition, update the start count value.

本发明实施例提供了一种筹码变更曲线生成方法,解决了无法确定筹码变更点的问题,通过对当日筹码变更数据及历史筹码变更数据进行分析,确定满足预设统计条件时,生成启动值并获取启动计数值。在启动值满足启动条件时,启动变更点分析。在启动计数值满足变更条件时,确定变更点,实现对筹码变更的准确分析;并根据变更点和当日筹码变更数据生成筹码变更曲线,对变更点进行展示,便于查看。在启动计数值不满足变更条件时,确定计数更新条件,不同的启动计数值对应不同的计数更新条件,判断当日筹码变更数据及历史筹码变更数据是否满足计数更新条件,对启动计数值进行更新,直到启动计数值满足变更条件,实现变更点的确定。通过设置不同的条件,结合当日筹码变更数据及历史筹码变更数据确定变更点,准确确定变更点的信息,提高变更点确定的准确率。根据第一变更点和第二变更点生成筹码变更曲线,用户可以根据筹码变更曲线预测筹码变更时间,把握股价启动的筹码信号。The embodiment of the present invention provides a method for generating a chip change curve, which solves the problem that the chip change point cannot be determined. By analyzing the chip change data of the current day and the historical chip change data, it is determined that a preset statistical condition is met, and a startup value is generated and Get the start count value. When the start value meets the start condition, the change point analysis is started. When the startup count value meets the change conditions, the change point is determined to realize accurate analysis of the chip change; and the chip change curve is generated according to the change point and the chip change data of the day, and the change point is displayed for easy viewing. When the start count value does not meet the change condition, determine the count update condition, different start count values correspond to different count update conditions, judge whether the current chip change data and historical chip change data meet the count update condition, and update the start count value, Until the start count value satisfies the change condition, the determination of the change point is realized. By setting different conditions and combining the current chip change data and historical chip change data to determine the change point, accurately determine the information of the change point, and improve the accuracy of the change point determination. The chip change curve is generated according to the first change point and the second change point, and the user can predict the chip change time according to the chip change curve, and grasp the chip signal that the stock price starts.

实施例三Embodiment 3

图5为本发明实施例三提供的一种筹码变更曲线生成装置的结构示意图。如图5所示,该装置包括:数据获取模块51、计数值获取模块52和变更判断模块53。FIG. 5 is a schematic structural diagram of an apparatus for generating a chip change curve according to Embodiment 3 of the present invention. As shown in FIG. 5 , the device includes: a data acquisition module 51 , a count value acquisition module 52 and a change judgment module 53 .

数据获取模块51,用于获取待变更股票的当日筹码变更数据及历史筹码变更数据;The data acquisition module 51 is used to acquire the current-day chip change data and historical chip change data of the stock to be changed;

计数值获取模块52,用于当根据所述历史筹码变更数据确定所述当日筹码变更数据满足预设统计条件时,生成启动值并获取启动计数值;a count value acquisition module 52, configured to generate a start value and obtain a start count value when it is determined according to the historical chip change data that the current day's chip change data satisfies a preset statistical condition;

变更判断模块53,用于当所述启动值满足启动条件时,判断所述启动计数值是否满足变更条件,若是,则确定变更点,并根据所述变更点和当日筹码变更数据生成筹码变更曲线;否则,根据所述启动计数值确定计算更新条件,当确定所述当日筹码变更数据及历史筹码变更数据满足所述计数更新条件时,对所述启动计数值进行更新。The change judgment module 53 is used to judge whether the start count value satisfies the change condition when the start value satisfies the start condition, and if so, determine the change point, and generate a chip change curve according to the change point and the chip change data of the day Otherwise, determine the calculation update condition according to the start count value, and update the start count value when it is determined that the current chip change data and the historical chip change data satisfy the count update condition.

本发明实施例提供了一种筹码变更曲线生成装置,解决了无法确定筹码变更点的问题,通过对当日筹码变更数据及历史筹码变更数据进行分析,确定满足预设统计条件时,生成启动值并获取启动计数值。在启动值满足启动条件时,启动变更点分析。在启动计数值满足变更条件时,确定变更点,实现对筹码变更的准确分析;并根据变更点和当日筹码变更数据生成筹码变更曲线,对变更点进行展示,便于查看。在启动计数值不满足变更条件时,确定计数更新条件,不同的启动计数值对应不同的计数更新条件,判断当日筹码变更数据及历史筹码变更数据是否满足计数更新条件,对启动计数值进行更新,直到启动计数值满足变更条件,实现变更点的确定。通过设置不同的条件,结合当日筹码变更数据及历史筹码变更数据确定变更点,准确确定变更点的信息,提高变更点确定的准确率。The embodiment of the present invention provides a chip change curve generating device, which solves the problem that the chip change point cannot be determined. By analyzing the chip change data of the current day and the historical chip change data, it is determined that a preset statistical condition is satisfied, and a start value is generated and Get the start count value. When the start value meets the start condition, the change point analysis is started. When the startup count value meets the change conditions, the change point is determined to realize accurate analysis of the chip change; and the chip change curve is generated according to the change point and the chip change data of the day, and the change point is displayed for easy viewing. When the start count value does not meet the change condition, determine the count update condition, different start count values correspond to different count update conditions, judge whether the current chip change data and historical chip change data meet the count update condition, and update the start count value, Until the start count value satisfies the change condition, the determination of the change point is realized. By setting different conditions and combining the current chip change data and historical chip change data to determine the change point, accurately determine the information of the change point, and improve the accuracy of the change point determination.

可选的,所述预设统计条件为第一统计条件或第二统计条件;Optionally, the preset statistical condition is a first statistical condition or a second statistical condition;

计数值获取模块52,包括:The count value acquisition module 52 includes:

第一递加单元,用于如果所述当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值小于第一差值阈值,对第一计数值进行递加;The first incrementing unit is configured to increment the first count value if the difference between the closing price of the current day in the chip change data of the current day and the previous closing price of the chip change data of the previous day is less than the first difference threshold. add;

第一条件判断单元,用于当所述第一计数值满足第一计数条件时,确定所述当日筹码变更数据满足第一统计条件;a first condition judging unit, configured to determine that the current day's chip change data satisfies a first statistical condition when the first count value satisfies a first count condition;

第二递加单元,用于如果所述当日筹码变更数据中的当日收盘价与上一日筹码变更数据中的上一收盘价的差值大于第二差值阈值,对第二计数值进行递加;The second incrementing unit is configured to increment the second count value if the difference between the closing price of the current day in the chip change data of the current day and the last closing price of the chip change data of the previous day is greater than the second difference threshold add;

第二条件判断单元,用于当所述第二计数值满足第二计数条件时,确定所述当日筹码变更数据满足第二统计条件。A second condition judging unit, configured to determine that the chip change data of the current day satisfies the second statistical condition when the second count value satisfies the second count condition.

可选的,当所述预设统计条件为第一统计条件时,所述变更点为第一变更点;Optionally, when the preset statistical condition is the first statistical condition, the change point is the first change point;

变更判断模块53,包括:The change judgment module 53 includes:

第一横坐标确定模块,用于将当日时间确定为第一变更点的横坐标;The first abscissa determination module, for determining the time of the day as the abscissa of the first change point;

第一纵坐标确定模块,用于根据所述当日筹码变更数据确定最低价,将所述最低价确定为第一变更点的纵坐标;a first ordinate determining module, configured to determine the lowest price according to the chip change data of the day, and determine the lowest price as the ordinate of the first change point;

第一曲线生成模块,用于根据所述第一变更点的横坐标和纵坐标生成筹码变更曲线。A first curve generation module, configured to generate a chip change curve according to the abscissa and ordinate of the first change point.

可选的,当所述预设统计条件为第二统计条件时,所述变更点为第二变更点;Optionally, when the preset statistical condition is the second statistical condition, the change point is the second change point;

变更判断模块53,包括:The change judgment module 53 includes:

第二横坐标确定模块,用于将当日时间确定为第二变更点的横坐标;The second abscissa determination module is used to determine the time of the day as the abscissa of the second change point;

第二纵坐标确定模块,用于根据所述当日筹码变更数据确定最高价,将所述最高价确定为第二变更点的纵坐标;A second ordinate determining module, configured to determine the highest price according to the chip change data of the day, and determine the highest price as the ordinate of the second change point;

第二曲线生成模块,用于如果所述当日时间之前存在第一变更点,根据所述第二变更点的横坐标和纵坐标生成筹码变更曲线。The second curve generation module is configured to generate a chip change curve according to the abscissa and the ordinate of the second change point if there is a first change point before the time of the day.

可选的,该装置还包括:Optionally, the device further includes:

清零模块,用于在所确定变更点之后,对所述启动值和启动计数值进行清零。The clearing module is used for clearing the start value and the start count value after the determined change point.

可选的,当所述预设统计条件为第一统计条件时;Optionally, when the preset statistical condition is the first statistical condition;

变更判断模块53,包括:The change judgment module 53 includes:

第一条件确定模块,用于当所述启动计数值等于0时,确定计数更新条件为当日收盘价大于或等于上两日最高价且当日最高价大于上一日最高价;a first condition determination module, configured to determine that the count update condition is that the closing price of the current day is greater than or equal to the highest price of the previous two days and the highest price of the current day is greater than the highest price of the previous day when the start count value is equal to 0;

第一条件确定模块,用于当所述启动计数值不等于0时,确定计数更新条件为当前收盘价大于或等于上两日最高价、当日最高价大于上一日最高价且当日收盘价大于第一目标价。The first condition determination module is used to determine that when the start count value is not equal to 0, the count update condition is that the current closing price is greater than or equal to the highest price of the previous two days, the highest price of the current day is greater than the highest price of the previous day, and the closing price of the current day is greater than or equal to the highest price of the previous day. first target price.

可选的,当所述预设统计条件为第二统计条件时;Optionally, when the preset statistical condition is the second statistical condition;

变更判断模块53,包括:The change judgment module 53 includes:

第三条件确定模块,用于当所述启动计数值等于0时,确定计数更新条件为当日收盘价小于或等于上两日最低价且当日最低价小于上一日最低价;The third condition determination module is configured to, when the start count value is equal to 0, determine that the count update condition is that the closing price of the current day is less than or equal to the lowest price of the previous two days and the lowest price of the current day is less than the lowest price of the previous day;

第四条件确定模块,用于当所述启动计数值不等于0时,确定计数更新条件为当日收盘价小于或等于上两日最低价、当日最低价小于上一日最低价且当日收盘价小于第二目标价。The fourth condition determination module is used to determine that the count update condition is that the closing price of the current day is less than or equal to the lowest price of the previous two days, the lowest price of the current day is less than the lowest price of the previous day, and the closing price of the current day is less than the lowest price of the previous day when the start count value is not equal to 0 The second target price.

可选的,该装置还包括:Optionally, the device further includes:

清零模块,用于当确定所述当日筹码变更数据及历史筹码变更数据满足所述计数更新条件之后,根据当日收盘价对所述第一目标价或第二目标价进行更新。The zero-clearing module is configured to update the first target price or the second target price according to the closing price of the current day after it is determined that the chip change data of the current day and the historical chip change data satisfy the count update condition.

本发明实施例所提供的筹码变更曲线生成装置可执行本发明任意实施例所提供的筹码变更曲线生成方法,具备执行方法相应的功能模块和有益效果。The device for generating a chip change curve provided by the embodiment of the present invention can execute the method for generating a chip change curve provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

图6示出了可以用来实施本发明的实施例的电子设备60的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 6 shows a schematic structural diagram of an electronic device 60 that can be used to implement embodiments of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图6所示,电子设备60包括至少一个处理器61,以及与至少一个处理器61通信连接的存储器,如只读存储器(ROM)62、随机访问存储器(RAM)63等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器61可以根据存储在只读存储器(ROM)62中的计算机程序或者从存储单元68加载到随机访问存储器(RAM)63中的计算机程序,来执行各种适当的动作和处理。在RAM 63中,还可存储电子设备60操作所需的各种程序和数据。处理器61、ROM 62以及RAM 63通过总线64彼此相连。输入/输出(I/O)接口65也连接至总线64。As shown in FIG. 6, the electronic device 60 includes at least one processor 61, and a memory, such as a read only memory (ROM) 62, a random access memory (RAM) 63, etc., connected in communication with the at least one processor 61, wherein the memory stores There is a computer program executable by at least one processor, and the processor 61 can access the computer program according to a computer program stored in a read only memory (ROM) 62 or loaded from a storage unit 68 into a random access memory (RAM) 63. Various appropriate actions and processes are performed. In the RAM 63, various programs and data necessary for the operation of the electronic device 60 can also be stored. The processor 61 , the ROM 62 and the RAM 63 are connected to each other through a bus 64 . An input/output (I/O) interface 65 is also connected to bus 64 .

电子设备60中的多个部件连接至I/O接口65,包括:输入单元66,例如键盘、鼠标等;输出单元67,例如各种类型的显示器、扬声器等;存储单元68,例如磁盘、光盘等;以及通信单元69,例如网卡、调制解调器、无线通信收发机等。通信单元69允许电子设备60通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the electronic device 60 are connected to the I/O interface 65, including: an input unit 66, such as a keyboard, a mouse, etc.; an output unit 67, such as various types of displays, speakers, etc.; a storage unit 68, such as a magnetic disk, an optical disk etc.; and a communication unit 69, such as a network card, modem, wireless communication transceiver, and the like. The communication unit 69 allows the electronic device 60 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器61可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器61的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器61执行上文所描述的各个方法和处理,例如筹码变更曲线生成方法。The processor 61 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 61 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 61 performs the various methods and processes described above, such as the chip change curve generation method.

在一些实施例中,筹码变更曲线生成方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元68。在一些实施例中,计算机程序的部分或者全部可以经由ROM 62和/或通信单元69而被载入和/或安装到电子设备60上。当计算机程序加载到RAM 63并由处理器61执行时,可以执行上文描述的筹码变更曲线生成方法的一个或多个步骤。备选地,在其他实施例中,处理器61可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行筹码变更曲线生成方法。In some embodiments, the chip change curve generation method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 68 . In some embodiments, part or all of the computer program may be loaded and/or installed on electronic device 60 via ROM 62 and/or communication unit 69 . When a computer program is loaded into RAM 63 and executed by processor 61, one or more steps of the chip change curve generation method described above may be performed. Alternatively, in other embodiments, the processor 61 may be configured by any other suitable means (eg, by means of firmware) to perform the chip change curve generation method.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/operations specified in the flowcharts and/or block diagrams to be carried out. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with the instruction execution system, apparatus or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (eg, a CRT (cathode ray tube) or an LCD (liquid crystal display)) for displaying information to the user monitor); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS services, which are difficult to manage and weak in business scalability. defect.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions of the present invention can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (11)

1. A chip alteration curve generation method comprising:
obtaining the current chip change data and the historical chip change data of the stock to be changed;
when the chip change data of the current day meets the preset statistical conditions according to the historical chip change data, generating a starting value and acquiring a starting counting value;
when the starting value meets the starting condition, judging whether the starting counting value meets the change condition, if so, determining a change point, and generating a chip change curve according to the change point and the chip change data of the current day;
otherwise, determining a counting updating condition according to the starting counting value, and updating the starting counting value when the chip changing data of the current day and the historical chip changing data meet the counting updating condition.
2. The method of claim 1, wherein the predetermined statistical condition is a first statistical condition or a second statistical condition, and determining whether the current day chip change data satisfies the predetermined statistical condition according to the historical chip change data comprises:
if the difference value between the current closing price in the current day chip change data and the last closing price in the last day chip change data is smaller than a first difference threshold value, a first counting value is added;
when the first counting value meets a first counting condition, determining that the chip change data of the current day meets the first counting condition;
if the difference value between the current collecting price in the current day chip change data and the last collecting price in the last day chip change data is larger than a second difference threshold value, a second counting value is added;
and when the second counting value meets a second counting condition, determining that the chip change data of the current day meets a second statistical condition.
3. The method of claim 2, wherein when the predetermined statistical condition is a first statistical condition, the change point is a first change point, the determining a change point, and generating a chip change curve from the change point and the chip change data of the current day comprises:
determining the time of day as the abscissa of the first change point;
determining the lowest price according to the chip change data of the current day, and determining the lowest price as the ordinate of a first change point;
and generating a chip change curve according to the abscissa and the ordinate of the first change point.
4. The method of claim 2, wherein when the predetermined statistical condition is a second statistical condition, the change point is a second change point, the determining a change point, and generating a chip change curve from the change point and the chip change data of the day comprises:
determining the time of day as the abscissa of the second change point;
determining the highest price according to the chip change data of the current day, and determining the highest price as the ordinate of a second change point;
and if the first change point exists before the time of the day, generating a chip change curve according to the abscissa and the ordinate of the second change point.
5. The method of claim 1, after determining a change point, further comprising:
and clearing the starting value and the starting count value.
6. The method according to claim 2, wherein when the preset statistical condition is a first statistical condition, the determining a count update condition according to the start count value comprises:
when the starting count value is equal to 0, determining the counting updating condition that the closing price of the current day is greater than or equal to the highest price of the last two days and the highest price of the current day is greater than the highest price of the last day;
and when the starting count value is not equal to 0, determining the counting updating condition that the current closing price is greater than or equal to the highest price of the last two days, the highest price of the current day is greater than the highest price of the last day, and the closing price of the current day is greater than the first target price.
7. The method according to claim 2, wherein when the preset statistical condition is a second statistical condition, the determining a count update condition according to the start count value comprises:
when the starting count value is equal to 0, determining the counting updating condition that the closing price of the current day is less than or equal to the lowest price of the last two days and the lowest price of the current day is less than the lowest price of the last day;
and when the starting count value is not equal to 0, determining the counting updating condition that the closing price on the current day is less than or equal to the lowest price on the last two days, the lowest price on the current day is less than the lowest price on the last day, and the closing price on the current day is less than the second target price.
8. The method of claim 6 or 7, wherein after determining that the current day chip change data and historical chip change data satisfy the count update condition, further comprising:
and updating the first target price or the second target price according to the closing price on the current day.
9. A chip alteration curve generation device comprising:
the data acquisition module is used for acquiring the current-day chip change data and the historical chip change data of the stock to be changed;
a counting value obtaining module, configured to generate a starting value and obtain a starting counting value when it is determined that the chip change data of the current day meets a preset statistical condition according to the historical chip change data;
the change judging module is used for judging whether the starting counting value meets the change condition or not when the starting value meets the starting condition, if so, determining a change point and generating a chip change curve according to the change point and the chip change data of the current day; otherwise, determining a calculation updating condition according to the starting counting value, and updating the starting counting value when the chip changing data of the current day and the historical chip changing data meet the counting updating condition.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the chip modification curve generation method of any one of claims 1-8.
11. A computer-readable storage medium storing computer instructions for causing a processor to perform the chip modification curve generation method of any one of claims 1 to 8 when executed.
CN202210554512.7A 2022-05-19 2022-05-19 Chip change curve generation method, device, equipment and storage medium Pending CN114820193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210554512.7A CN114820193A (en) 2022-05-19 2022-05-19 Chip change curve generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210554512.7A CN114820193A (en) 2022-05-19 2022-05-19 Chip change curve generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114820193A true CN114820193A (en) 2022-07-29

Family

ID=82517825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210554512.7A Pending CN114820193A (en) 2022-05-19 2022-05-19 Chip change curve generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114820193A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150111638A1 (en) * 2013-10-23 2015-04-23 Gamblit Gaming, Llc Market based interleaved wagering system
CN106339944A (en) * 2016-08-18 2017-01-18 广州新博庭网络信息科技股份有限公司 Stock trend information display method and device
CN108364231A (en) * 2018-02-10 2018-08-03 武汉市灯塔互动文化传播有限公司 A kind of method and apparatus for stock tracing analysis
CN108446790A (en) * 2018-02-10 2018-08-24 灯塔财经信息有限公司 A kind of similar K lines prediction technique and device
CN109711994A (en) * 2018-12-26 2019-05-03 上海大智慧信息科技有限公司 The calculation method and system of main force's chip tracking
CN114266660A (en) * 2021-12-23 2022-04-01 李江侠 Method, system and medium for determining stock trading points

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150111638A1 (en) * 2013-10-23 2015-04-23 Gamblit Gaming, Llc Market based interleaved wagering system
CN106339944A (en) * 2016-08-18 2017-01-18 广州新博庭网络信息科技股份有限公司 Stock trend information display method and device
CN108364231A (en) * 2018-02-10 2018-08-03 武汉市灯塔互动文化传播有限公司 A kind of method and apparatus for stock tracing analysis
CN108446790A (en) * 2018-02-10 2018-08-24 灯塔财经信息有限公司 A kind of similar K lines prediction technique and device
CN109711994A (en) * 2018-12-26 2019-05-03 上海大智慧信息科技有限公司 The calculation method and system of main force's chip tracking
CN114266660A (en) * 2021-12-23 2022-04-01 李江侠 Method, system and medium for determining stock trading points

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
夏正东;: "筹码成本在股票技术分析中的理论探索", 哈尔滨金融高等专科学校学报, no. 01, 15 March 2009 (2009-03-15), pages 33 - 35 *
焦德杰;: "关于筹码分布的探讨", 中国乡镇企业会计, no. 06, 15 June 2007 (2007-06-15), pages 19 - 20 *

Similar Documents

Publication Publication Date Title
CN111461306B (en) Feature evaluation method and device
CN115761130A (en) Three-dimensional scene rapid construction method and device, electronic equipment and storage medium
JP2023547002A (en) Identification method of K-line pattern and electronic equipment
CN114549058A (en) Address selection method and device, electronic equipment and readable storage medium
CN117555897A (en) Data query method, device, equipment and storage medium based on large model
CN112580800A (en) Training method of data trend prediction model and prediction method of data trend
CN113052325A (en) Method, device, equipment, storage medium and program product for optimizing online model
CN114820193A (en) Chip change curve generation method, device, equipment and storage medium
CN118033461A (en) A battery health status assessment method, device and electronic equipment
CN117195118A (en) Data anomaly detection method, device, equipment and medium
CN116932348A (en) Intelligent algorithm performance analysis method and device, electronic equipment and medium
CN115049369A (en) Project management method and device, electronic equipment and storage medium
CN115238811A (en) Anomaly detection model training method, device, equipment and storage medium
CN113220967B (en) Ecological health degree measuring method and device for Internet environment and electronic equipment
CN115062701B (en) Data processing method, device and electronic equipment
CN115168727B (en) User habit mining method and device and electronic equipment
CN114970741B (en) Data processing method and device and electronic equipment
CN115526592A (en) A working hours determination method, device, equipment and storage medium
CN114741078A (en) Data billboard configuration system and method
CN114490347A (en) Research and development efficiency index calculation method and device, electronic equipment and storage medium
CN117150175A (en) Method, device, electronic equipment and storage medium for determining process capability index
CN114721942A (en) Test data generation method, device, equipment and storage medium
CN117453722A (en) Method and device for acquiring information, electronic equipment and storage medium
CN114237816A (en) Method, device, equipment and storage medium for acquiring dummy data
CN114491192A (en) Data visualization method, device, equipment and storage medium

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