JP2002049747A - Device and method for compressing time series data - Google Patents

Device and method for compressing time series data

Info

Publication number
JP2002049747A
JP2002049747A JP2000238438A JP2000238438A JP2002049747A JP 2002049747 A JP2002049747 A JP 2002049747A JP 2000238438 A JP2000238438 A JP 2000238438A JP 2000238438 A JP2000238438 A JP 2000238438A JP 2002049747 A JP2002049747 A JP 2002049747A
Authority
JP
Japan
Prior art keywords
target data
value
data
processing
selection
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.)
Granted
Application number
JP2000238438A
Other languages
Japanese (ja)
Other versions
JP3573072B2 (en
Inventor
Michio Tomiyama
三智雄 冨山
Takashi Yokouchi
孝志 横内
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.)
KUIKKU KK
Original Assignee
KUIKKU KK
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 KUIKKU KK filed Critical KUIKKU KK
Priority to JP2000238438A priority Critical patent/JP3573072B2/en
Publication of JP2002049747A publication Critical patent/JP2002049747A/en
Application granted granted Critical
Publication of JP3573072B2 publication Critical patent/JP3573072B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a time series data compressor, capable of compressing time series data, while keeping a periodicity or fluctuation pattern to remain in the fluctuation of the time series data. SOLUTION: This device is provided with a pre-processing part 11 for calculating a maximum value, a minimum value and the mean value from N pieces of target data (N is an integer), while referring to N pieces of the last target data in the past including relevant target data for each of target data; a first selecting processing part 13 for performing selecting processing of the maximum value for storing the maximum value for each of target data, when the relevant target data are smaller than the mean value or for abandoning the relevant target data, when the relevant target data are larger than the mean value; and a second selecting processing part 14 for performing selecting processing of the minimum value for storing the minimum value for each of target data, when the relevant target data are larger than the mean value or for abandoning the relevant target data, when the relevant target data are smaller than the means value, and selecting processing of the maximum value and the minimum value is conducted alternately.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、株価、外国為替、
貴金属、指数、先物、半導体、素材、その他の価格変動
を伴う市況素材の時系列データを圧縮する時系列データ
圧縮装置及び時系列データ圧縮方法に関する。
[0001] The present invention relates to stock prices, foreign exchange,
The present invention relates to a time-series data compression apparatus and a time-series data compression method for compressing time-series data of precious metals, indices, futures, semiconductors, materials, and other marketable materials with price fluctuations.

【0002】[0002]

【従来の技術】従来から、時系列データ、例えば株価デ
ータは、一日単位又は週単位のローソク足チャート等の
株価チャートとして、投資家等に提供されている。この
株価データを長期間にわたって記憶しているデータベー
スは、レコード数が多くなり、コンピュータ、テレビ受
像機、携帯電子端末等の表示解像度を超えた件数になる
と、大量のレコードをビジュアルに表示することが困難
となる。たとえば、横方向600ドットのデバイス(表
示エリア)で、1000レコードの株価データをチャー
トとして表示すると、複数のレコードの情報が横1ドッ
トに収斂するため、画面がつぶれて、表示が見にくくな
ってしまう。
2. Description of the Related Art Conventionally, time series data, for example, stock price data has been provided to investors and the like as stock price charts such as candlestick charts on a daily or weekly basis. A database that stores this stock price data over a long period of time can display a large number of records visually when the number of records increases and the number of records exceeds the display resolution of computers, television receivers, portable electronic terminals, etc. It will be difficult. For example, when stock price data of 1000 records is displayed as a chart on a device (display area) of 600 dots in the horizontal direction, the information of a plurality of records converges to one horizontal dot, the screen is collapsed, and the display becomes difficult to see. .

【0003】また、株価データ等の市況データの多く
は、「始値」「高値」「安値」「引値」で構成される4
本値を、ローソクと呼ばれる形式で表現するが、1レコ
ードあたりの表現に必要とする横方向ドット数は最低で
も3ドットであるため、限られた領域の画像表示装置に
おいて表示できるデータ数は限定されていた。
[0003] Most of market data such as stock price data is composed of "open price", "high price", "low price", and "price".
This value is expressed in a format called a candle. Since the number of horizontal dots required for expression per record is at least three, the number of data that can be displayed on an image display device in a limited area is limited. It had been.

【0004】更に、専用回線を持っていない一般の投資
家は、膨大な量の株価チャートや株価データをダウンロ
ードするのに時間がかかり、したがって一般の投資家に
とって従来の株価データや株価チャートは使い勝手が良
くないと言う問題があった。
[0004] Furthermore, a general investor who does not have a dedicated line takes a long time to download an enormous amount of stock price charts and stock price data. Therefore, conventional stock price data and stock price charts are easy to use for general investors. There was a problem that was not good.

【0005】このような状況の下、株価データを圧縮す
る各種の圧縮方法が提案されている。
[0005] Under such circumstances, various compression methods for compressing stock price data have been proposed.

【0006】[0006]

【発明が解決しようとする課題】従来の圧縮方法の一つ
として、表示できる期間を長期化するために、1ヶ月単
位のデータを1本のローソクに集約して表示する方法が
ある。この方法の場合、1ヶ月のなかの価格変動履歴が
単純化されてしまうために、重要なポイントが読み取り
難くなってしまうと言う問題がある。
As one of the conventional compression methods, there is a method of displaying data in units of one month in a single candle in order to prolong the display period. In the case of this method, there is a problem that an important point becomes difficult to read because the price fluctuation history in one month is simplified.

【0007】また、従来の表示技術の中には、新値足、
カギ足、Point & Figureチャートと呼ばれるものがあ
る。これらの表示技術は、価格変動を圧縮して表示する
が、時間軸のデータが失われるという点で共通してい
る。このように時間軸のデータが失われると、次のよう
な問題が生ずる。投資家は、例えば、前の高値から次の
高値まで何箇月かかったか。或いは前の調整局面から次
の調整局面まで何箇月かかったか等の株価変動の周期性
を重要視している。しかしながら、カギ足等の表示方法
では、係る株価変動の周期性を表示することはできな
い。
[0007] Some of the conventional display technologies include a new price bar,
There is something called the key feet, Point & Figure chart. Although these display technologies compress and display price fluctuations, they are common in that data on the time axis is lost. When the data on the time axis is lost, the following problem occurs. For example, how many months did investors take from the previous high to the next high? Or, the emphasis is on the periodicity of stock price fluctuations, such as how many months it took from the previous adjustment phase to the next adjustment phase. However, the display method of the key feet or the like cannot display the periodicity of the stock price fluctuation.

【0008】更に、一般に、投資家は、株価チャートに
おける価格の変動パターンを参考にして、売買のタイミ
ングを決めている。株価チャートの変動パターンとして
は、例えば、徐々に鍋底状に上昇している状態、株価の
上下の振幅が徐々に小さくなっている状態、また、上下
に振幅しているときに前回の安値点(下げから上げに向
かうときの変化点)より次回の安値点の方が徐々に上が
っている状態等、がある。このような価格の変動パター
ンは、個々の会社の株価についても、或いは日経平均株
価についても言えることである。したがって、株価デー
タ等の時系列データを圧縮するときには、ノイズを含む
大量の株価データのなかから、変動パターンを残しなが
ら圧縮する必要がある。
[0008] Further, generally, investors refer to price fluctuation patterns in a stock price chart to determine timing of buying and selling. As the fluctuation pattern of the stock price chart, for example, a state where the stock price is gradually rising to the bottom of the pot, a state where the vertical amplitude of the stock price is gradually reduced, and a case where the previous low point ( There is a state in which the next low point is gradually rising from the point of change (from the point of going down to going up). Such a price fluctuation pattern can be applied to the stock price of each company or the Nikkei Stock Average. Therefore, when compressing time-series data such as stock price data, it is necessary to compress a large amount of stock price data including noise while leaving a fluctuation pattern.

【0009】本発明は上記事情に基づいてなされたもの
であり、時系列データの変動の周期性や変動パターンを
残しつつ、時系列データを圧縮することができる時系列
データ圧縮装置及び時系列データ圧縮方法を提供するこ
とを目的とする。
The present invention has been made based on the above circumstances, and has a time-series data compression apparatus and a time-series data compression apparatus capable of compressing time-series data while retaining the periodicity and fluctuation pattern of the fluctuation of the time-series data. It is an object to provide a compression method.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に本発明に係る時系列データ圧縮装置は、時系列データ
の中から、順次、処理の対象となる対象データを参照し
て必要とする対象データを選択し、他の対象データを破
棄することによりデータを圧縮する時系列データ圧縮装
置であって、各対象データ毎に、当該対象データを含
む、過去の直近のN(但し、Nは整数)個の対象データ
を参照して、そのN個の対象データの中から、最大値
と、最小値と、平均値とを算出する前処理手段と、対象
データについて、当該対象データが前記平均値より小さ
いときには、前記最大値を記憶する最大値の選択処理を
行い、当該対象データが前記平均値以上のときには、当
該対象データを破棄処理する第1選択処理手段と、対象
データについて、当該対象データが前記平均値より大き
いときには、前記最小値を記憶する最小値の選択処理を
行い、当該対象データが前記平均値以下のときには、当
該対象データを破棄処理する第2選択処理手段と、直近
の処理が第1選択処理手段による前記最大値の選択処理
であったのか或いは第2処理選択手段による前記最小値
の選択処理であったのかを記憶する記憶手段と、各対象
データ毎に、前記記憶手段を参照して直近の処理が前記
最大値の選択処理であったのか或いは前記最小値の選択
処理であったのかを判断し、直近の処理が最大値の選択
処理であったときには当該対象データを前記第2選択処
理手段で処理させ、また直近の処理が最小値の選択処理
であったときには、当該対象データを前記第1選択処理
手段で処理させる切換手段と、を具備することを特徴と
するものである。
In order to achieve the above object, a time-series data compression apparatus according to the present invention needs to refer to target data to be processed sequentially from time-series data. A time-series data compression apparatus for compressing data by selecting target data and discarding other target data. For each target data, a past N (including N: (Integer) number of target data, a pre-processing means for calculating a maximum value, a minimum value, and an average value from the N pieces of target data; When the value is smaller than the value, a maximum value storing process for storing the maximum value is performed, and when the target data is equal to or larger than the average value, first selection processing means for discarding the target data, When the elephant data is larger than the average value, a selection process of a minimum value for storing the minimum value is performed, and when the target data is equal to or less than the average value, a second selection processing unit for discarding the target data, Storage means for storing whether the processing of the maximum value was selected by the first selection processing means or the selection of the minimum value by the second processing selection means, It is determined whether the most recent processing was the maximum value selection processing or the minimum value selection processing with reference to the storage means. If the most recent processing was the maximum value selection processing, Switching means for causing the data to be processed by the second selection processing means, and when the most recent processing is the selection processing of the minimum value, processing the target data by the first selection processing means. It is characterized in.

【0011】また、上記目的を達成するために本発明に
係る時系列データ圧縮方法は、時系列データの中から、
順次、処理の対象となる対象データを参照して必要とす
る対象データを選択し、他の対象データを破棄すること
によりデータを圧縮する時系列データ圧縮方法であっ
て、各対象データ毎に、当該対象データを含む、過去の
直近のN(但し、Nは整数)個の対象データを参照し
て、そのN個の対象データの中から、最大値と、最小値
と、平均値とを算出する前処理工程と、対象データにつ
いて、当該対象データが前記平均値より小さいときに
は、前記最大値を記憶する最大値の選択処理を行い、当
該対象データが前記平均値以上のときには、当該対象デ
ータを破棄処理する第1選択処理工程と、対象データに
ついて、当該対象データが前記平均値より大きいときに
は、前記最小値を記憶する最小値の選択処理を行い、当
該対象データが前記平均値以下のときには、当該対象デ
ータを破棄処理する第2選択処理工程と、直近の処理が
第1選択処理工程による前記最大値の選択処理であった
のか或いは第2処理選択工程による前記最小値の選択処
理であったのかを記憶する記憶工程と、各対象データ毎
に、前記記憶手段を参照して直近の処理が前記最大値の
選択処理であったのか或いは前記最小値の選択処理であ
ったのかを判断し、直近の処理が最大値の選択処理であ
ったときには当該対象データを前記第2選択処理工程で
処理させ、また直近の処理が最小値の選択処理であった
ときには、当該対象データを前記第1選択処理工程で処
理させる切換工程と、を具備することを特徴とするもの
である。
[0011] In order to achieve the above object, a time-series data compression method according to the present invention comprises:
A time-series data compression method of sequentially selecting target data required by referring to target data to be processed and compressing the data by discarding other target data. Referring to the latest N (where N is an integer) past target data including the target data, a maximum value, a minimum value, and an average value are calculated from the N target data. When the target data is smaller than the average value, a selection process of a maximum value for storing the maximum value is performed.When the target data is equal to or more than the average value, the target data is processed. A first selection processing step of discarding, and for the target data, when the target data is larger than the average value, performing a selection processing of a minimum value for storing the minimum value; In the following cases, a second selection processing step of discarding the target data, and whether the most recent processing was the selection processing of the maximum value in the first selection processing step or the selection of the minimum value in the second processing selection step A storage step of storing whether the processing was a processing, and, for each target data, whether the most recent processing was the processing of selecting the maximum value or the processing of selecting the minimum value with reference to the storage unit. When the most recent processing is the maximum value selection processing, the target data is processed in the second selection processing step. When the most recent processing is the minimum value selection processing, the relevant data is And a switching step of performing the processing in the first selection processing step.

【0012】[0012]

【発明の実施の形態】以下、本発明の1実施形態である
時系列データ圧縮装置について図面を参照して説明す
る。なお、本実施形態の装置では、時系列データとして
株価データを用い、この株価データの週足のデータを圧
縮する場合について説明する。本実施形態の装置は、デ
ータベース内の大量のレコードについて、各レコード毎
に必要なレコードか否かを判断し、必要なレコードのみ
を選択して残し、他のレコードを破棄することによりデ
ータの圧縮を行う。また、本実施形態の各レコードに
は、「時間データ」の他に、少なくとも「始値」、「高
値」、「安値」及び「終値」の4つのフィールドが含ま
れている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a time-series data compression device according to an embodiment of the present invention will be described with reference to the drawings. In the apparatus of the present embodiment, a case will be described in which stock price data is used as time-series data and weekly data of the stock price data is compressed. The apparatus according to the present embodiment compresses data by judging whether or not a large number of records in a database is a necessary record for each record, selecting and leaving only necessary records, and discarding other records. I do. In addition, each record of the present embodiment includes at least four fields of “open price”, “high price”, “low price”, and “close price” in addition to “time data”.

【0013】[実施形態の構成]図1は、本発明の一実
施形態である時系列データ圧縮装置の概略ブロック図で
ある。本実施形態の時系列データ圧縮装置は、株価デー
タを記憶しているデータベース10と、データベース1
0の各レコードについて選択処理を行う前の事前処理を
行う前処理部11と、選択処理を行う第1選択処理部1
3及び第2選択処理部14と、直近の処理が第1選択処
理部13による選択処理であったのか或いは第2処理選
択部14による選択処理であったのか等を記憶する記憶
部15と、第1選択処理部13による選択処理と第2選
択処理部14による選択処理とを交互に行わせるための
切換部12と、選択・圧縮後のデータ等を表示する表示
部16と、データベース10のレコードの位置を示すア
ドレスを格納するポインタ17と、装置全体の制御を行
う制御部20とを含んでいる。
[Structure of Embodiment] FIG. 1 is a schematic block diagram of a time-series data compression apparatus according to an embodiment of the present invention. The time-series data compression device according to the present embodiment includes a database 10 storing stock price data and a database 1
Pre-processing unit 11 that performs pre-processing before performing selection processing on each record of 0, and first selection processing unit 1 that performs selection processing
A third and second selection processing unit 14, a storage unit 15 for storing whether the most recent processing was a selection processing by the first selection processing unit 13 or a selection processing by the second processing selection unit 14, and the like; A switching unit 12 for alternately performing a selection process by the first selection processing unit 13 and a selection process by the second selection processing unit 14; a display unit 16 for displaying data after selection and compression; It includes a pointer 17 for storing an address indicating the position of a record, and a control unit 20 for controlling the entire apparatus.

【0014】前処理部11は、データベース10の各レ
コードについて、第1選択処理部13又は第2選択処理
部14による選択処理を行う前に、当該レコードを含む
直近の過去3回分のレコードを参照して最大値、最小値
及び平均値を算出してその結果を記憶部15等に記憶す
る。最大値を算出するときには、過去3個分のレコード
における高値のなかから一番大きい値の高値を算出す
る。最小値を算出するときには、過去3個分のレコード
における安値のなかから一番小さい安値を算出する。ま
た、過去3個分のレコードの平均値を算出するときに
は、過去3個分のレコードにおける終値の平均値を算出
する。なお、平均値を算出するときには、始値を用いて
算出するようにしてもよい。また、最大値、最小値及び
平均値の全てを終値、始値又は出来高加重平均を用いて
算出するようにしてもよい。更に、データベースの先頭
のレコードを処理するときには先頭のレコードを用い
て、2番目のレコードを処理するときには1番目と2番
目の2つのレコードを用いて、最大値、最小値及び平均
値を算出する。
The preprocessing unit 11 refers to the last three past records including the record before performing the selection processing by the first selection processing unit 13 or the second selection processing unit 14 for each record of the database 10. Then, the maximum value, the minimum value, and the average value are calculated, and the results are stored in the storage unit 15 or the like. When calculating the maximum value, the highest value among the highest values in the past three records is calculated. When calculating the minimum value, the smallest low price is calculated from the low prices in the past three records. When calculating the average value of the past three records, the average value of the closing prices in the past three records is calculated. When calculating the average value, the average value may be calculated using the starting value. Alternatively, all of the maximum value, the minimum value, and the average value may be calculated using the closing price, the opening price, or the volume weighted average. Further, when processing the first record of the database, the first record is used, and when processing the second record, the first and second two records are used to calculate the maximum value, the minimum value, and the average value. .

【0015】第1選択処理部13は、処理対象となる各
レコード毎に、そのレコードの終値と前処理部11で算
出した平均値とを比較し、そのレコードの終値が平均値
より小さいときには、前処理部11が算出した高値の最
大値を含むレコードにフラグを立てる選択処理(最大値
の選択処理)を行い、そのレコードの終値が平均値以上
のときには、そのレコードを破棄処理する。
The first selection processing unit 13 compares, for each record to be processed, the closing price of the record with the average value calculated by the preprocessing unit 11, and when the closing price of the record is smaller than the average value, A selection process (a selection process of the maximum value) for setting a flag on the record including the maximum value of the high value calculated by the preprocessing unit 11 is performed, and when the closing price of the record is equal to or more than the average value, the record is discarded.

【0016】第2選択処理部14は、処理対象となる各
レコード毎に、そのレコードの終値と前処理部11で算
出した平均値とを比較し、そのレコードの終値が平均値
より大きいときには、前処理部が算出した安値の最小値
を含むレコードにフラグを立てる処理(最小値の選択処
理)を行い、そのレコードの終値が平均値以下のときに
は、そのレコードを破棄処理する。
The second selection processing unit 14 compares, for each record to be processed, the closing price of the record with the average value calculated by the preprocessing unit 11, and when the closing price of the record is larger than the average value, A process for setting a flag on a record including the minimum value of the low price calculated by the preprocessing unit (selection process of the minimum value) is performed, and when the closing price of the record is equal to or less than the average value, the record is discarded.

【0017】なお、第1選択処理部13や第2選択処理
部14において、レコードにフラグを立てる代わりに、
最大値の高値や最小値の安値を記憶部等に記憶するよう
にしてもよい。
In the first selection processing unit 13 and the second selection processing unit 14, instead of setting a flag on a record,
The high value of the maximum value and the low value of the minimum value may be stored in a storage unit or the like.

【0018】ポインタ20は、前処理部11、第1選択
処理部13及び第2選択処理部14等が処理を行うとき
の処理対象となるレコードの位置を示すものであり、一
のレコードの処理が終るたびにインクリメントされる。
したがって、このポインタ20は、後述するメインプロ
グラムだけでなくサブルーチンによっても参照される。
The pointer 20 indicates the position of a record to be processed when the pre-processing unit 11, the first selection processing unit 13, the second selection processing unit 14 and the like perform processing. Is incremented each time.
Therefore, the pointer 20 is referenced not only by a main program described later but also by a subroutine.

【0019】切換部12は、各レコード毎に、記憶部1
5を参照して直近の処理が第1選択処理部13による最
大値の選択処理であったのか或いは第2選択処理部14
による最小値の選択処理であったのかを判断し、直近の
処理が最大値の選択処理であったときには当該対象レコ
ードを第2選択処理部14で処理させ、また直近の処理
が最小値の選択処理であったときには、当該対象レコー
ドを第1選択処理部13で処理させる。これにより、第
1選択処理部13で選択処理を行った後は、次に必ず第
2選択処理部14で選択処理が行われ、また第2選択処
理部14で選択処理を行った後は、次に必ず第1選択処
理部13で選択処理が行われる。すなわち、本実施形態
では、最大値の選択処理と最小値の選択処理とは、交互
に行われる。
The switching unit 12 stores the data in the storage unit 1 for each record.
5, whether the most recent processing was the maximum value selection processing by the first selection processing unit 13 or the second selection processing unit 14
It is determined whether or not the process is a minimum value selection process. If the most recent process is a maximum value selection process, the target record is processed by the second selection processing unit 14, and the most recent process is a minimum value selection process. If it is a process, the target record is processed by the first selection processing unit 13. As a result, after the selection processing is performed by the first selection processing unit 13, the selection processing is always performed by the second selection processing unit 14, and after the selection processing is performed by the second selection processing unit 14, Next, selection processing is always performed by the first selection processing unit 13. That is, in the present embodiment, the process of selecting the maximum value and the process of selecting the minimum value are performed alternately.

【0020】制御部20は、前処理部11、第1選択処
理部13及び第2選択処理部14等の要求に応じて、記
憶部15のデータの読み書きを制御したり、処理の始め
にポインタの値を1にセットしたり、一のレコードの処
理が終る毎に、ポインタの値をインクリメントしたりす
る処理を行う。また、制御部20は、圧縮したデータ
を、後述する方法で表示部16に表示したりする。
The control unit 20 controls the reading and writing of data in the storage unit 15 in response to requests from the preprocessing unit 11, the first selection processing unit 13, the second selection processing unit 14, and the like, and sets a pointer at the beginning of processing. Is set to 1 or the value of the pointer is incremented every time the processing of one record is completed. Further, the control unit 20 displays the compressed data on the display unit 16 by a method described later.

【0021】[実施形態の動作] 次に、本実施形態の
時系列データ圧縮装置の処理手順について、図2から図
5を参照して説明する。図2はメインプログラムの処理
手順を示す図であり、図3〜図5はメインプログラムか
ら呼び出されるサブルーチン(関数)の処理手順を示す
図である。なお、図2から図5において、レコードはブ
ロックとも称する。
[Operation of Embodiment] Next, a processing procedure of the time-series data compression apparatus of the embodiment will be described with reference to FIGS. FIG. 2 is a diagram showing a processing procedure of the main program, and FIGS. 3 to 5 are diagrams showing a processing procedure of a subroutine (function) called from the main program. 2 to 5, a record is also referred to as a block.

【0022】所定の初期設定を行った後、ステップS1
では、ブロック長(TheBlook)を定義する。株価データ
の場合、このブロック長(N)は、3〜10の中から適
当な数値を選んで設定する。本実施形態では、上述した
ように3週分のレコードを参照して事前処理を行うこと
としているので、ここではブロック長を3に設定する。
After performing predetermined initial settings, step S1
Let's define the block length (TheBlook). In the case of stock price data, the block length (N) is set by selecting an appropriate numerical value from 3 to 10. In the present embodiment, since the pre-processing is performed by referring to the records for three weeks as described above, the block length is set to 3 here.

【0023】ステップS2では、第1選択処理部又は第
2選択処理部による選択処理が行われていないので、取
り敢えず、前回の選択処理の結果を示す最終検出データ
変数(LastLabel)をヌルで初期化する。
In step S2, since the selection processing by the first selection processing unit or the second selection processing unit has not been performed, the final detection data variable (LastLabel) indicating the result of the previous selection processing is initialized to null. I do.

【0024】ステップS3では、ポインタ20の値をデ
ータベースの先頭レコードを示す値「1」に設定する。
ステップS4では参照しているレコードがデータベース
10の最後のレコードであるか否かを判断する。最後の
レコードでなければ、ステップS5に移行する。ステッ
プS5では、図3から図5に示す3つのサブルーチンを
実行する。なお、図3から図5に示す各サブルーチンで
参照するデータベースのレコードの位置は、メインプロ
グラムで設定された位置と同じ位置(同じポインタ2
0)とする。
In step S3, the value of the pointer 20 is set to a value "1" indicating the first record of the database.
In step S4, it is determined whether or not the record being referred to is the last record in the database 10. If it is not the last record, the process proceeds to step S5. In step S5, three subroutines shown in FIGS. 3 to 5 are executed. The positions of the records of the database referred to in the subroutines shown in FIGS. 3 to 5 are the same as the positions set in the main program (the same pointer 2).
0).

【0025】図3に示すサブルーチンの処理手順は、所
定の初期設定を行った後、ステップS21では、現在の
データベースのレコードの参照位置P(ポインタ20の
値)がブロック長(BlockSize)=3より大きいか否か
を判断する。この場合は、ポインタ20の位置Pは1で
あるので、ステップS23に移行して、先頭のレコード
からPの位置のレコードまで(この場合、先頭のレコー
ドのみ)の高値を戻り値として一時的に記憶する。な
お、Pが2のときには、先頭から2個のレコードのなか
で、またPが3のときには先頭から3個のレコードのな
かで、高値が最大値となるものを計算して、その最大値
を戻り値として一次的に記憶する。一方、参照位置Pが
ブロック長(BlockSize)=3より大きいときには、ス
テップS22に移行して、現在の参照位置Pから過去方
向にPを含めたブロック長(BlockSize)=3の長さだ
け溯った範囲のレコード(3個分のレコード)の中から
高値の最大値を計算して、その最大値を戻り値として一
時的に記憶する。
In the processing procedure of the subroutine shown in FIG. 3, after performing a predetermined initial setting, in step S21, the reference position P (the value of the pointer 20) of the current record of the database is changed from the block length (BlockSize) = 3. It is determined whether it is large. In this case, since the position P of the pointer 20 is 1, the process proceeds to step S23, and the high value from the first record to the record at the position of P (in this case, only the first record) is temporarily set as a return value. Remember. When P is 2, the highest value is calculated from the top two records, and when P is 3, the highest value is calculated from the top three records, and the maximum value is calculated. It is temporarily stored as a return value. On the other hand, when the reference position P is larger than the block length (BlockSize) = 3, the process proceeds to step S22, and the block length (BlockSize) = 3 including P in the past from the current reference position P goes back. The maximum value of the high value is calculated from the records in the range (three records), and the maximum value is temporarily stored as a return value.

【0026】図4に示すサブルーチンの処理手順は、所
定の初期設定を行った後、ステップS31では、現在の
データベースのレコードの参照位置P(ポインタ20の
値)がブロック長(BlockSize)=3より大きいか否か
を判断する。この場合は、ポインタ20の位置Pは1で
あるので、ステップS33に移行して、先頭のレコード
からPの位置のレコードまで(この場合、先頭のレコー
ド)の安値を戻り値として一時的に記憶する。なお、P
が2のときには、先頭から2個のレコードのなかで、ま
たPが3のときには先頭から3個のレコードのなかで、
最小値となる安値を計算して、その最小値を戻り値とし
て一次的に記憶する。一方、参照位置Pがブロック長
(BlockSize)=3より大きいときには、ステップS2
2に移行して、現在の参照位置Pから過去方向にPを含
めたブロック長(BlockSize)=3の長さだけ溯った範
囲のレコード(3個分のレコード)の中から安値の最小
値を計算して、その最小値を戻り値として一時的に記憶
する。
In the processing procedure of the subroutine shown in FIG. 4, after performing a predetermined initial setting, in step S31, the reference position P (the value of the pointer 20) of the current record of the database is changed from the block length (BlockSize) = 3. It is determined whether it is large. In this case, since the position P of the pointer 20 is 1, the processing shifts to step S33 to temporarily store the low price from the first record to the record at the position of P (in this case, the first record) as a return value. I do. Note that P
Is 2 in the first two records, and P is 3 in the first three records.
The lowest value that is the minimum value is calculated, and the minimum value is temporarily stored as a return value. On the other hand, when the reference position P is larger than the block length (BlockSize) = 3, step S2
2, the minimum value of the low price is selected from the records (three records) in the range of the block length (BlockSize) = 3 including P in the past direction from the current reference position P in the past direction. After the calculation, the minimum value is temporarily stored as a return value.

【0027】図5に示すサブルーチンの処理手順は、所
定の初期設定を行った後、ステップS41では、現在の
データベースのレコードの参照位置P(ポインタ20の
値)がブロック長(BlockSize)=3より大きいか否か
を判断する。この場合は、ポインタ20の位置Pは1で
あるので、ステップS43に移行して、先頭のレコード
からPの位置のレコードまで(この場合、先頭のレコー
ド)の終値を戻り値として一時的に記憶する。なお、P
が2のときには、先頭から2個のレコードのなかで、ま
たPが3のときには先頭から3個のレコードのなかで、
終値の平均値を計算して、その平均値を戻り値として一
次的に記憶する。一方、参照位置Pがブロック長(Bloc
kSize)=3より大きいときには、ステップS22に移
行して、現在の参照位置Pから過去方向にPを含めたブ
ロック長(BlockSize)=3の長さだけ溯った範囲のレ
コード(3個分のレコード)の中から終値の平均値を計
算して、その平均値を戻り値として一時的に記憶する。
In the processing procedure of the subroutine shown in FIG. 5, after performing a predetermined initial setting, in step S41, the reference position P (the value of the pointer 20) of the current database record is changed from the block length (BlockSize) = 3. It is determined whether it is large. In this case, since the position P of the pointer 20 is 1, the processing shifts to step S43 to temporarily store the closing value from the first record to the record at the position of P (in this case, the first record) as a return value. I do. Note that P
Is 2 in the first two records, and P is 3 in the first three records.
The average value of the closing prices is calculated, and the average value is temporarily stored as a return value. On the other hand, the reference position P is the block length (Bloc
If it is larger than (kSize) = 3, the process proceeds to step S22, in which records in the range (block size of three records) that extend backward from the current reference position P by a length of 3 including the P (BlockSize) = 3 ) Is calculated, and the average value is temporarily stored as a return value.

【0028】上記の図3から図5に示すサブルーチンの
処理が終了すると、図1のステップS6の処理が行われ
る。ステップS6では、前回の選択処理の結果を示す最
終検出データ変数(LastLabel)がステップS3で設定
した初期値であるか或いは最小値の選択処理を行ったこ
とを示す「Min」であるかを判断する。今は、初期値で
あるので、ステップS7に移行する。初期値や「Min」
でなければ、ステップS9に移行する。
When the processing of the subroutine shown in FIGS. 3 to 5 ends, the processing of step S6 in FIG. 1 is performed. In step S6, it is determined whether the last detection data variable (LastLabel) indicating the result of the previous selection processing is the initial value set in step S3 or "Min" indicating that the minimum value selection processing has been performed. I do. Since the current value is the initial value, the process proceeds to step S7. Initial value or "Min"
If not, the process proceeds to step S9.

【0029】ステップS7では、処理対象となっている
レコード(ポインタ20が示すレコード)の終値が、ス
テップS5で求めた平均値(dBlockAve)よりも小さい
か否かを判断する。平均値より小さければ、ステップS
8に移行し、平均値以上であれば、ステップS9に移行
する。
In step S7, it is determined whether or not the closing price of the record to be processed (the record indicated by the pointer 20) is smaller than the average value (dBlockAve) obtained in step S5. If smaller than the average value, step S
The process proceeds to step S8, and if it is equal to or greater than the average value, the process proceeds to step S9.

【0030】ステップS8では、ステップS5で求めた
最大値(dBlockMax)と同じ値を高値に持つレコードを
探し、当該レコードの時間データを含むデータを表示デ
ータとして選択処理する(当該レコードにフラグを立て
る。)。なお、このときに、該当する最大値と同じ高値
を持つレコードが複数ある場合には、予め決められてい
る、例えば時間的に後の方のレコードを表示データとし
て選択処理する。また、選択処理が最大値を選択する処
理であったことを示すために、前回の選択処理の結果を
示す最終検出データ変数(LastLabel)に「Max」を代入
する。このように最終検出データ変数を「Max」とする
ことにより、次回以降のレコードを処理するときには、
必ず第2選択処理部による最小値を探す選択処理(ステ
ップS9〜ステップS11)を実行させ、安値を探すよ
うにすることができる。
In step S8, a record having a high value equal to the maximum value (dBlockMax) obtained in step S5 is searched, and data including the time data of the record is selected as display data (a flag is set on the record). .). At this time, if there are a plurality of records having the same high value as the corresponding maximum value, a predetermined record, for example, a later record in time is selected as display data. In addition, in order to indicate that the selection process is a process of selecting the maximum value, “Max” is substituted for the last detection data variable (LastLabel) indicating the result of the previous selection process. By setting the final detection data variable to “Max” in this way, when processing the next and subsequent records,
It is possible to always execute the selection processing (steps S9 to S11) for searching for the minimum value by the second selection processing unit and search for the lowest price.

【0031】ステップS9では、前回の選択処理の結果
を示す最終検出データ変数(LastLabel)が初期値であ
るか、或いは最大値の選択処理を行ったことを示す「Ma
x」であるかを判断する。初期値又は「Max」であれば、
ステップS10に移行する。初期値や「Max」でなけれ
ば、ステップS12に移行する。
In step S9, the last detected data variable (LastLabel) indicating the result of the previous selection processing is the initial value, or "Ma" indicating that the maximum value has been selected.
x ". If the initial value or "Max",
Move to step S10. If it is not the initial value or “Max”, the process proceeds to step S12.

【0032】ステップS10では、処理対象となってい
るレコード(ポインタ20が示すレコード)の終値が、
ステップS5で求めた平均値(dBlockAve)よりも大き
いか否かを判断する。平均値より大きければ、ステップ
S11に移行し、平均値以下であれば、ステップS12
に移行する。
In step S10, the closing value of the record to be processed (the record indicated by the pointer 20) is
It is determined whether or not it is larger than the average value (dBlockAve) obtained in step S5. If the average value is larger than the average value, the process proceeds to step S11.
Move to

【0033】ステップS11では、ステップS5で求め
た最小値(dBlockMin)と同じ値を安値に持つレコード
を探し、当該レコードの時間データを含むデータを表示
データとして選択処理する(当該レコードにフラグを立
てる。)。なお、このときに、該当する最小値と同じ安
値を持つレコードが複数ある場合には、予め決められて
いる、例えば時間的に後の方のレコードを表示データと
して選択処理する。また、選択処理が最小値を選択する
処理であったことを示すために、最終検出データ変数
(LastLabel)に「Min」を代入する。このように最終検
出データ変数を「Min」とすることにより、次回以降の
レコードを処理するときには、必ず第1選択処理部によ
る最大値を探す選択処理(ステップS6〜ステップS
8)を実行させ、高値を探すようにすることができる。
In step S11, a record having a low value equal to the minimum value (dBlockMin) obtained in step S5 is searched, and data including time data of the record is selected as display data (a flag is set on the record). .). At this time, if there are a plurality of records having the same low price as the corresponding minimum value, a predetermined record, for example, a later record in time, is selected as the display data. Also, “Min” is substituted for the last detection data variable (LastLabel) to indicate that the selection process is a process for selecting the minimum value. By setting the final detection data variable to “Min” in this way, when processing the next and subsequent records, the first selection processing unit always searches for the maximum value (steps S6 to S5).
8) can be executed to search for a high value.

【0034】上記のステップS6からステップS11の
処理を行うことにより、各処理対象のレコードの終値が
過去3回分のレコードの平均値より、若干、下がったと
きに、過去の3回分のレコードの中から高値の最大値を
見つけて選択処理する。また、処理対象のレコードの終
値が過去3回分のレコードの平均値より、若干、上がっ
たときに、過去の3回分のレコードの中から安値の最小
値を見つけて選択処理する。更に、高値の最大値と安値
の最小値を交互に選択処理することにより、データを圧
縮する。
By performing the processing from step S6 to step S11, when the closing price of each record to be processed is slightly lower than the average value of the past three records, when the closing price of the past three records is reduced. The maximum value of the high price is found from and the selection process is performed. When the closing price of the record to be processed is slightly higher than the average value of the past three records, the minimum value of the low price is found and selected from the past three records. Further, the data is compressed by alternately selecting the maximum value of the high value and the minimum value of the low value.

【0035】ステップS12では、処理対象となるレコ
ードを次のレコードに変更するために、ポインタ20の
値をインクリメントする。この処理の後、ステップS4
に戻る。以下、データベースの最後のレコードの処理が
終るまで、すなわち、対象となるデータベースが有する
レコードの数と同じ回数だけ、ステップS4からステッ
プS12までの処理を繰り返して実行することにより、
レコードの数を圧縮する。
In step S12, the value of the pointer 20 is incremented to change the record to be processed to the next record. After this processing, step S4
Return to Hereinafter, by repeating the processing from step S4 to step S12 until the processing of the last record of the database is completed, that is, the same number of times as the number of records of the target database,
Compress the number of records.

【0036】ステップS4の判断で処理対象のレコード
が最後のレコードであると判断すると、ステップS13
に移行して最後のレコードの終値を表示データとして選
択処理して、この処理を終了する。
If it is determined in step S4 that the record to be processed is the last record, step S13
Then, the closing price of the last record is selected as the display data, and the process ends.

【0037】上記の処理手順により、3番目以降のレコ
ードについては、各レコード毎に、過去の3個分のレコ
ードのデータに基づいて、予め最大値と最小値と平均値
を算出して保持し、第1選択処理部13による最大値の
選択処理或いは第2選択処理部14による最小値の選択
処理を行う。第1選択処理部13では、処理対象となる
レコードの終値と平均値とを比較し、終値が平均値より
小さいときには最大値の選択処理を行い、終値が平均値
以上のときには、そのレコードを破棄処理する。第2選
択処理部14では、処理対象となるレコードの終値と平
均値とを比較し、終値が平均値より大きいときには最小
値の選択処理を行い、終値が平均値以下のときには、そ
のレコードを破棄処理する。切換部12は、最大値の選
択処理と最小値の選択処理が交互に行われるように制御
する。このような選択処理と破棄処理によってレコード
の圧縮を行うことにより、株価の周期性や変動パターン
を残しつつ、データを圧縮することができる。
According to the above processing procedure, for the third and subsequent records, the maximum value, the minimum value, and the average value are calculated and held in advance for each record based on the data of the past three records. The first selection processing unit 13 performs a maximum value selection process or the second selection processing unit 14 performs a minimum value selection process. The first selection processing unit 13 compares the closing price of the record to be processed with the average value, selects the maximum value when the closing price is smaller than the average value, and discards the record when the closing price is equal to or more than the average value. To process. The second selection processing unit 14 compares the closing price of the record to be processed with the average value, selects the minimum value when the closing price is larger than the average value, and discards the record when the closing price is less than the average value. To process. The switching unit 12 controls the maximum value selection processing and the minimum value selection processing to be performed alternately. By compressing records by such selection processing and discarding processing, data can be compressed while leaving periodicity and fluctuation patterns of stock prices.

【0038】図6は、本実施形態の装置で株式会社コナ
カの実際の株価データを圧縮した後のデータに基づいて
表示したグラフである。なお、同図は、週単位のデータ
に基づいて、1998年2月から2000年の6月迄の
データの圧縮を行ったものである。最小値(安値)及び
最大値(高値)を順次、高値から安値、或いは安値から
高値に直線で結び、先端に矢印を付け、且つ各安値及び
高値の位置に実際の価格を表示している。なお、図6で
は、最後のレコードの終値の価格を表示していないが、
この価格を表示するようにしてもよい。
FIG. 6 is a graph displayed based on the data after the actual stock price data of Konaka Co., Ltd. is compressed by the apparatus of the present embodiment. In the figure, data is compressed from February 1998 to June 2000 based on weekly data. The minimum value (low price) and the maximum value (high price) are sequentially connected with a straight line from the high price to the low price or from the low price to the high price, an arrow is attached to the tip, and the actual price is displayed at the position of each low price and the high price. Although FIG. 6 does not show the price of the closing price of the last record,
This price may be displayed.

【0039】図7は本実施形態の装置で圧縮する前の株
式会社コナカの株価データを週足ローソクで表示したグ
ラフである。なお、図7のグラフは、1999年2月か
ら2000年6月迄のデータを表示したものである。図
6と図7の対応する期間を比較してみると、図7に表示
されている1999年2月から2000年6月迄の期間
は、図6では略半分以下の期間に圧縮されている。実際
のこの期間の株式会社コナカの全レコード数が155で
あるのに対して、本実施形態の装置によって圧縮した後
のレコード数は29であり、圧縮率は約1/3である。
また、本実施形態の装置により、ソニー(株)の実際の
株価データを同様にして、圧縮したところ、280レコ
ードの週足データは、60レコードに圧縮された。この
ように、本実施形態の装置によれば、少なくとも1/2
から1/10位に株価データを圧縮することができる。
FIG. 7 is a graph showing the stock price data of Konaka Co., Ltd. before compression by the apparatus of the present embodiment as a weekly candle. The graph in FIG. 7 shows data from February 1999 to June 2000. Comparing the corresponding periods in FIG. 6 and FIG. 7, the period from February 1999 to June 2000 displayed in FIG. 7 is compressed to approximately half or less in FIG. . While the actual total number of records of Konaka Co., Ltd. in this period is 155, the number of records after compression by the apparatus of the present embodiment is 29, and the compression ratio is about 1/3.
Further, when the actual stock price data of Sony Corporation was compressed in the same manner by the apparatus of the present embodiment, the weekly data of 280 records was compressed to 60 records. Thus, according to the device of the present embodiment, at least 1/2
The stock price data can be compressed to the order of 1/10.

【0040】また、図6のグラフを見ると、この株価チ
ャートの変動パターンがペナントであることを容易に認
識することができる。更に、図6のグラフから価格変動
の周期性についても、周期が徐々に短くなっていること
を容易に認識することができる。一方、図7を良く見る
と、図6と同様の変動パターンや周期性があることが分
かる。このように、本実施形態の装置によれば、株価チ
ャートの変動パターンや周期性を残して、データを圧縮
することができ、しかも従来のチャートに比べて変動パ
ターンや周期性の認識が容易になる。したがって、投資
家は、図6に示された過去の傾向から、次回の価格変動
の目安とすべき日付や価格を容易に読み取ることができ
る。なお、上記の実施形態では、1社の株価データを圧
縮した場合について説明したが、日経平均株価のデータ
を圧縮しても、同様の圧縮を行うことができる。また、
本実施形態によれば、ペナント以外の他の価格の変動パ
ターンである、例えばダブルトップやダブルボトム等に
ついても、容易且つ確実に見つけることができる。
Further, when looking at the graph of FIG. 6, it can be easily recognized that the fluctuation pattern of this stock price chart is a pennant. Further, it can be easily recognized from the graph of FIG. 6 that the period of the price fluctuation is gradually shortened. On the other hand, if you look closely at FIG. 7, you can see that there is a variation pattern and periodicity similar to FIG. As described above, according to the apparatus of the present embodiment, the data can be compressed while maintaining the fluctuation pattern and periodicity of the stock price chart, and the fluctuation pattern and periodicity can be easily recognized as compared with the conventional chart. Become. Therefore, the investor can easily read the date and price that should be used as a guide for the next price change from the past trend shown in FIG. In the above embodiment, the case where the stock price data of one company is compressed has been described. However, the same compression can be performed by compressing the data of the Nikkei Stock Average. Also,
According to the present embodiment, a price fluctuation pattern other than the pennant, such as a double top or double bottom, can be easily and reliably found.

【0041】また、大量のデータのなかから、抵抗線や
指示線を見つけるのは、コンピュータを用いても容易で
はないが、上記の本実施形態によれば、データの数が少
ないので、図6に示すように抵抗線Aや指示線Bを容易
に表示することができる。多数のデータの中から変動パ
ターンや周期性を探すのはコンピュータを用いても、容
易ではない。しかしながら、本実施形態により圧縮した
データを用いて変動パターンや周期性を見つけるのは、
計算容量が少ないので、非力なコンピュータでも、容易
に見つけることができる。また、一般の投資家にとって
は、図7に示す従来の複雑な株価チャートから抵抗線や
指示線を見つけるのは難しいが、本実施形態によれば、
抵抗線Aや指示線Bを描かなくても、一般の投資家が容
易に、指示線や抵抗線を認識することができる。
Further, it is not easy to find a resistance line or an instruction line from a large amount of data by using a computer. However, according to the above-described embodiment, since the number of data is small, FIG. As shown in FIG. 7, the resistance line A and the instruction line B can be easily displayed. It is not easy to search for a fluctuation pattern or periodicity from a large number of data even by using a computer. However, finding a fluctuation pattern or periodicity using data compressed according to the present embodiment is as follows.
Because of the low computational capacity, even weak computers can be easily found. Further, it is difficult for a general investor to find a resistance line or an indicator line from the conventional complicated stock price chart shown in FIG. 7, but according to the present embodiment,
Even without drawing the resistance line A and the instruction line B, a general investor can easily recognize the instruction line and the resistance line.

【0042】なお、株価データの場合、Nの値が2以下
だと、特徴点を抽出することが難しく、またNの値が1
0以上であると、ラフになり過ぎる。したがって、株価
データの場合、Nの値は、3〜10の間が望ましい。な
お、処理対象のデータ量が多かったり、表示装置が小さ
い場合には、Nの値を11以上とすることも可能であ
る。 [実施形態の効果]上記の本実施形態によれば、相場が
上がりつづけているときには、過去の最小値(安値)を
見つけ、相場が上がりつづけている間のデータは破棄
し、次にデータを取得するのは、相場が下がるときであ
る。そして、相場が下がりつづけている間は、その間の
データを破棄する。これにより、データを圧縮するとと
もに、過去の高値と安値だけに着目してデータを選択す
ることができる。一般の投資家は、上げ相場のときに
は、高値に注目している。また、下げ相場のときには、
安値に注目している。しかし、投資の専門家は、上げ相
場のときには、その相場の安値に注目している。また下
げ相場のときには、その相場の高値に注目している。本
実施形態によれば、この専門家の視点から、市況データ
を圧縮していると言える。
In the case of stock price data, if the value of N is 2 or less, it is difficult to extract feature points, and if the value of N is 1
If it is 0 or more, it becomes too rough. Therefore, in the case of stock price data, the value of N is preferably between 3 and 10. When the data amount to be processed is large or the display device is small, the value of N can be set to 11 or more. [Effects of Embodiment] According to the above-described embodiment, when the market price is rising, a past minimum value (low price) is found, data while the market price is rising is discarded, and then data is deleted. You get it when the market price goes down. Then, while the market price continues to fall, data during that period is discarded. Thus, the data can be compressed and the data can be selected by focusing only on the past high and low prices. The average investor is paying attention to the high price when the market is raising. Also, at the time of the down price,
We are paying attention to the low price. However, investment experts are paying attention to the low prices during the uptrend. In the case of a downtrend, we are paying attention to the high price of the market. According to the present embodiment, it can be said that the market data is compressed from the viewpoint of the expert.

【0043】また、本実施形態によれば、膨大な株価デ
ータを価格の変動パターンや周期性が残るようにして必
要な大きさに圧縮することができるので、従来は不可能
であった、携帯端末にも、インターネット等を介して、
その表示能力に応じた株価データのチャートを転送する
ことが可能となる。すなわち、従来の株価データの転送
量は、数十ギガバイトであるので、インターネットを介
して、この膨大な量の株価データを転送すると、転送費
用が嵩んでしまう。しかしながら、本実施形態の装置で
データを圧縮することにより、インターネットを使用し
て携帯端末に株価データを転送する場合でも、転送料金
が安価なものなる。したがって、本実施形態によれば、
携帯端末への株価データの転送サービスを事業として行
うことも可能となる。
Further, according to the present embodiment, a large amount of stock price data can be compressed to a required size while maintaining a price fluctuation pattern and periodicity. Also on the terminal via the Internet etc.
It becomes possible to transfer a chart of stock price data according to the display ability. That is, since the transfer amount of the conventional stock price data is several tens of gigabytes, transferring this huge amount of stock price data via the Internet increases the transfer cost. However, by compressing the data with the apparatus of the present embodiment, even when stock price data is transferred to the portable terminal using the Internet, the transfer fee is low. Therefore, according to the present embodiment,
It is also possible to provide a service for transferring stock price data to mobile terminals as a business.

【0044】更に、本実施形態によれば、株価の変動の
周期性や変動パターン等の特徴部分の認識を困難にする
撹乱性データ(ノイズ)を効率よく除去して、特徴部分
を残した圧縮を行うことができるので、圧縮されたデー
タを用いて容易に特徴部分を把握することができ、した
がって株価売買の的確な判断を迅速に行うことができ
る。例えば、本実施形態によれば、一分間に数十銘柄の
価格パターンのチェックが可能であるが、同様の読み取
り作業を、図7に示す従来の方法で行うと、ノイズが多
いので長い時間を要し、しかも画面を注視するので目が
疲れる。
Further, according to the present embodiment, the disturbance data (noise) which makes it difficult to recognize the characteristic portion such as the periodicity and the fluctuation pattern of the stock price is efficiently removed, and the compression with the characteristic portion left is performed. Therefore, the characteristic portion can be easily grasped by using the compressed data, and therefore, it is possible to quickly make an accurate judgment on stock price trading. For example, according to the present embodiment, it is possible to check the price pattern of dozens of brands per minute, but if the same reading operation is performed by the conventional method shown in FIG. It is necessary, and eyes are tired because I look at the screen.

【0045】[他の実施形態]なお、本発明は、上記の
実施形態に限定されるものではなく、その要旨の範囲内
において種々の変形が可能である。例えば、上記の実施
形態では、Nが3である場合について説明したが、この
Nの値を変えることにより、圧縮率や圧縮精度を自在に
変更することができる。すなわち、圧縮対象となるデー
タの量と携帯端末等の表示装置の能力とに応じて、Nの
値を設定することにより、膨大なデータの特徴部分をで
きるだけ残して、小さな表示装置に表示することが可能
となる。
[Other Embodiments] The present invention is not limited to the above embodiments, and various modifications can be made within the scope of the invention. For example, in the above embodiment, the case where N is 3 has been described. However, by changing the value of N, the compression ratio and compression accuracy can be freely changed. That is, by setting the value of N in accordance with the amount of data to be compressed and the capability of the display device such as a portable terminal, it is possible to display the data on a small display device while leaving as much of the feature portion of the data as possible. Becomes possible.

【0046】また、上記の実施形態では、株価データを
圧縮する場合について説明したが、本発明はこれに限定
されるものではなく、外国為替、貴金属、指数、先物、
半導体、素材、その他の価格変動を伴う市況素材の時系
列データを圧縮するようにしてもよい。
Further, in the above embodiment, the case where the stock price data is compressed has been described. However, the present invention is not limited to this. Forex, precious metals, indices, futures,
Time-series data of semiconductors, materials, and other marketable materials with price fluctuations may be compressed.

【0047】更に、本発明は、上記の実施形態に限定さ
れるものではなく、始値や高値フィールドを持たない、
いわゆる一本値と呼ばれる時系列データを圧縮する場
合、或いは出来高加重平均の時系列データを圧縮する場
合等に用いることができる。
Further, the present invention is not limited to the above embodiment, and has no open price or high price field.
This can be used when time-series data called so-called single value is compressed, or when time-series data of volume weighted average is compressed.

【0048】[0048]

【発明の効果】以上説明したように本発明によれば、適
切なNの値を設定することにより、データ量や表示装置
の能力に応じて、時系列データの変動の周期性や変動パ
ターンを残しつつ、時系列データを圧縮することができ
る時系列データ圧縮装置及び時系列データ圧縮方法を提
供することができる。
As described above, according to the present invention, by setting an appropriate value of N, the periodicity and the fluctuation pattern of the time-series data can be changed according to the amount of data and the capability of the display device. It is possible to provide a time-series data compression device and a time-series data compression method that can compress time-series data while leaving it.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施形態である時系列データ圧縮
装置の概略ブロック図である。
FIG. 1 is a schematic block diagram of a time-series data compression device according to an embodiment of the present invention.

【図2】 メインプログラムの処理手順を示す図であ
る。
FIG. 2 is a diagram showing a processing procedure of a main program.

【図3】 図2のメインプログラムから呼び出されるサ
ブルーチン(関数)の処理手順を示す図である。
FIG. 3 is a diagram showing a processing procedure of a subroutine (function) called from the main program of FIG. 2;

【図4】 図2のメインプログラムから呼び出されるサ
ブルーチン(関数)の処理手順を示す図である。
FIG. 4 is a diagram showing a processing procedure of a subroutine (function) called from the main program of FIG. 2;

【図5】 図2のメインプログラムから呼び出されるサ
ブルーチン(関数)の処理手順を示す図である。
FIG. 5 is a diagram showing a processing procedure of a subroutine (function) called from the main program of FIG. 2;

【図6】 本実施形態の装置で株式会社コナカの実際の
株価データを圧縮した後のデータに基づいて表示したグ
ラフである。
FIG. 6 is a graph displayed based on data obtained by compressing actual stock price data of Konaka Co., Ltd. using the apparatus of the present embodiment.

【図7】 本実施形態の装置で圧縮する前の株式会社コ
ナカの株価データを週足ローソクで表示したグラフであ
る。
FIG. 7 is a graph showing stock price data of Konaka Co., Ltd. before compression by the apparatus of the present embodiment as a weekly candle.

【符号の説明】[Explanation of symbols]

10: データベース、 11: 前処理部、 12:
切換部、13: 第1選択処理部、 14: 第2選
択処理部、 15: 記憶部、16: 表示部、 1
7: ポインタ、 20: 制御部
10: Database, 11: Preprocessing unit, 12:
Switching section, 13: first selection processing section, 14: second selection processing section, 15: storage section, 16: display section, 1
7: pointer, 20: control unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 時系列データの中から、順次、処理の対
象となる対象データを参照して必要とする対象データを
選択し、他の対象データを破棄することによりデータを
圧縮する時系列データ圧縮装置であって、 各対象データ毎に、当該対象データを含む、過去の直近
のN(但し、Nは整数)個の対象データを参照して、そ
のN個の対象データの中から、最大値と、最小値と、平
均値とを算出する前処理手段と、 対象データについて、当該対象データが前記平均値より
小さいときには、前記最大値を記憶する最大値の選択処
理を行い、当該対象データが前記平均値以上のときに
は、当該対象データを破棄処理する第1選択処理手段
と、 対象データについて、当該対象データが前記平均値より
大きいときには、前記最小値を記憶する最小値の選択処
理を行い、当該対象データが前記平均値以下のときに
は、当該対象データを破棄処理する第2選択処理手段
と、 直近の処理が第1選択処理手段による前記最大値の選択
処理であったのか或いは第2処理選択手段による前記最
小値の選択処理であったのかを記憶する記憶手段と、 各対象データ毎に、前記記憶手段を参照して直近の処理
が前記最大値の選択処理であったのか或いは前記最小値
の選択処理であったのかを判断し、直近の処理が最大値
の選択処理であったときには当該対象データを前記第2
選択処理手段で処理させ、また直近の処理が最小値の選
択処理であったときには、当該対象データを前記第1選
択処理手段で処理させる切換手段と、 を具備することを特徴とする時系列データ圧縮装置。
1. Time-series data for compressing data by sequentially selecting required data from time-series data by referring to target data to be processed and discarding other target data. A compression apparatus, for each target data, referring to the latest N (where N is an integer) target data including the target data in the past, and selecting a maximum from among the N target data. Preprocessing means for calculating a value, a minimum value, and an average value; and for the target data, when the target data is smaller than the average value, performing a selection process of a maximum value for storing the maximum value; A first selection processing means for discarding the target data when the target data is equal to or more than the average value; and selecting a minimum value for storing the minimum value when the target data is larger than the average value. Performing a process, when the target data is equal to or less than the average value, a second selection processing unit for discarding the target data, and whether the most recent process was the selection process of the maximum value by the first selection processing unit, or Storage means for storing whether the minimum value was selected by the second processing selection means; and for each target data, whether the most recent processing was the maximum value selection processing with reference to the storage means. Alternatively, it is determined whether or not the minimum value has been selected. If the most recent process was the maximum value selection process, the target data is set to the second value.
Switching processing for causing the first selection processing means to process the target data when the most recent processing is the selection processing of the minimum value, the processing being performed by the selection processing means. Compression device.
【請求項2】 前記時系列データは市況データであり、
前記対象データは、時間データの他に、少なくとも、始
値、高値、安値及び終値を含む複数のフィールドを有す
るレコードであることを特徴とする請求項1記載の時系
列データ圧縮装置。
2. The time-series data is market data.
2. The time-series data compression device according to claim 1, wherein the target data is a record having at least a plurality of fields including an opening price, a high price, a low price, and a closing price in addition to the time data.
【請求項3】 前記最大値は高値であり、前記最小値は
安値であり、前記平均値は終値の平均値であることを特
徴とする請求項2記載の時系列データ圧縮装置。
3. The time-series data compression device according to claim 2, wherein the maximum value is a high value, the minimum value is a low value, and the average value is an average value of closing prices.
【請求項4】 前記Nの値は3〜10の何れかであるこ
とを特徴とする請求項1、2又は3記載の時系列データ
圧縮装置。
4. The time-series data compression device according to claim 1, wherein the value of N is any one of 3 to 10.
【請求項5】 前記最大値の選択処理及び前記最小値の
選択処理により選択された最大値及び最小値を順次、直
線で結んだ折線グラフとして表示手段に表示する表示制
御手段を具備することを特徴とする請求項1、2、3又
は4記載の時系列データ圧縮装置。
5. A display control means for displaying, on a display means, a maximum value and a minimum value selected by the maximum value selection processing and the minimum value selection processing sequentially as a line graph connected by straight lines. The time-series data compression device according to claim 1, 2, 3, or 4, wherein:
【請求項6】 時系列データの中から、順次、処理の対
象となる対象データを参照して必要とする対象データを
選択し、他の対象データを破棄することによりデータを
圧縮する時系列データ圧縮方法であって、 各対象データ毎に、当該対象データを含む、過去の直近
のN(但し、Nは整数)個の対象データを参照して、そ
のN個の対象データの中から、最大値と、最小値と、平
均値とを算出する前処理工程と、 対象データについて、当該対象データが前記平均値より
小さいときには、前記最大値を記憶する最大値の選択処
理を行い、当該対象データが前記平均値以上のときに
は、当該対象データを破棄処理する第1選択処理工程
と、 対象データについて、当該対象データが前記平均値より
大きいときには、前記最小値を記憶する最小値の選択処
理を行い、当該対象データが前記平均値以下のときに
は、当該対象データを破棄処理する第2選択処理工程
と、 直近の処理が第1選択処理工程による前記最大値の選択
処理であったのか或いは第2処理選択工程による前記最
小値の選択処理であったのかを記憶する記憶工程と、 各対象データ毎に、前記記憶手段を参照して直近の処理
が前記最大値の選択処理であったのか或いは前記最小値
の選択処理であったのかを判断し、直近の処理が最大値
の選択処理であったときには当該対象データを前記第2
選択処理工程で処理させ、また直近の処理が最小値の選
択処理であったときには、当該対象データを前記第1選
択処理工程で処理させる切換工程と、 を具備することを特徴とする時系列データ圧縮方法。
6. Time-series data for compressing data by sequentially selecting necessary target data from time-series data by referring to target data to be processed and discarding other target data. A compression method, wherein for each target data, the latest N (where N is an integer) target data including the target data is referred to, and a maximum of the N target data is selected from among the N target data. Value, a minimum value, a pre-processing step of calculating an average value, and, for the target data, when the target data is smaller than the average value, performing a selection process of a maximum value for storing the maximum value; A first selection processing step of discarding the target data when is equal to or more than the average value; and selecting a minimum value for storing the minimum value when the target data is larger than the average value. Performing a process, when the target data is equal to or less than the average value, a second selection processing step of discarding the target data, and whether the most recent processing was the selection processing of the maximum value by the first selection processing step, or A storage step of storing whether or not the minimum value was selected in the second processing selection step; and for each target data, whether or not the most recent processing was the maximum value selection processing with reference to the storage means. Alternatively, it is determined whether or not the minimum value has been selected. If the most recent process was the maximum value selection process, the target data is set to the second value.
A switching step of causing the selected data to be processed in the selection processing step and, if the most recent processing is the selection processing of the minimum value, processing the target data in the first selection processing step. Compression method.
【請求項7】 前記最大値の選択処理及び前記最小値の
選択処理により選択された最大値及び最小値を順次、直
線で結んだ折線グラフとして表示する工程を具備するこ
とを特徴とする請求項6記載の時系列データ圧縮方法。
7. The method according to claim 1, further comprising the step of sequentially displaying the maximum value and the minimum value selected by the maximum value selection process and the minimum value selection process as a line graph connected by straight lines. 6. The time-series data compression method according to 6.
JP2000238438A 2000-08-07 2000-08-07 Time series data compression device Expired - Lifetime JP3573072B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000238438A JP3573072B2 (en) 2000-08-07 2000-08-07 Time series data compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000238438A JP3573072B2 (en) 2000-08-07 2000-08-07 Time series data compression device

Publications (2)

Publication Number Publication Date
JP2002049747A true JP2002049747A (en) 2002-02-15
JP3573072B2 JP3573072B2 (en) 2004-10-06

Family

ID=18730136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000238438A Expired - Lifetime JP3573072B2 (en) 2000-08-07 2000-08-07 Time series data compression device

Country Status (1)

Country Link
JP (1) JP3573072B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007148731A1 (en) * 2006-06-22 2007-12-27 Konami Digital Entertainment Co., Ltd. Line shape processing device, line shape processing method, information recording medium, and program
JP2011010124A (en) * 2009-06-26 2011-01-13 Nomura Research Institute Ltd Market data compression system and program
US10725984B2 (en) 2012-03-16 2020-07-28 Nec Corporation Time series data device, time series data processing method and time series data processing program storage medium
CN115268831A (en) * 2022-09-22 2022-11-01 北京中科心研科技有限公司 Floating point data compression method and device, wearable intelligent device and storage medium
US11928761B2 (en) 2021-09-30 2024-03-12 Futu Network Technology (Shenzhen) Co., Ltd Method for identifying K-line form and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3016058A1 (en) 2014-10-31 2016-05-04 Chicago Mercantile Exchange, Inc. Generating a blended fx portfolio

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007148731A1 (en) * 2006-06-22 2007-12-27 Konami Digital Entertainment Co., Ltd. Line shape processing device, line shape processing method, information recording medium, and program
US8244073B2 (en) 2006-06-22 2012-08-14 Konami Digital Entertainment Co. Ltd. Line shape processing device, line shape processing method, information recording medium, and program
JP2011010124A (en) * 2009-06-26 2011-01-13 Nomura Research Institute Ltd Market data compression system and program
US10725984B2 (en) 2012-03-16 2020-07-28 Nec Corporation Time series data device, time series data processing method and time series data processing program storage medium
US11928761B2 (en) 2021-09-30 2024-03-12 Futu Network Technology (Shenzhen) Co., Ltd Method for identifying K-line form and electronic device
CN115268831A (en) * 2022-09-22 2022-11-01 北京中科心研科技有限公司 Floating point data compression method and device, wearable intelligent device and storage medium
CN115268831B (en) * 2022-09-22 2022-12-20 北京中科心研科技有限公司 Floating point data compression method and device, wearable intelligent device and storage medium

Also Published As

Publication number Publication date
JP3573072B2 (en) 2004-10-06

Similar Documents

Publication Publication Date Title
JP7303728B2 (en) SYSTEM AND METHOD FOR DETECTING MANIPULATION IN BINARY OPTION TRADING
US8417712B2 (en) Image querying with relevance-relative scaling
JP4247186B2 (en) Stock trading support equipment
US20090259599A1 (en) Method and apparatus for analyzing individual and comparative returns on assets
US20170032128A1 (en) Processing Method for Fuzzy Checking Securities Information
WO2008060900A2 (en) Systems and methods for dynamic display of orders
US20230186336A1 (en) Intra-time-period resolution value data generation, storage, display, method, and device
TWI540529B (en) Processing method for securities information
JPH09319829A (en) Online character recognition device
JP3573072B2 (en) Time series data compression device
EP1237102A1 (en) Security exchange assisting system and security exchange assisting method, and computer-readable recorded medium where program is recorded
US20230056125A1 (en) Price range symbol intra-body fill area, data structure generation, storage, display, system, method, and device
CN110796505B (en) Business object recommendation method and device
JP2008262519A (en) Method and system for extracting and displaying stock
US20220051457A1 (en) Intra-period technical indicator data generation, storage, display, system, method, and device
US11538111B2 (en) Price range summary symbol display system, method, and device
US11132762B2 (en) Content aware image fitting
US20210319484A1 (en) Price range estimate symbol display system, method, and device
CN115859907B (en) Reading annotation zoom display method, system and readable storage medium
JP2000200197A (en) Knowledge storage/selection method, knowledge storage/ selection device and storage medium recording knowledge storage/selection program
CN114240653A (en) Noble metal pairing transaction method, device, equipment and readable storage medium
US11514486B2 (en) Price range symbol indicator integration display system, method, and device
TWI604400B (en) A processing method for fuzzy checking securities information
JP2003085381A (en) Search and display system for market information and search and display method for market information
US10755458B1 (en) Candlestick chart display system, method, and device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040312

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040511

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040621

R150 Certificate of patent or registration of utility model

Ref document number: 3573072

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110709

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120709

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term