JP2018067256A - Transaction device, transaction program, and transaction method - Google Patents

Transaction device, transaction program, and transaction method Download PDF

Info

Publication number
JP2018067256A
JP2018067256A JP2016207121A JP2016207121A JP2018067256A JP 2018067256 A JP2018067256 A JP 2018067256A JP 2016207121 A JP2016207121 A JP 2016207121A JP 2016207121 A JP2016207121 A JP 2016207121A JP 2018067256 A JP2018067256 A JP 2018067256A
Authority
JP
Japan
Prior art keywords
price
order
market price
range
market
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
JP2016207121A
Other languages
Japanese (ja)
Other versions
JP6832127B2 (en
Inventor
茂紀 河野
Shigenori Kono
茂紀 河野
福島 勝
Masaru Fukushima
勝 福島
晃司 土田
Koji Tsuchida
晃司 土田
由美 小田
Yumi Oda
由美 小田
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.)
Ueda Harlow Ltd
Original Assignee
Ueda Harlow 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 Ueda Harlow Ltd filed Critical Ueda Harlow Ltd
Priority to JP2016207121A priority Critical patent/JP6832127B2/en
Publication of JP2018067256A publication Critical patent/JP2018067256A/en
Application granted granted Critical
Publication of JP6832127B2 publication Critical patent/JP6832127B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a transaction device for performing transactions by detecting that a market price of a financial product varies in a direction assumed by an investor.SOLUTION: A transaction device 11 comprises: a condition acquisition part for acquiring a determined time width and a determined price width related to a market price of a financial product; a past price acquisition part for acquiring a range of the market price of the financial product in past time in a range of the determined time width acquired by the condition acquisition part; a market price acquisition part for successively acquiring the market price of the financial product; and a contract part for, when a first market price acquired by the market price acquisition part is higher than the determined price width acquired by the condition acquisition part from the range acquired by the past price acquisition part, contracting for buying position acquisition.SELECTED DRAWING: Figure 1

Description

本発明は、取引装置、取引プログラムおよび取引方法に関する。   The present invention relates to a transaction apparatus, a transaction program, and a transaction method.

投資家のコンピュータと金融商品取引業者のコンピュータとを通信回線で接続し、投資家がオンラインで金融商品の取引を行うことが可能なオンライン取引システムが使用されている。金融商品の取引に関する指標を時々刻々と算出して、投資家のコンピュータに表示させることにより、投資家の判断を支援する指標値算出装置が提案されている(特許文献1)。   An online transaction system is used in which an investor's computer and a financial product trader's computer are connected via a communication line so that the investor can trade financial products online. There has been proposed an index value calculation device that supports an investor's judgment by calculating an index related to a transaction of a financial product every moment and displaying the index on the investor's computer (Patent Document 1).

特開2014−102589号公報JP 2014-102589 A

金融商品の市場価格は常に変動しているので、取引を行うタイミングが損益に大きく影響する。しかしながら、一般投資家の場合には金融商品の取引が本業ではないため、市場価格を常に監視して有利な取引を行うことは難しい。   Since the market price of financial products is constantly changing, the timing of transactions has a major impact on profit and loss. However, in the case of general investors, since trading of financial products is not the main business, it is difficult to conduct advantageous trading by constantly monitoring market prices.

一つの側面では、金融商品の市場価格が投資家の想定している方向に変動したことを検出して、取引を行う取引装置等を提供することを目的とする。   In one aspect, an object of the present invention is to provide a transaction apparatus or the like for performing a transaction by detecting that the market price of a financial product has fluctuated in a direction assumed by an investor.

取引装置は、金融商品の市場価格に関する判定時間幅と判定価格幅とを取得する条件取得部と、前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、金融商品の市場価格を逐次取得する市場価格取得部と、前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に高い場合に、買いポジション取得の約定を行う約定部とを備える。   The transaction apparatus includes a condition acquisition unit that acquires a determination time width and a determination price range related to a market price of a financial product, and a market price range of the financial product in a past time range of the determination time width acquired by the condition acquisition unit A market price acquisition unit that sequentially acquires the market price of a financial product, and the first market price acquired by the market price acquisition unit is within the range acquired by the past price acquisition unit. And an execution unit for executing an acquisition of a buy position when the acquisition unit is higher than the determination price range acquired.

取引装置は、金融商品の市場価格に関する判定時間幅と判定価格幅とを取得する条件取得部と、前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、金融商品の市場価格を逐次取得する市場価格取得部と、前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に安い場合に、売りポジション取得の約定を行う約定部とを備える。   The transaction apparatus includes a condition acquisition unit that acquires a determination time width and a determination price range related to a market price of a financial product, and a market price range of the financial product in a past time range of the determination time width acquired by the condition acquisition unit A market price acquisition unit that sequentially acquires the market price of a financial product, and the first market price acquired by the market price acquisition unit is within the range acquired by the past price acquisition unit. A contracting unit that executes a contract for acquiring a selling position when the acquiring unit is cheaper than the determination price range acquired.

一つの側面では、金融商品の市場価格が投資家の想定している方向に変動したことを検出して、取引を行う取引装置等を提供することが可能となる。   In one aspect, it is possible to provide a transaction apparatus or the like for performing a transaction by detecting that the market price of a financial product has fluctuated in a direction assumed by an investor.

取引システムの構成を示す説明図である。It is explanatory drawing which shows the structure of a transaction system. レートDBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of rate DB. デルタTDBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of delta TDB. HLDBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of HLDB. 投資家情報DBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of investor information DB. 受注DBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of order DB. 発注DBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of order DB. ポジションDBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of position DB. 投資家クライアントの入力画面例を示す説明図である。It is explanatory drawing which shows the example of an input screen of an investor client. デルタ注文による新規注文を説明する説明図である。It is explanatory drawing explaining the new order by a delta order. 相対トリガトレール注文による決済注文を説明する説明図である。It is explanatory drawing explaining the settlement order by a relative trigger trail order. 受注DBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of order DB. 発注DBのレコードレイアウトを示す説明図である。It is explanatory drawing which shows the record layout of order DB. レート記録サーバのプログラムの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the program of a rate recording server. 投資家サーバのプログラムの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the program of an investor server. 注文受付サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of an order reception subroutine. 証拠金確認サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a margin confirmation subroutine. 発注証拠金更新サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of an order margin update subroutine. 合計発注証拠金算出サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a total order margin calculation subroutine. ポジション取得サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a position acquisition subroutine. デルタ判定のサブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the subroutine of delta determination. ポジション決済サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a position settlement subroutine. ストップトリガ判定サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a stop trigger determination subroutine. 相対トリガトレール判定サブルーチンの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of a relative trigger trail determination subroutine. 実施の形態2のデルタ注文による新規注文を説明する説明図である。It is explanatory drawing explaining the new order by the delta order of Embodiment 2. FIG. 実施の形態2のデルタ判定のサブルーチンの処理の流れを示すフローチャートである。10 is a flowchart showing a flow of processing of a delta determination subroutine of the second embodiment. 実施の形態3の投資家クライアントの入力画面例を示す説明図である。10 is an explanatory diagram illustrating an example of an input screen of an investor client according to Embodiment 3. FIG. 実施の形態3のデルタトレール注文による新規注文を説明する説明図である。FIG. 10 is an explanatory diagram for explaining a new order by a delta trail order according to the third embodiment. 実施の形態3のポジション取得サブルーチンの処理の流れを示すフローチャートである。14 is a flowchart showing a flow of processing of a position acquisition subroutine of the third embodiment. 実施の形態4のポジション取得サブルーチンの処理の流れを示すフローチャートである。15 is a flowchart illustrating a flow of processing of a position acquisition subroutine according to the fourth embodiment. 実施の形態5の取引装置の動作を示す機能ブロック図である。It is a functional block diagram which shows operation | movement of the transaction apparatus of Embodiment 5. 実施の形態6の取引システムの構成を示す説明図である。It is explanatory drawing which shows the structure of the transaction system of Embodiment 6.

[実施の形態1]
図1は、取引システム10の構成を示す説明図である。取引システム10は、時々刻々と価格が変動する金融商品の取引を行う際に使用されるシステムである。本実施の形態においては、外国為替証拠金取引を行う際に使用する取引システム10を例にして説明する。株式取引、先物取引等においても、同様のシステムを使用することが可能である。
[Embodiment 1]
FIG. 1 is an explanatory diagram showing the configuration of the transaction system 10. The trading system 10 is a system that is used when trading a financial product whose price fluctuates every moment. In the present embodiment, a transaction system 10 used when conducting a foreign exchange margin transaction will be described as an example. The same system can be used for stock transactions, futures transactions, and the like.

取引システム10は、投資家サーバ11、レート記録サーバ21、投資家クライアント31、金融機関サーバ32およびこれらを相互に接続するネットワークを含む。   The trading system 10 includes an investor server 11, a rate recording server 21, an investor client 31, a financial institution server 32, and a network that interconnects them.

投資家クライアント31は、投資家がオンライン取引に使用するパソコン、タブレットまたはスマートフォン等の情報処理装置である。投資家クライアント31のハードウェア構成については説明を省略する。   The investor client 31 is an information processing device such as a personal computer, a tablet, or a smartphone that the investor uses for online transactions. Description of the hardware configuration of the investor client 31 is omitted.

金融機関サーバ32は、インターバンク市場に参加する銀行等が使用する情報処理装置である。金融機関サーバ32は、為替レートの市場価格を1秒間に10回から100回程度の頻度でネットワークを介して提示する。金融機関サーバ32のハードウェア構成については説明を省略する。   The financial institution server 32 is an information processing apparatus used by banks or the like participating in the interbank market. The financial institution server 32 presents the market price of the exchange rate via the network at a frequency of about 10 to 100 times per second. Description of the hardware configuration of the financial institution server 32 is omitted.

なお、インターバンク市場においては、市場参加者がそれぞれ市場価格を提示して取引を行う。インターバンク市場の参加者は、信用度が高く、多額の外貨を取引する大手銀行に限定されている。一方、外国為替証拠金取引はインターバンク市場で形成されている市場価格に準じる為替レートに基づいて取引される。   In the interbank market, each market participant carries out a transaction by presenting a market price. Participants in the interbank market are limited to large banks with high creditworthiness and large amounts of foreign currency. On the other hand, foreign exchange margin trading is conducted based on the exchange rate according to the market price formed in the interbank market.

投資家サーバ11は、金融商品取引業者が管理および運用を行う情報処理装置である。投資家サーバ11は、投資家クライアント31からオンラインで受信した金融商品の取引を処理する情報処理装置である。本実施の形態においては、金融商品取引業者は、顧客である個々の投資家に対して、1つの投資家サーバ11を使用する。投資家サーバ11は、本実施の形態の取引装置の一例である。   The investor server 11 is an information processing apparatus that is managed and operated by a financial product trader. The investor server 11 is an information processing device that processes transactions of financial products received online from the investor client 31. In the present embodiment, the financial product trader uses one investor server 11 for each investor who is a customer. Investor server 11 is an example of a transaction apparatus according to the present embodiment.

レート記録サーバ21は、金融商品取引業者が管理および運用を行う情報処理装置である。レート記録サーバ21は、金融機関サーバ32から提示された市場価格を記録および処理し、投資家サーバ11に提供する情報処理装置である。   The rate recording server 21 is an information processing apparatus that is managed and operated by a financial product trader. The rate recording server 21 is an information processing device that records and processes the market price presented from the financial institution server 32 and provides it to the investor server 11.

投資家サーバ11は、CPU(Central Processing Unit)12、主記憶装置13、補助記憶装置14、通信部15およびバスを備える。   The investor server 11 includes a CPU (Central Processing Unit) 12, a main storage device 13, an auxiliary storage device 14, a communication unit 15, and a bus.

CPU12は、本発明に係るプログラムを実行する演算制御装置である。CPU12には、一または複数のCPUまたはマルチコアCPU等が使用される。CPU12は、バスを介して投資家サーバ11を構成するハードウェア各部と接続されている。   The CPU 12 is an arithmetic control device that executes a program according to the present invention. As the CPU 12, one or a plurality of CPUs or a multi-core CPU is used. The CPU 12 is connected to each hardware part constituting the investor server 11 via a bus.

主記憶装置13は、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)、フラッシュメモリ等の記憶装置である。主記憶装置13には、CPU12が行う処理の途中で必要な情報およびCPU12で実行中のプログラムが一時的に保存される。   The main storage device 13 is a storage device such as an SRAM (Static Random Access Memory), a DRAM (Dynamic Random Access Memory), or a flash memory. The main storage device 13 temporarily stores information necessary during processing performed by the CPU 12 and a program being executed by the CPU 12.

補助記憶装置14は、SRAM、フラッシュメモリ、ハードディスクまたは磁気テープ等の記憶装置である。補助記憶装置14には、CPU12に実行させるプログラム、投資家情報DB(Database)51、受注DB52、発注DB53、ポジションDB54、およびプログラムの実行に必要な各種データが保存される。通信部15は、投資家サーバ11とネットワークとの間の通信を行うインターフェイスである。   The auxiliary storage device 14 is a storage device such as an SRAM, a flash memory, a hard disk, or a magnetic tape. The auxiliary storage device 14 stores a program to be executed by the CPU 12, an investor information DB (Database) 51, an order DB 52, an order DB 53, a position DB 54, and various data necessary for executing the program. The communication unit 15 is an interface that performs communication between the investor server 11 and the network.

本実施の形態の投資家サーバ11は、汎用のパーソナルコンピュータ、大型計算機等の情報機器等である。また、本実施の形態の投資家サーバ11は、大型計算機上で動作する仮想マシンでも良い。投資家情報DB51、受注DB52、発注DB53およびポジションDB54は、投資家サーバ11の外部に設置された大容量記憶装置等に記憶されていても良い。   The investor server 11 of the present embodiment is an information device such as a general-purpose personal computer or a large computer. The investor server 11 of the present embodiment may be a virtual machine that operates on a large computer. The investor information DB 51, the order DB 52, the order DB 53, and the position DB 54 may be stored in a large-capacity storage device or the like installed outside the investor server 11.

レート記録サーバ21は、レート記録CPU22、主記憶装置23、補助記憶装置24、通信部25およびバスを備える。   The rate recording server 21 includes a rate recording CPU 22, a main storage device 23, an auxiliary storage device 24, a communication unit 25, and a bus.

レート記録CPU22は、本発明に係るプログラムを実行する演算制御装置である。レート記録CPU22には、一または複数のCPUまたはマルチコアCPU等が使用される
。レート記録CPU22は、バスを介してレート記録21を構成するハードウェア各部と接続されている。
The rate recording CPU 22 is an arithmetic control device that executes a program according to the present invention. As the rate recording CPU 22, one or a plurality of CPUs, a multi-core CPU, or the like is used. The rate recording CPU 22 is connected to each part of the hardware constituting the rate recording 21 via a bus.

主記憶装置23は、SRAM、DRAM、フラッシュメモリ等の記憶装置である。主記憶装置23には、レート記録CPU22が行う処理の途中で必要な情報およびレート記録CPU22で実行中のプログラムが一時的に保存される。   The main storage device 23 is a storage device such as SRAM, DRAM, or flash memory. The main storage device 23 temporarily stores information necessary during the processing performed by the rate recording CPU 22 and a program being executed by the rate recording CPU 22.

補助記憶装置24は、SRAM、フラッシュメモリ、ハードディスクまたは磁気テープ等の記憶装置である。補助記憶装置24には、レート記録CPU22に実行させるプログラム、レートDB41、HLDB43、デルタTDB42、およびプログラムの実行に必要な各種データが保存される。通信部25は、レート記録サーバ21とネットワークとの間の通信を行うインターフェイスである。   The auxiliary storage device 24 is a storage device such as an SRAM, a flash memory, a hard disk, or a magnetic tape. The auxiliary storage device 24 stores a program to be executed by the rate recording CPU 22, a rate DB 41, an HLDB 43, a delta TDB 42, and various data necessary for executing the program. The communication unit 25 is an interface that performs communication between the rate recording server 21 and the network.

本実施の形態のレート記録サーバ21は、汎用のパーソナルコンピュータ、大型計算機等の情報機器等である。また、本実施の形態のレート記録サーバ21は、大型計算機上で動作する仮想マシンでも良い。レートDB41、HLDB43およびデルタTDB42は、レート記録サーバ21の外部に設置された大容量記憶装置等に記憶されていても良い。   The rate recording server 21 of the present embodiment is an information device such as a general-purpose personal computer or a large computer. Further, the rate recording server 21 of the present embodiment may be a virtual machine that operates on a large computer. The rate DB 41, the HLDB 43, and the delta TDB 42 may be stored in a mass storage device or the like installed outside the rate recording server 21.

図2は、レートDB41のレコードレイアウトを示す説明図である。レートDB41は、通貨ペアごとの売値および買値の市場価格とタイムスタンプとを関連づけるDBである。レートDB41は、通貨ペアフィールド、売レートフィールド、買レートフィールドおよびタイムスタンプフィールドを有する。   FIG. 2 is an explanatory diagram showing a record layout of the rate DB 41. The rate DB 41 is a DB that associates the market price and the time stamp of the selling price and the buying price for each currency pair. The rate DB 41 has a currency pair field, a sell rate field, a buy rate field, and a time stamp field.

通貨ペアフィールドには、外国為替取引を行う二つの通貨の組合せが記録されている。たとえば「USD/JPY」は、米ドルと日本円との組合せを示す。同様に、「EUR」はユーロ、「GBP」は、英ポンド、「AUD」は、オーストラリアドルを示す。   In the currency pair field, a combination of two currencies for foreign exchange transactions is recorded. For example, “USD / JPY” indicates a combination of US dollar and Japanese yen. Similarly, “EUR” indicates the euro, “GBP” indicates the British pound, and “AUD” indicates the Australian dollar.

売レートフィールドには、投資家が通貨ペアフィールドに記録された通貨ペアのうちの、前側の通貨を後側の通貨で購入する際の市場価格が記録されている。買レートフィールドには、投資家が通貨ペアフィールドに記録された通貨ペアのうちの、前側の通貨を後側の通貨で売却する際の市場価格が記録されている。   In the selling rate field, the market price when the investor purchases the front currency in the rear currency among the currency pairs recorded in the currency pair field is recorded. In the buy rate field, the market price when the investor sells the front currency in the back currency among the currency pairs recorded in the currency pair field is recorded.

タイムスタンプフィールドには、市場価格をレートDB41に記録した日時が記録されている。タイムスタンプフィールドの前半は日付、後半は時刻を示す。時刻の小数点以下の3桁は、ミリ秒単位の時刻を示す。レートDB41は、一組の通貨ペアについて1つのフィールドを有する。   In the time stamp field, the date and time when the market price is recorded in the rate DB 41 is recorded. The first half of the time stamp field indicates the date, and the second half indicates the time. Three digits after the decimal point of the time indicate the time in milliseconds. The rate DB 41 has one field for one currency pair.

具体例を挙げて説明する。図2に示すレートDB41の1行目は、米ドルを売却したい投資家に対しては1ドル100.096円のレートが、米ドルを購入したい投資家に対しては1ドル100.104円のレートが、それぞれタイムスタンプに示す日時に提示されたことを示す。   A specific example will be described. The first line of the rate DB 41 shown in FIG. 2 shows a rate of US $ 10.00.096 for investors who want to sell US dollars, and a rate of US $ 1.100.104 for investors who want to buy US dollars. Are presented at the date and time indicated in the time stamp.

レート記録CPU22は、金融機関サーバ32から提示された市場価格を受信するたびに、該当する通貨ペアのレコードを更新する。すなわち、レートDB41には、その時点で最新の市場価格が記録されている。レート記録サーバ21は、一つの金融機関サーバ32から提示される市場価格を受信してレートDB41に記録しても良いし、複数の金融機関サーバ32から提示される市場価格を受信してレートDB41に記録しても良い。   Each time the rate recording CPU 22 receives a market price presented from the financial institution server 32, the rate recording CPU 22 updates the record of the corresponding currency pair. That is, the latest DB price is recorded in the rate DB 41 at that time. The rate recording server 21 may receive the market price presented from one financial institution server 32 and record it in the rate DB 41, or may receive the market price presented from a plurality of financial institution servers 32 and receive the rate DB 41. May be recorded.

レート記録サーバ21は、他の金融商品取引業者から提示される為替レートをレートDB41に記録しても良い。また、レート記録サーバ21は、インターバンク市場の市場価
格に基づいて自社の為替ディーラが判断した市場価格を記録しても良い。
The rate recording server 21 may record the exchange rate presented by other financial product traders in the rate DB 41. Further, the rate recording server 21 may record the market price determined by its own exchange dealer based on the market price of the interbank market.

図3は、デルタTDB42のレコードレイアウトを示す説明図である。デルタTDB42は、番号と判定時間幅ΔTとを関連づけるDBである。デルタTDB42は番号フィールドとΔTフィールドとを有する。番号フィールドには、1から連番で番号が記録されている。ΔTフィールドには、判定時間幅ΔTが記録されている。デルタTDB42は、一つの番号について1つのレコードを有する。デルタTDB42は、次に説明するHLDB43を作成する際に使用されるDBである。   FIG. 3 is an explanatory diagram showing a record layout of the delta TDB 42. The delta TDB 42 is a DB that associates a number with a determination time width ΔT. The delta TDB 42 has a number field and a ΔT field. In the number field, numbers are recorded from 1 in order. In the ΔT field, a determination time width ΔT is recorded. The delta TDB 42 has one record for one number. The delta TDB 42 is a DB used when creating the HLDB 43 described below.

図4は、HLDB43のレコードレイアウトを示す説明図である。HLDB43は、タイムスタンプ、その時点の市場価格と、判定時間幅ΔT内の過去の最低市場価格Lおよび最高市場価格Hとを関連づけるDBである。HLDB43は、通貨ペアフィールド、売買フィールド、タイムスタンプフィールド、市場価格フィールド、ΔT=10秒フィールド、ΔT=30秒フィールドを有する。ΔT=10秒フィールドおよびΔT=30秒フィールドは、それぞれLフィールドおよびHフィールドを有する。HLDB43は、後述するデルタ注文を行う際に使用されるDBである。   FIG. 4 is an explanatory diagram showing a record layout of the HLDB 43. The HLDB 43 is a DB that associates the time stamp, the current market price, and the past minimum market price L and maximum market price H within the determination time width ΔT. The HLDB 43 has a currency pair field, a trading field, a time stamp field, a market price field, a ΔT = 10 second field, and a ΔT = 30 second field. The ΔT = 10 second field and the ΔT = 30 second field have an L field and an H field, respectively. The HLDB 43 is a DB used when placing a delta order described later.

通貨ペアフィールドには、外国為替取引を行う二つの通貨の組合せが記録されている。売買フィールドには、「売」または「買」の別が記録されている。タイムスタンプフィールドには、タイムスタンプが記録されている。市場価格フィールドには、通貨ペアフィールドおよび売買フィールドに記録された為替取引に関する市場価格が記録されている。   In the currency pair field, a combination of two currencies for foreign exchange transactions is recorded. In the trading field, “selling” or “buying” is recorded. A time stamp is recorded in the time stamp field. In the market price field, the market price related to the exchange transaction recorded in the currency pair field and the buying and selling field is recorded.

ΔT=10秒フィールドのLフィールドには、タイムスタンプの時点から過去10秒間で最も安い市場価格が記録されている。ΔT=10秒フィールドのHフィールドには、タイムスタンプの時点から過去10秒間で最も高い市場価格が記録されている。ΔT=30秒フィールドのLフィールドには、タイムスタンプの時点から過去30秒間で最も安い市場価格が記録されている。ΔT=30秒フィールドのHフィールドには、タイムスタンプの時点から過去30秒間で最も高い市場価格が記録されている。   In the L field of ΔT = 10 seconds field, the cheapest market price in the past 10 seconds from the time stamp is recorded. In the H field of ΔT = 10 seconds field, the highest market price is recorded in the past 10 seconds from the time stamp. In the L field of ΔT = 30 seconds field, the cheapest market price in the past 30 seconds from the time stamp is recorded. In the H field of ΔT = 30 seconds field, the highest market price is recorded in the past 30 seconds from the time stamp.

なお、図4ではΔT=10秒フィールドおよびΔT=30秒フィールド以外は記載を省略するが、HLDB43は図3を使用して説明したデルタTDB42のΔTフィールドに記録されたそれぞれの判定時間幅ΔTに対応するフィールドを有する。それぞれのフィールドは、ΔT=10秒フィールドと同様にLフィールドおよびHフィールドを有する。HLDB43は、一つのタイムスタンプについて一つのレコードを有する。   In FIG. 4, description is omitted except for the ΔT = 10 second field and the ΔT = 30 second field, but the HLDB 43 has the determination time width ΔT recorded in the ΔT field of the delta TDB 42 described with reference to FIG. 3. Has a corresponding field. Each field has an L field and an H field similar to the ΔT = 10 second field. The HLDB 43 has one record for one time stamp.

具体例を挙げて説明する。図4の上から2レコード目の、タイムスタンプが「2016/09/05 10:00:00.005」時点から過去10秒間の最高の市場価格は100.200円である。上から3レコード目の、タイムスタンプが「2016/09/05 10:00:00.040」の時点の市場価格は、100.280円である。そのため、このレコードの時点から過去10秒間の最高の市場価格は100.280円であり、ΔT=10秒フィールドのHフィールドに「100.280」が記録される。   A specific example will be described. The highest market price of the second record from the top of FIG. 4 for the past 10 seconds since the time stamp is “2016/09/05 10: 00: 0.0005” is 100.200 yen. The market price at the time when the time stamp of the third record from the top is “2016/09/05 10: 00: 0.0040” is 100.280 yen. Therefore, the highest market price in the past 10 seconds from the time of this record is 100.280 yen, and “100.280” is recorded in the H field of ΔT = 10 seconds field.

図5は、投資家情報DB51のレコードレイアウトを示す説明図である。投資家情報DB51は、投資家サーバ11が取引を処理する投資家に関する情報を記録するDBである。投資家情報DB51は、項目フィールドと内容フィールドとを有する。項目フィールドには、「投資家ID(IDentification)」、「氏名」、「証拠金」等の項目名が記録されている。内容フィールドには、それぞれの項目に対応する内容が記録されている。証拠金については後述する。   FIG. 5 is an explanatory diagram showing a record layout of the investor information DB 51. The investor information DB 51 is a DB that records information related to an investor for which the investor server 11 processes a transaction. The investor information DB 51 has an item field and a content field. In the item field, item names such as “investor ID (IDentification)”, “name”, and “margin” are recorded. In the content field, content corresponding to each item is recorded. The margin will be described later.

図6は、受注DB52のレコードレイアウトを示す説明図である。受注DB52は、金
融商品取引業者に注文した外国為替取引の注文番号、注文の内容および注文状況を関連づけるDBである。
FIG. 6 is an explanatory diagram showing a record layout of the order entry DB 52. The order DB 52 is a DB that associates the order number, order contents, and order status of a foreign exchange transaction ordered from a financial product trader.

受注DB52は、注文番号フィールド、通貨ペアフィールド、注文タイプフィールド、取引種別フィールド、執行条件フィールド、注文価格フィールド、トリガ値フィールド、トリガ幅フィールド、トレール幅フィールド、ΔPフィールド、ΔTフィールド、取引金額フィールド、期限フィールド、注文状況フィールド、発注証拠金フィールドおよび親注文番号フィールドを有する。   The order DB 52 includes an order number field, currency pair field, order type field, transaction type field, execution condition field, order price field, trigger value field, trigger width field, trail width field, ΔP field, ΔT field, transaction amount field, It has a due date field, an order status field, an order margin field, and a parent order number field.

注文番号フィールドには、個々の注文に固有に付与された注文番号が記録されている。通貨ペアフィールドには、注文された通貨ペアが記録されている。注文タイプフィールドには、「新規」「決済利益確定」「決済ストップ」のいずれのタイプの注文であるかが記録されている。「新規」は、投資家が新たなポジションを取得する注文を意味する。「決済利益確定」は、投資家が保有しているポジションを反対売買により決済して利益を確定する注文を意味する。「決済ストップ」は、投資家が保有しているポジションを反対売買により決済して、損切りを行うストップ注文を意味する。   In the order number field, an order number uniquely assigned to each order is recorded. In the currency pair field, the ordered currency pair is recorded. In the order type field, the type of “new”, “settlement profit settlement”, or “settlement stop” is recorded. “New” means an order in which an investor acquires a new position. “Settlement profit determination” means an order in which the position held by the investor is settled by counter-trading to determine the profit. “Settlement stop” means a stop order in which a position held by an investor is settled by counter-trading and a loss cut is made.

取引種別フィールドには、「売」または「買」のどちらの注文であるかが記録されている。「売」は売り注文を、「買」は、買い注文を意味する。執行条件フィールドには、注文を執行する際の判定条件の種類が記録されている。「デルタ」、「相対トリガトレール」および「トレール」については後述する。   The transaction type field records whether the order is “Sell” or “Buy”. “Sell” means a sell order, and “Buy” means a buy order. In the execution condition field, the type of determination condition for executing an order is recorded. “Delta”, “relative trigger trail” and “trailer” will be described later.

「指値」は、後述する注文価格フィールドに記録された価格よりも投資家にとって有利な条件であれば約定することを意味する。たとえば、買い注文である場合には、注文価格よりも市場価格が安い場合に約定する。売り注文である場合には、注文価格よりも市場価格が高い場合に約定する。   The “limit price” means that the contract is executed if it is a condition that is more advantageous to the investor than the price recorded in the order price field described later. For example, in the case of a buy order, the contract is executed when the market price is lower than the order price. In the case of a sell order, the contract is executed when the market price is higher than the order price.

「逆指値」は、後述する注文価格フィールドに記録された価格よりも投資家にとって不利な条件であれば約定することを意味する。たとえば、買い注文である場合には、注文価格よりも市場価格が高い場合に約定する。売り注文である場合には、注文価格よりも市場価格が安い場合に約定する。   The “stop price” means that a contract is made if the condition is more disadvantageous for the investor than the price recorded in the order price field described later. For example, in the case of a buy order, the contract is executed when the market price is higher than the order price. In the case of a sell order, the contract is executed when the market price is lower than the order price.

注文価格フィールドには、投資家が指定した注文価格が記録されている。注文価格フィールドに「−」が記録されている場合には、価格が未定であることを意味する。   In the order price field, the order price designated by the investor is recorded. If “−” is recorded in the order price field, it means that the price is not yet determined.

トリガ値フィールド、トリガ幅フィールド、トレール幅フィールド、ΔPフィールドおよびΔTフィールドには、執行条件が「デルタ」、「相対トリガトレール」および「トレール」である場合のパラメータが記録されている。各パラメータの詳細については後述する。   In the trigger value field, the trigger width field, the trail width field, the ΔP field, and the ΔT field, parameters when the execution conditions are “delta”, “relative trigger trail”, and “trailer” are recorded. Details of each parameter will be described later.

取引金額フィールドには、顧客が注文した取引金額が記録されている。取引金額は、通貨ペアの左側に示された通貨を使用して示す。具体的には、注文番号101は米ドルで1000ドルの注文であることを示す。   The transaction amount field ordered by the customer is recorded in the transaction amount field. The transaction amount is shown using the currency shown on the left side of the currency pair. Specifically, the order number 101 indicates that the order is 1000 US dollars.

期限フィールドには、注文の有効期限が記録されている。「GTC」は、Good Till Cancelの略であり、無期限で有効な注文を意味する。注文状況フィールドには、注文の状況が記録されている。「注文中」は投資家が指定した条件と市場価格とが合致した場合に約定する注文を示す。「待機中」は、関連する注文が約定した場合に、有効になる注文を示す。注文状況フィールドには、約定したことを示す「成立」、注文を取り消したことを示す「取消済」等も記録される。   The expiration date of the order is recorded in the expiration date field. “GTC” is an abbreviation for Good Till Cancel and means an order that is valid indefinitely. The order status field records the status of the order. “In order” indicates an order to be executed when the condition specified by the investor matches the market price. “Waiting” indicates an order that becomes valid when the associated order is executed. In the order status field, “successful” indicating that the contract has been executed, “cancelled” indicating that the order has been canceled, and the like are also recorded.

発注証拠金フィールドには、新規注文を行う際に必要な発注証拠金が記録されている。発注証拠金については後述する。なお、決済注文を行う場合には発注証拠金は不要であるので「−」が記録されている。   In the order margin field, an order margin necessary for placing a new order is recorded. The order margin will be described later. Note that when placing a settlement order, no order margin is required, so “-” is recorded.

親注文番号フィールドには、関連する新規注文の注文番号が記録されている。たとえば注文番号101は、新規注文であるので親注文は存在しない。そのため親注文番号フィールドには「−」が記録されている。注文番号102および注文番号103は、注文番号101の決済注文であるので、親注文番号フィールドに「101」が記録されている。   In the parent order number field, the order number of the related new order is recorded. For example, since the order number 101 is a new order, there is no parent order. Therefore, “-” is recorded in the parent order number field. Since the order number 102 and the order number 103 are settlement orders of the order number 101, “101” is recorded in the parent order number field.

図7は、発注DB53のレコードレイアウトを示す説明図である。発注DB53は、投資家が指定した条件と市場価格とが合致した場合に約定する外国為替取引の注文番号、注文の内容および注文状況を関連づけるDBである。   FIG. 7 is an explanatory diagram showing a record layout of the ordering DB 53. The order DB 53 is a DB for associating the order number, the order contents, and the order status of the foreign exchange transaction executed when the conditions specified by the investor match the market price.

発注DB53は、注文番号フィールド、通貨ペアフィールド、注文タイプフィールド、取引種別フィールド、執行条件フィールド、注文価格フィールド、トリガ値フィールド、トリガ幅フィールド、トレール幅フィールド、ΔPフィールド、ΔTフィールド、取引金額フィールド、期限フィールド、発注証拠金フィールドおよび親注文番号フィールドを有する。各フィールドに記録されているデータは、図6を使用して説明した受注DB52と同様であるので説明を省略する。   The order DB 53 includes an order number field, currency pair field, order type field, transaction type field, execution condition field, order price field, trigger value field, trigger width field, trail width field, ΔP field, ΔT field, transaction amount field, It has a due date field, an order margin field and a parent order number field. The data recorded in each field is the same as the order DB 52 described with reference to FIG.

図8は、ポジションDB54のレコードレイアウトを示す説明図である。ポジションDB54は、投資家が保有しているポジションの注文番号、ポジションの内容および関連注文の番号を関連づけるDBである。ポジションDB54は、注文番号フィールド、通貨ペアフィールド、取引種別フィールド、約定価格フィールド、取引金額フィールド、約定日時フィールドおよび決済注文番号フィールドを有する。決済注文番号フィールドは、利益確定フィールドとストップフィールドとを有する。   FIG. 8 is an explanatory diagram showing a record layout of the position DB 54. The position DB 54 is a DB that associates the order number of the position held by the investor, the contents of the position, and the number of the related order. The position DB 54 includes an order number field, a currency pair field, a transaction type field, a contract price field, a transaction amount field, a contract date / time field, and a settlement order number field. The settlement order number field has a profit confirmation field and a stop field.

注文番号フィールドには、個々の注文に固有に付与された注文番号が記録されている。通貨ペアフィールドには、注文された通貨ペアが記録されている。取引種別フィールドには、「売」または「買」のどちらのポジションであるかが記録されている。「売」は売り注文により取ったポジションであることを、「買」は買い注文により取ったポジションであることを意味する。   In the order number field, an order number uniquely assigned to each order is recorded. In the currency pair field, the ordered currency pair is recorded. In the transaction type field, whether the position is “Sell” or “Buy” is recorded. “Sell” means a position taken by a sell order, and “buy” means a position taken by a buy order.

約定価格フィールドには、ポジションを取った際の約定価格が記録されている。取引金額フィールドには、ポジションの取引金額が記録されている。約定日時フィールドには、ポジションが約定した日時が記録されている。利益確定フィールドには、利益確定注文の注文番号が記録されている。ストップフィールドにはストップ注文の注文番号が記録されている。   In the contract price field, the contract price when the position is taken is recorded. In the transaction amount field, the transaction amount of the position is recorded. In the execution date / time field, the date / time at which the position was executed is recorded. In the profit confirmation field, the order number of the profit confirmation order is recorded. In the stop field, the order number of the stop order is recorded.

ここで、証拠金および発注証拠金について説明する。証拠金は、投資家が金融商品取引業者に対して担保として差し入れた金銭を示す。外国為替証拠金取引では、投資家は証拠金を担保として、証拠金よりも高額の外国通貨の売りポジションまたは買いポジションを取ることができる。投資家は、保有しているポジションを反対売買により決済することにより、為替変動に応じた損益を得る。   Here, the margin and order margin will be described. The margin indicates the money that the investor has provided as collateral to the financial instrument trader. In foreign exchange margin trading, investors can take a foreign currency selling or buying position higher than the margin with margin as collateral. Investors earn profits and losses according to exchange rate fluctuations by closing their positions through counter-trading.

以下の説明では、投資家が差し入れた証拠金から、投資家が保有しているポジションを時価評価した場合の損益を差し引いた金額を、有効証拠金と呼ぶ。有効証拠金は、保有しているポジションをすべて時価で決済した場合に、投資家の手元に残る証拠金に相当する金額である。   In the following explanation, the amount obtained by subtracting the profit or loss when the market value of the position held by the investor is deducted from the margin provided by the investor is referred to as the effective margin. Effective margin is the amount corresponding to the margin remaining on the investor's hand when all positions held are settled at the market price.

同様に、投資家が保有しているポジションを取得した際の価格に対して所定の証拠金率を積算した金額を、必要証拠金と呼ぶ。投資家は、必要証拠金以上の有効証拠金を維持する必要がある。仮に有効証拠金が必要証拠金を下回った場合には、金融商品取引業者は投資家が保有しているポジションを強制的に決済する、いわゆるロスカットを行う。ロスカットにより、差し入れた証拠金以上の損失を投資家がこうむることを防止することができる。   Similarly, an amount obtained by accumulating a predetermined margin rate with respect to the price when the position held by the investor is acquired is referred to as necessary margin. Investors need to maintain effective margin above the required margin. If the effective margin falls below the required margin, the financial instrument trader performs a so-called loss cut that forcibly settles the position held by the investor. Loss cuts can prevent investors from incurring losses that exceed the margin they put in.

投資家が新たなポジションを取得した場合には、取得価格に応じて必要証拠金が増加する。仮に、有効証拠金が増加後の必要証拠金を下回った場合には、ポジションを取得した直後にロスカットが発生して投資家が損失をうける可能性がある。   When an investor acquires a new position, the required margin increases according to the acquisition price. If the effective margin falls below the required margin after the increase, a loss cut may occur immediately after the position is acquired and the investor may lose.

このような損失を避けるため、新規注文を行う場合には、約定した場合の投資家の有効証拠金が十分であるか否かを確認することが望ましい。本実施の形態においては、CPU12は、式(1)に基づいてそれぞれの新規注文に対する発注証拠金を算出し、受注DB52の発注証拠金フィールドに記録する。
発注証拠金=約定見込価格×取引金額×証拠金率 ‥‥‥ (1)
発注証拠金は、約定見込価格の為替レートで新規注文が約定した場合に増加する必要証拠金の金額である。
In order to avoid such loss, it is desirable to confirm whether the investor's effective margin is sufficient when making a new order. In the present embodiment, the CPU 12 calculates an order margin for each new order based on the formula (1), and records it in the order margin field of the order reception DB 52.
Margin for ordering = Contracted expected price x Transaction amount x Margin rate (1)
The order margin is the amount of margin required to increase when a new order is executed at the exchange rate at the contracted expected price.

投資家から新規注文を受け付けた場合には、CPU12はその新規注文に対する発注証拠金を算出する。CPU12は、受け付けた新規注文を含む未約定の注文に関する発注証拠金の合計額である合計発注証拠金を算出する。CPU12は、有効証拠金が合計発注証拠金と必要証拠金との和以上である場合には、新規注文を受け付ける。CPU12は、有効証拠金が合計発注証拠金と必要証拠金との和未満である場合には、新規注文を受け付けない。   When a new order is received from an investor, the CPU 12 calculates an order margin for the new order. The CPU 12 calculates a total order margin that is the total amount of the order margin related to an unconfirmed order including the received new order. When the effective margin is equal to or greater than the sum of the total order margin and the required margin, the CPU 12 accepts a new order. The CPU 12 does not accept a new order when the effective margin is less than the sum of the total order margin and the required margin.

以上により、CPU12は、約定した直後に必要証拠金が有効証拠金を超えてロスカットが起きる可能性の高い新規注文を防止することができる。   As described above, the CPU 12 can prevent a new order that is likely to cause a loss cut because the required margin exceeds the effective margin immediately after the contract is made.

CPU12は、投資家からの注文を受け付けた日時における市場価格を式(1)の約定見込価格に使用することができる。CPU12は、図4を使用して説明したHLDB43から最新のレコードを抽出し、任意の判定時間幅ΔTのHフィールドに記録された値を約定見込価格に使用することもできる。このようにすることにより、実際に約定した際に増加する必要証拠金が式(1)に基づいて算出した発注証拠金を大きく上回り、ロスカットが起きる可能性を低減できる。   The CPU 12 can use the market price at the date and time when the order from the investor is received as the contracted expected price of the equation (1). The CPU 12 can extract the latest record from the HLDB 43 described with reference to FIG. 4 and use the value recorded in the H field of an arbitrary determination time width ΔT as the contracted expected price. By doing in this way, the margin required to increase when the contract is actually executed greatly exceeds the order margin calculated based on the equation (1), and the possibility of loss cut can be reduced.

CPU12は、投資家からの注文を受け付けた日時における市場価格に所定の安全係数を積算した値を式(1)の約定見込価格に使用することができる。安全係数には1以上の任意の数値を使用することができる。このようにすることにより、投資家が市場価格の変動が激しい通貨ペアを発注して約定した場合に、ロスカットが起こる可能性を低減できる。   The CPU 12 can use a value obtained by adding a predetermined safety coefficient to the market price at the date and time when the order from the investor is received, as the contracted expected price of the equation (1). Any numerical value of 1 or more can be used as the safety factor. By doing so, it is possible to reduce the possibility of a loss cut when an investor orders and executes a currency pair whose market price fluctuates rapidly.

CPU12は、投資家の投資実績および保有資産等の条件、発注する通貨ペアおよび外国為替市場の状況等により、安全係数を変更しても良い。   The CPU 12 may change the safety factor according to the investment performance of the investor, conditions such as assets held, the currency pair to be ordered, the situation of the foreign exchange market, and the like.

図9は、投資家クライアント31の入力画面例を示す説明図である。投資家クライアント31は、ネットワークを介して投資家サーバ11から受信した情報に基づいてディスプレイに図9に示す入力画面を表示する。投資家クライアント31は、タッチパネル、キーボードまたはマウスなどの入力機器を介して、投資家による入力を受け付け、ネットワー
クを介して投資家サーバ11に送信する。なお、投資家サーバ11と投資家クライアント31との間の通信は、SSL(Secure Sockets Layer)等の暗号化技術により、セキュリティを確保する。
FIG. 9 is an explanatory diagram illustrating an input screen example of the investor client 31. The investor client 31 displays the input screen shown in FIG. 9 on the display based on the information received from the investor server 11 via the network. The investor client 31 receives input from the investor via an input device such as a touch panel, a keyboard, or a mouse, and transmits the input to the investor server 11 via the network. The communication between the investor server 11 and the investor client 31 ensures security by using an encryption technology such as SSL (Secure Sockets Layer).

入力画面は、通貨ペア欄61、金額欄62、新規欄63、決済欄64および成立反復欄65を含む。新規欄63は、新規種別欄631および新規注文欄632を含む。決済欄64は、決済種別欄641、利益確定注文欄642およびストップ注文欄643を含む。なお、図9においては、選択されている項目を二重線で囲んで示す。   The input screen includes a currency pair field 61, an amount field 62, a new field 63, a settlement field 64, and an established repetition field 65. The new column 63 includes a new type column 631 and a new order column 632. The settlement column 64 includes a settlement type column 641, a profit fixed order column 642, and a stop order column 643. In FIG. 9, the selected item is surrounded by a double line.

CPU12は、通貨ペア欄61を介して、投資家が取引する通貨ペアを受け付ける。CPU12は、金額欄62を介して、投資家が取引する金額を受け付ける。CPU12は、新規種別欄631を介して、「売」または「買」のどちらの新規注文であるかを受け付ける。なお、CPU12は、決済種別欄641に新規種別欄631で受け付けた注文の反対取引が選択された状態を表示する。   The CPU 12 receives a currency pair traded by an investor via the currency pair column 61. The CPU 12 receives the amount of money that the investor trades via the amount column 62. The CPU 12 accepts whether the order is “sale” or “buy” via the new type column 631. Note that the CPU 12 displays a state in which the counter-order transaction accepted in the new type column 631 is selected in the settlement type column 641.

CPU12は、新規注文欄632を介して新規注文の執行条件およびパラメータを受け付ける。CPU12は、利益確定注文欄642を介して利益確定注文の執行条件およびパラメータを受け付ける。CPU12は、ストップ注文欄643を介してストップ注文の執行条件およびパラメータを受け付ける。   The CPU 12 accepts new order execution conditions and parameters via the new order column 632. The CPU 12 receives the execution condition and parameters of the profit fixed order via the profit fixed order column 642. The CPU 12 receives stop order execution conditions and parameters via the stop order column 643.

CPU12は、成立反復欄65を介して決済注文が約定した後に再度同じ注文を反復するか否かを受け付ける。図9において「Off」は注文の反復を行わないことを意味する。「PL+Repeat」は、決済注文が約定した際に利益が出た場合には同一条件の注文を反復し、利益が出なかった場合には反復を行わないことを意味する。   The CPU 12 accepts whether or not to repeat the same order again after the settlement order is executed via the establishment repetition column 65. In FIG. 9, “Off” means that the order is not repeated. “PL + Repeat” means that if a profit is generated when a settlement order is executed, the order under the same condition is repeated, and if no profit is generated, the repetition is not performed.

図10は、デルタ注文による新規注文を説明する説明図である。縦軸は市場価格を示す。横軸は時間を示す。黒丸は、各時間における市場価格を示す。図10を使用してデルタ注文について説明する。   FIG. 10 is an explanatory diagram for explaining a new order by a delta order. The vertical axis shows the market price. The horizontal axis indicates time. Black circles indicate the market price at each hour. The delta order will be described with reference to FIG.

市場価格は、短期的にみると不規則に変動するが、長期的にみると上昇トレンド相場と下降トレンド相場とを繰り返して周期的に変動する場合が多いことが経験的に知られている。また、トレンド相場の間では、市場価格が狭い価格帯の範囲で変動するいわゆるレンジ相場が発生する場合が多いことも経験的に知られている。   It is empirically known that the market price fluctuates irregularly in the short term, but frequently fluctuates periodically by repeating the uptrend market and the downtrend market in the long term. Moreover, it is empirically known that a so-called range market in which the market price fluctuates within a narrow price range often occurs between trend markets.

投資家は、市場価格がどのように変動するかを予測して、投資を行う。特に、レンジ相場から上昇トレンド相場に移行するタイミングで取った買いポジションを上昇トレンド相場の終了時に決済すること、およびレンジ相場から下降トレンド相場に移行するタイミングで取った売りポジションを上昇トレンド相場の終了時に決済することにより、投資家は効率良く利益を得ることができる。   An investor makes an investment by predicting how the market price will fluctuate. In particular, the purchase position taken at the time of transition from the range market to the uptrend market is settled at the end of the uptrend market, and the sell position taken at the time of transition from the range market to the downtrend market is terminated. Investors can make profits efficiently by paying from time to time.

図10において、現在時刻をtAで示す。時刻tAにおける市場価格はAである。判定時間幅ΔTの時間Tの開始時刻が時刻tS、終了時刻が時刻tEである。ここで時刻tEは、時刻tAの一つ前のタイムスタンプである。時刻tSから時刻tEまでの時間内における最低市場価格Lおよび最高市場価格Hを図10にHおよびLの記号で示す。 In FIG. 10, the current time is indicated by t A. The market price at time t A is A. The start time of time T of the determination time width ΔT is time t S and the end time is time t E. Here, time t E is a time stamp immediately before time t A. The minimum market price L and the maximum market price H within the time period from time t S to time t E are shown by symbols H and L in FIG.

図4を使用して説明したHLDB43の一つのレコードのタイムスタンプフィールドに時刻tEが、市場価格フィールドに時刻tEにおける市場場価格Eが、Lフィールドに最低市場価格Lが、Hフィールドに最高市場価格Hがそれぞれ記録されている。 The time t E in the time stamp field of one record of the HLDB 43 described with reference to FIG. 4, the market price E at the time t E in the market price field, the lowest market price L in the L field, and the highest in the H field Each market price H is recorded.

市場価格が上昇トレンド相場に入った場合には、図10に示すように、市場価格Aと最
低市場価格Lとの差が、単位判定価格幅ΔPと判定時間幅ΔTとの積である判定価格幅よりも大きくなる。CPU12は、デルタ注文の条件が満たされたと判定して、約定を行う。ここで、単位判定価格幅ΔPおよび判定時間幅ΔTは、デルタ注文に関するパラメータである。
When the market price enters an uptrend market price, as shown in FIG. 10, the judgment price in which the difference between the market price A and the minimum market price L is the product of the unit judgment price width ΔP and the judgment time width ΔT. It becomes larger than the width. The CPU 12 determines that the conditions for the delta order are satisfied, and executes the contract. Here, the unit determination price range ΔP and the determination time range ΔT are parameters related to the delta order.

以上に説明したデルタ注文について、簡単にまとめる。判定時間幅ΔTは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定する時間幅を示すパラメータである。単位判定価格幅ΔPは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定する単位時間あたりの価格幅を示すパラメータである。   A brief summary of the delta orders described above. The determination time width ΔT is a parameter indicating a time width for determining whether the market price has entered the uptrend market or the downtrend market. The unit determination price range ΔP is a parameter indicating the price range per unit time for determining whether or not the market price has entered the uptrend market or the downtrend market.

本実施の形態においては、CPU12は、市場価格Aと最低市場価格Lとの差が単位判定価格幅ΔPと判定時間幅ΔTとの積である判定価格幅を超えたことを、市場価格が上昇トレンド相場に入ったことを示す指標に使用する。同様に、CPU12は、最高市場価格Hと市場価格Aとの差が単位判定価格幅ΔPと判定時間幅ΔTとの積である判定価格幅を超えたことを、市場価格が下降トレンド相場に入ったことを示す指標に使用する。   In the present embodiment, the CPU 12 determines that the market price rises when the difference between the market price A and the minimum market price L exceeds the judgment price range that is the product of the unit judgment price range ΔP and the judgment time range ΔT. Used as an indicator of entering the trend market. Similarly, when the difference between the highest market price H and the market price A exceeds the judgment price range that is the product of the unit judgment price range ΔP and the judgment time range ΔT, the CPU 12 enters the downtrend market price. Used as an indicator to show that

図10に示すように、CPU12が、市場価格が上昇トレンド相場に入った直後である時刻tAに価格Aで買いポジションを取り、市場価格が十分に上昇した時刻tBに市場価格Bで決済することにより、価格Bと価格Aの差額に対応する利益が生じる。同様に、CPU12が、市場価格が下降トレンド相場に入った直後に売りポジションを取り、市場価格が十分に下落した後に決済することにより、売却価格と購入価格の差額に対応する利益が生じる。 As shown in FIG. 10, the CPU 12 takes a buy position at the price A at time t A immediately after the market price enters the upward trend market, and settles at the market price B at the time t B when the market price sufficiently rises. As a result, a profit corresponding to the difference between the price B and the price A is generated. Similarly, a profit corresponding to the difference between the selling price and the purchasing price is generated by the CPU 12 taking a selling position immediately after the market price enters the downtrend market and making a settlement after the market price sufficiently falls.

図10において、たとえば、tAに取得した市場価格Aは第1市場価格の一例である。このとき、tAより後に取得した市場価格は、第2市場価格の一例である。 In FIG. 10, for example, the market price A acquired at t A is an example of the first market price. At this time, the market price acquired after t A is an example of the second market price.

上昇トレンド相場が生じると予測している投資家は、デルタ注文による買い注文を指示する。市場価格の推移を投資家自身がリアルタイムで監視しなくても、上昇トレンド相場が生じた場合にはCPU12が自動的に有利なポジションを取る処理を行う。予測が外れて上昇トレンド相場が生じない場合には、CPU12は買いポジションを取る処理を行わないため、損失の発生を回避することが可能である。   An investor who expects an uptrend market will issue a buy order with a delta order. Even if the investor himself does not monitor the transition of the market price in real time, the CPU 12 automatically performs an advantageous position process when an uptrend market price occurs. When the prediction is not made and an uptrend market does not occur, the CPU 12 does not perform the process of taking a buy position, so that it is possible to avoid the occurrence of a loss.

下降トレンド相場が生じると予測している投資家は、デルタ注文による売り注文を指示する。市場価格の推移を投資家自身がリアルタイムで監視しなくても、下降トレンド相場が生じた場合にはCPU12が自動的に有利なポジションを取る処理を行う。予測が外れて下降トレンド相場が生じない場合には、CPU12は売りポジションを取る処理を行わないため、損失の発生を回避することが可能である。   An investor predicting that a downtrend will occur will direct a sell order with a delta order. Even if the investor himself does not monitor the transition of the market price in real time, when the downtrend market price occurs, the CPU 12 automatically performs a process of taking an advantageous position. If the forecast is not true and no downtrend market is generated, the CPU 12 does not perform the process of taking a selling position, so that it is possible to avoid the occurrence of a loss.

CPU12は、最小値幅単位pipsに基づいて単位判定価格幅ΔPおよび判定時間幅ΔTの入力を受け付けても良い。様々な為替ペアを扱う投資家である場合、pipsを使用することにより、外国為替の値動きを把握しやすい場合がある。   The CPU 12 may accept input of the unit determination price range ΔP and the determination time range ΔT based on the minimum value width unit pips. In the case of an investor who handles various exchange pairs, it may be easy to grasp the price movement of foreign exchange by using pips.

CPU12は、単位判定価格幅ΔPの代わりに、判定価格幅の入力を受け付けても良い。判定時間幅ΔTと、判定価格幅とを別々に考慮したい投資家の要望に対応することが可能である。   The CPU 12 may accept an input of a determination price range instead of the unit determination price range ΔP. It is possible to meet the demands of investors who want to consider the determination time width ΔT and the determination price range separately.

CPU12は、単位判定価格幅ΔPを市場価格に対する相対値により受け付けても良い。たとえば、注文入力時の市場価格、最高市場価格H、最低市場価格L、または最高市場価格Hと最低市場価格Lとの平均値のいずれかに対する5%のように定めることができる。   The CPU 12 may accept the unit determination price range ΔP as a relative value with respect to the market price. For example, it can be set to 5% of the market price at the time of order entry, the highest market price H, the lowest market price L, or the average value of the highest market price H and the lowest market price L.

図11は、相対トリガトレール注文による決済注文を説明する説明図である。縦軸は市場価格を示す。横軸は時間を示す。黒丸は、各時間における市場価格を示す。図10を使用して相対トリガトレール注文について説明する。   FIG. 11 is an explanatory diagram for explaining a settlement order by a relative trigger trail order. The vertical axis shows the market price. The horizontal axis indicates time. Black circles indicate the market price at each hour. The relative trigger trail order will be described with reference to FIG.

トレール注文は、市場価格の上昇幅、または下落幅に合わせて、逆指値注文の価格をリアルタイムで自動修正する注文方法であり、ストップ注文に利用されている。相対トリガトレール注文においては、トレール注文の初期値を相対的に定める。   The trail order is an ordering method that automatically corrects the price of the stop order in real time in accordance with the rise or fall of the market price, and is used for stop orders. In the relative trigger trail order, the initial value of the trail order is relatively determined.

時刻tAにおいて、市場価格Aで買いポジションを取った場合を例にして説明する。ここで買いポジションは、図9を使用して説明したデルタ注文を使用して取ることができる。また従来から広く使用されている指値注文または成行き注文により買いポジションを取っても良い。 The case where a buy position is taken at market price A at time t A will be described as an example. The buy position here can be taken using the delta order described with reference to FIG. Further, a buy position may be taken by a limit order or a market order that has been widely used conventionally.

CPU12は、買いポジション価格である市場価格Aに利益確定注文のトリガ幅ΔTgを加算した価格を、相対トリガトレール注文のトリガ価格Trigに設定する。CPU12は、買いポジション価格である市場価格Aからストップ注文のトレール幅ΔSを減算した価格S1をストップ注文価格に設定する。ストップ注文価格は、保有しているポジションを反対売買により決済して、損切りを行うストップ注文を実施する逆指値である。   The CPU 12 sets a price obtained by adding the trigger width ΔTg of the profit-defining order to the market price A that is the buy position price, as the trigger price Trig of the relative trigger trail order. The CPU 12 sets a price S1 obtained by subtracting the trail width ΔS of the stop order from the market price A, which is the buy position price, as the stop order price. The stop order price is a stop price at which a stop order for performing a loss cut is settled by closing a held position through counter trading.

CPU12は、市場価格を逐次取得する。時刻t23における市場価格P23からストップ注文のトレール幅ΔSを減算した価格S2が価格S1より高いので、CPU12はストップ注文価格を価格S2に変更する。同様に、時刻t24における市場価格P24からストップ注文のトレール幅ΔSを減算した価格S3が価格S2より高いので、CPU12は、時刻t24においてストップ注文価格を価格S3に変更する。   CPU12 acquires a market price sequentially. Since the price S2 obtained by subtracting the trail width ΔS of the stop order from the market price P23 at time t23 is higher than the price S1, the CPU 12 changes the stop order price to the price S2. Similarly, since the price S3 obtained by subtracting the trail width ΔS of the stop order from the market price P24 at time t24 is higher than the price S2, the CPU 12 changes the stop order price to the price S3 at time t24.

時刻t25において、CPU12は市場価格P25がトリガ価格Trigを上回ると判定する。CPU12は、市場価格P25から利益確定注文のトレール幅ΔRを減算した価格M1をトレール価格に設定する。トレール価格は、保有しているポジションを反対売買により決済して、利益を確定する逆指値注文を行う価格である。さらに時刻t25において、CPU12は、ストップ注文を取り消す。   At time t25, the CPU 12 determines that the market price P25 exceeds the trigger price Trig. The CPU 12 sets a price M1 obtained by subtracting the trail width ΔR of the profit confirmation order from the market price P25 as the trail price. The trail price is a price at which a stop order is settled by closing the position held by counter-trading and confirming profit. Further, at time t25, the CPU 12 cancels the stop order.

時刻t26における市場価格P26からトレール幅ΔRを減算した価格M2がトレール価格M1より高いので、CPU12は価格M2をトレール価格に設定する。時刻tBにおける市場価格Bがトレール価格M2以下であるので、CPU12は利益確定注文を実施する。 Since the price M2 obtained by subtracting the trail width ΔR from the market price P26 at time t26 is higher than the trail price M1, the CPU 12 sets the price M2 to the trail price. Since the market price B at the time t B is less than or equal to the trail price M2, the CPU 12 performs a profit determination order.

以上に説明した相対トリガトレール注文について、簡単にまとめる。利益確定注文のトリガ幅ΔTgは、相対トリガトレール注文のトレール開始価格を定めるパラメータである。利益確定注文のトレール幅ΔRは、相対トリガトレール注文の逆指値の変動量を定めるパラメータである。   The relative trigger trail order described above is briefly summarized. The trigger width ΔTg of the profit fixed order is a parameter for determining the trail start price of the relative trigger trail order. The trail width ΔR of the profit fixed order is a parameter that determines the amount of change in the stop price of the relative trigger trail order.

本実施の形態においては、CPU12は、トレール価格のトレールを開始するトリガ価格を、ポジションの取得価格を基準にして相対的に設定する。図10を使用して説明したデルタ注文のように、約定するまでポジションの価格が定まらない場合であっても、CPU12は、投資家が期待する水準および方向の市場価格変動が生じた後に利益確定注文のトレールを開始する。   In the present embodiment, the CPU 12 relatively sets the trigger price for starting the trail of the trail price based on the acquisition price of the position. Even if the price of the position is not fixed until it is executed, as in the delta order described with reference to FIG. 10, the CPU 12 determines the profit after the market price fluctuation in the level and direction expected by the investor occurs. Start a trail of orders.

図11においては、買いポジションを取り、売り決済を行う場合を例にして説明した。同様にして、売りポジションを取り、買い決済を行う場合であっても、CPU12は相対
トリガトレール注文を実施することが可能である。
In FIG. 11, the case where a buy position is taken and a sale settlement is performed has been described as an example. Similarly, even when a selling position is taken and a purchase settlement is made, the CPU 12 can execute a relative trigger trail order.

外国為替取引においては、ネットワークのタイムラグ等により指値注文であっても注文価格と約定価格とが異なる、いわゆるスリッページが生じる場合がある。相対トリガトレール注文を使用することにより、スリッページが生じた場合であっても、CPU12は、ポジションの約定価格を基準として利益確定注文のトレールを開始するトリガ価格を定めることが可能である。   In a foreign exchange transaction, there may be a so-called slippage in which the order price differs from the contract price even for a limit order due to a network time lag. By using a relative trigger trail order, even if slippage occurs, the CPU 12 can determine a trigger price to start a profit-making order trail based on the contracted price of the position.

図12は、受注DB52のレコードレイアウトを示す説明図である。図13は、発注DB53のレコードレイアウトを示す説明図である。図6から図13を使用して、CPU12が行う処理の概要を説明する。また受注DB52および発注DB53の、トリガ値フィールド、トリガ幅フィールド、トレール幅フィールド、ΔPフィールドおよびΔTフィールドに記録される各パラメータについても説明する。   FIG. 12 is an explanatory diagram showing a record layout of the order entry DB 52. FIG. 13 is an explanatory diagram showing a record layout of the ordering DB 53. The outline of the processing performed by the CPU 12 will be described with reference to FIGS. The parameters recorded in the trigger value field, trigger width field, trail width field, ΔP field, and ΔT field of the order DB 52 and the order DB 53 will also be described.

図6は、図9を使用して説明した画面を介してCPU12が取得した3件の新規注文およびそれぞれの決済注文が記録された状態の受注DB52を示す。注文番号101はデルタ注文を使用する新規買い注文であり、注文番号102は相対トリガトレール注文を使用する決済利益確定注文、注文番号103はトレール注文を使用する決済ストップ注文である。注文番号104はデルタ注文を使用する新規売り注文であり、注文番号105は相対トリガトレール注文を使用する決済利益確定注文、注文番号106はトレール注文を使用する決済ストップ注文である。注文番号107は、指値注文を使用する新規買い注文であり、注文番号108は指値注文を使用する決済利益確定注文、注文番号106は逆指値注文を使用する決済ストップ注文である。   FIG. 6 shows the order DB 52 in a state where three new orders acquired by the CPU 12 via the screen described with reference to FIG. 9 and respective settlement orders are recorded. The order number 101 is a new buy order using a delta order, the order number 102 is a settlement profit fixed order using a relative trigger trail order, and the order number 103 is a settlement stop order using a trail order. The order number 104 is a new sell order using a delta order, the order number 105 is a settlement profit fixed order using a relative trigger trail order, and the order number 106 is a settlement stop order using a trail order. The order number 107 is a new buy order using a limit order, the order number 108 is a settlement profit final order using a limit order, and the order number 106 is a settlement stop order using a limit order.

注文番号101および注文番号104は、デルタ注文であるので注文価格が未定である。そのため、注文価格フィールドに「−」が記録されている。図10を使用して説明したデルタ注文のパラメータである単位判定価格幅ΔPおよび判定時間幅ΔTが、ΔPフィールドおよびΔTフィールドにそれぞれ記録されている。トリガ値、トリガ幅およびトレール幅のパラメータは指定されていないので、これらのフィールドには「−」が記録されている。   Since the order number 101 and the order number 104 are delta orders, the order price is undetermined. Therefore, “-” is recorded in the order price field. The unit determination price range ΔP and the determination time range ΔT, which are parameters of the delta order described with reference to FIG. 10, are recorded in the ΔP field and the ΔT field, respectively. Since the trigger value, trigger width, and trail width parameters are not specified, "-" is recorded in these fields.

注文番号102および注文番号105は、注文価格が未定である。そのため、注文価格フィールドに「−」が記録されている。図11を使用して説明した相対トリガトレール注文のパラメータであるトリガ幅ΔTgおよびトレール幅ΔRが、トリガ幅フィールドおよびトレール幅フィールドにそれぞれ記録されている。トリガ値、単位判定価格幅ΔPおよび判定時間幅ΔTは指定されていないので、これらのフィールドには「−」が記録されている。   The order price of the order number 102 and the order number 105 is undetermined. Therefore, “-” is recorded in the order price field. The trigger width ΔTg and the trail width ΔR, which are parameters of the relative trigger trail order described with reference to FIG. 11, are recorded in the trigger width field and the trail width field, respectively. Since the trigger value, the unit determination price range ΔP, and the determination time range ΔT are not designated, “−” is recorded in these fields.

注文番号103および注文番号106も、注文価格が未定である。そのため、注文価格フィールドに「−」が記録されている。図11を使用して説明したトレール注文のパラメータであるトレール幅ΔSが、トレール幅フィールドに記録されている。トリガ値、トリガ幅、単位判定価格幅ΔPおよび判定時間幅ΔTは指定されていないので、これらのフィールドには「−」が記録されている。   The order price of the order number 103 and the order number 106 is also undetermined. Therefore, “-” is recorded in the order price field. The trail width ΔS, which is the trail order parameter described with reference to FIG. 11, is recorded in the trail width field. Since the trigger value, the trigger width, the unit determination price range ΔP, and the determination time width ΔT are not specified, “−” is recorded in these fields.

注文番号107から109は、指値注文および逆指値注文であるので、注文価格フィールドに価格が記録されている。トリガ値、トリガ幅、トレール幅、単位判定価格幅ΔPおよび判定時間幅ΔTは指定されていないので、これらのフィールドには「−」が記録されている。   Since the order numbers 107 to 109 are limit orders and stop limit orders, the price is recorded in the order price field. Since the trigger value, trigger width, trail width, unit determination price width ΔP and determination time width ΔT are not specified, “−” is recorded in these fields.

新規注文である、注文番号101、注文番号104および注文番号107の注文状況フ
ィールドに「注文中」と記録されている。新規注文が約定していないため、それぞれの新規注文に関連する決済注文の注文状況フィールドには「待機中」と記録されている。
“Ordering” is recorded in the order status fields of order number 101, order number 104, and order number 107, which are new orders. Since a new order has not been executed, “waiting” is recorded in the order status field of the settlement order related to each new order.

CPU12は、図6を使用して説明した受注DB52を参照して注文状況フィールドに「注文中」と記録されているレコードを抽出し、注文番号フィールドをキーとして発注DB53と照合する。受注DB52から抽出したレコードに発注DB53に記録されていないレコードがある場合には、CPU12は該当するレコードを発注DB53に複写する。図7は、複写が完了した状態の発注DB53を示す。   The CPU 12 refers to the order DB 52 described with reference to FIG. 6, extracts a record recorded as “in order” in the order status field, and collates with the order DB 53 using the order number field as a key. If there is a record that is not recorded in the order DB 53 among the records extracted from the order DB 52, the CPU 12 copies the corresponding record to the order DB 53. FIG. 7 shows the ordering DB 53 in a state where copying has been completed.

CPU12は、発注DB53に記録されている各レコードについて、執行条件、各パラメータおよび市場価格に基づき約定可否を判定する。約定可能ではないと判定した場合には、市場価格を取得しなおして、約定可否を判定することを繰り返す。なお、注文価格フィールドに注文価格が記録されていないレコードについては、CPU12は執行条件およびパラメータにより示される条件が満たされたと判定した後に、約定可否を判定する。   For each record recorded in the ordering DB 53, the CPU 12 determines whether or not it can be executed based on the execution condition, each parameter, and the market price. If it is determined that the contract is not possible, the market price is acquired again and the determination of whether or not the contract is possible is repeated. For a record in which the order price is not recorded in the order price field, the CPU 12 determines whether or not the contract can be executed after determining that the execution conditions and the conditions indicated by the parameters are satisfied.

約定可能であると判定した場合には、発注DB53は所定の取引プロトコルに従って取引相手との間で約定を行う。金融商品の取引プロトコルは従来から使用されているので説明を省略する。   When it is determined that the contract is possible, the ordering DB 53 executes a contract with the trading partner according to a predetermined transaction protocol. Since the transaction protocol for financial products has been used conventionally, the description thereof will be omitted.

なお、CPU12は、発注DB53に記録されている複数のレコードに対する処理を並行して実施する。   Note that the CPU 12 performs processing on a plurality of records recorded in the ordering DB 53 in parallel.

図12は、注文番号101が約定した後の受注DB52を示す。CPU12は、注文番号101のレコードの注文状況フィールドに、「約定」を記録する。CPU12は、受注DB52の親注文番号フィールドを検索して、注文番号101に対応する決済注文である注文番号102および注文番号103を抽出する。CPU12は、注文番号102および注文番号103のレコードの注文状況フィールドに「注文中」を記録する。   FIG. 12 shows the order DB 52 after the order number 101 is executed. The CPU 12 records “contract” in the order status field of the record of the order number 101. The CPU 12 searches the parent order number field of the order DB 52 and extracts the order number 102 and the order number 103 that are settlement orders corresponding to the order number 101. The CPU 12 records “in order” in the order status field of the records of the order number 102 and the order number 103.

CPU12は、約定済の注文番号101に対応するレコードを、図7を使用して説明した発注DB53から削除する。CPU12は、図12を使用して説明した受注DB52を参照して注文状況フィールドに「注文中」と記録されているレコードを抽出し、注文番号フィールドをキーとして発注DB53と照合する。受注DB52から抽出したレコードのうち注文番号102および注文番号103は発注DB53に記録されていない。したがって、CPU12は注文番号102および注文番号103に対応するレコードを発注DB53に複写する。   The CPU 12 deletes the record corresponding to the contracted order number 101 from the order DB 53 described with reference to FIG. The CPU 12 extracts the record in which “ordering” is recorded in the order status field with reference to the order DB 52 described with reference to FIG. 12, and collates with the order DB 53 using the order number field as a key. Of the records extracted from the order DB 52, the order number 102 and the order number 103 are not recorded in the order DB 53. Therefore, the CPU 12 copies the records corresponding to the order number 102 and the order number 103 to the ordering DB 53.

CPU12は、相対トリガトレール注文である注文番号102のレコードのトリガ値フィールドに、ポジションの約定価格にトリガ幅ΔTgを加算した値を記録する。CPU12は、トレール注文である注文番号103のレコードの注文価格フィールドに、ポジションの約定価格にトレール幅ΔSを加算した値を記録する。以上の処理が完了した状態の発注DB53を、図13に示す。   CPU12 records the value which added trigger width | variety (DELTA) Tg to the contract price of the position in the trigger value field of the record of order number 102 which is a relative trigger trail order. The CPU 12 records a value obtained by adding the trail width ΔS to the contracted price of the position in the order price field of the record of the order number 103 that is a trail order. FIG. 13 shows the ordering DB 53 in a state where the above processing is completed.

CPU12は、発注DB53に追加されたレコードを含む各レコードについて、執行条件、各パラメータおよび市場価格に基づき約定可否を判定する。   For each record including the record added to the order DB 53, the CPU 12 determines whether or not the contract can be executed based on the execution condition, each parameter, and the market price.

図14は、レート記録サーバ21のプログラムの処理の流れを示すフローチャートである。図14を使用して、本実施の形態のレート記録CPU22がHLDB43を生成する処理の流れを説明する。   FIG. 14 is a flowchart showing the flow of processing of the program of the rate recording server 21. The flow of processing in which the rate recording CPU 22 according to the present embodiment generates the HLDB 43 will be described with reference to FIG.

レート記録CPU22は、ネットワークを介して金融機関サーバ32が提示する市場価
格を取得する(ステップS501)。レート記録CPU22は、図4を使用して説明したHDDB43に新しいレコードを作成し、タイムスタンプおよび市場価格をそれぞれのフィールドに記録する(ステップS502)。
The rate recording CPU 22 acquires the market price presented by the financial institution server 32 via the network (step S501). The rate recording CPU 22 creates a new record in the HDD B 43 described with reference to FIG. 4, and records a time stamp and a market price in each field (step S502).

レート記録CPU22は、カウンタIを初期値1に設定する(ステップS503)。レート記録CPU22は、図3を使用して説明したデルタTDB42から番号フィールドがカウンタIと一致するレコードを抽出し、ΔTフィールドに記録された判定時間幅ΔTを取得する(ステップS504)。   The rate recording CPU 22 sets the counter I to the initial value 1 (step S503). The rate recording CPU 22 extracts a record whose number field matches the counter I from the delta TDB 42 described with reference to FIG. 3, and obtains a determination time width ΔT recorded in the ΔT field (step S504).

レート記録CPU22は、HDDB43のタイムスタンプフィールドおよび市場価格フィールドを参照して、直近の判定時間幅ΔTの時間内の市場価格の最高値Hを抽出する(ステップS505)。レート記録CPU22は、HDDB43のタイムスタンプフィールドおよび市場価格フィールドを参照して、直近の判定時間幅ΔTの時間内の市場価格の最低値Lを抽出する(ステップS506)。レート記録CPU22は、ステップS502で作成したレコードの判定時間幅ΔTに対応するLフィールドに最低値Lを、Hフィールドに最高値Hをそれぞれ記録する(ステップS507)。   The rate recording CPU 22 refers to the time stamp field and the market price field of the HDD B 43, and extracts the highest market price H within the latest determination time width ΔT (step S505). The rate recording CPU 22 refers to the time stamp field and the market price field of the HDD B 43, and extracts the minimum value L of the market price within the latest determination time width ΔT (step S506). The rate recording CPU 22 records the lowest value L in the L field corresponding to the determination time width ΔT of the record created in step S502 and the highest value H in the H field (step S507).

レート記録CPU22は、デルタTDB42のすべてのレコードの処理を終了したか否かを判定する(ステップS508)。終了していないと判定した場合(ステップS508でNO)、レート記録CPU22はステップS504に戻る。終了したと判定した場合(ステップS508でYES)、レート記録CPU22はプログラムを終了するか否かを判定する(ステップS509)。ここでプログラムを終了すると判定する場合とは、金融商品取引業者から終了の指示を受け付けた場合である。   The rate recording CPU 22 determines whether or not the processing of all the records in the delta TDB 42 has been completed (step S508). If it is determined that the processing has not ended (NO in step S508), the rate recording CPU 22 returns to step S504. If it is determined that the program has ended (YES in step S508), the rate recording CPU 22 determines whether or not to end the program (step S509). Here, the case where it is determined that the program is ended is a case where an end instruction is received from the financial product trader.

終了しないと判定した場合(ステップS509でNO)、レート記録CPU22はステップS501に戻る。終了すると判定した場合(ステップS509でYES)、レート記録CPU22は処理を終了する。   If it is determined not to end (NO in step S509), the rate recording CPU 22 returns to step S501. If it is determined to end (YES in step S509), the rate recording CPU 22 ends the process.

図15は、投資家サーバ11のプログラムの処理の流れを示すフローチャートである。図15を使用して、CPU12が行う処理の流れを説明する。なお、図15は1件の新規注文受付、ポジション取得および決済の一連の処理を行うプログラムを示す。CPU12は、新規注文に対応する数のプログラムを、並行して実行する。   FIG. 15 is a flowchart showing the flow of processing of the program of the investor server 11. The flow of processing performed by the CPU 12 will be described with reference to FIG. FIG. 15 shows a program for performing a series of processes of receiving a new order, obtaining a position, and making a settlement. The CPU 12 executes the number of programs corresponding to the new order in parallel.

CPU12は、注文受付サブルーチンを起動する(ステップS521)。注文受付サブルーチンは、ネットワークを介して投資家クライアント31から注文を受け付けるサブルーチンである。注文受付サブルーチンの処理の流れは後述する。   CPU12 starts an order reception subroutine (step S521). The order reception subroutine is a subroutine for receiving an order from the investor client 31 via the network. The processing flow of the order reception subroutine will be described later.

CPU12は証拠金確認サブルーチンを起動する(ステップS523)。証拠金確認サブルーチンは、証拠金が足りるか否かを確認するサブルーチンである。証拠金確認サブルーチンの処理の流れは後述する。   The CPU 12 starts a margin confirmation subroutine (step S523). The margin confirmation subroutine is a subroutine for confirming whether the margin is sufficient. The processing flow of the margin confirmation subroutine will be described later.

CPU12は、証拠金確認サブルーチンの処理結果に基づき証拠金が足りるか否かを判定する(ステップS524)。証拠金が足りると判定した場合(ステップS524でYES)、CPU12はポジション取得サブルーチンを起動する(ステップS525)。ポジション取得サブルーチンは、ステップS521で受け付けた注文に基づいて新規ポジションを取得する処理を行うサブルーチンである。ポジション取得サブルーチンの処理の流れは後述する。   The CPU 12 determines whether the margin is sufficient based on the processing result of the margin confirmation subroutine (step S524). If it is determined that the margin is sufficient (YES in step S524), the CPU 12 starts a position acquisition subroutine (step S525). The position acquisition subroutine is a subroutine for performing processing for acquiring a new position based on the order received in step S521. The processing flow of the position acquisition subroutine will be described later.

CPU12は、ステップS525の処理結果に基づき受注DB52を更新する(ステップS526)。具体的には、約定した場合には約定した新規注文の受注レコードの注文状
況フィールドに「約定」と記録し、対応する決済注文の受注レコードの注文状況フィールドに「注文中」と記録する。期限フィールドに記録された期限が到来した等の理由で約定せずにポジション取得サブルーチンを終了した場合には、約定しなかった新規注文および対応する決済注文の注文状況フィールドに「取消」と記録する。
The CPU 12 updates the order receiving DB 52 based on the processing result of step S525 (step S526). Specifically, when the contract is executed, “contract” is recorded in the order status field of the order record of the new order that has been executed, and “in order” is recorded in the order status field of the order record of the corresponding settlement order. If the position acquisition subroutine is terminated without being executed due to the expiration date recorded in the due date field, etc., “Cancel” is recorded in the order status field of the new order that has not been fulfilled and the corresponding settlement order. .

CPU12は、ステップS525の処理結果に基づき発注DB53を更新する(ステップS527)。具体的には、CPU12は、ステップS526で処理を行った発注レコードを削除する。さらに、CPU12は、決済した新規注文に対応する決済注文に関するレコードを受注DB52から発注DB53に複写する。   The CPU 12 updates the ordering DB 53 based on the processing result of step S525 (step S527). Specifically, the CPU 12 deletes the order record processed in step S526. Further, the CPU 12 copies a record relating to the settlement order corresponding to the settled new order from the order DB 52 to the order DB 53.

CPU12は、ステップS525で取得したポジションが存在するか否かを判定する(ステップS528)。存在すると判定した場合(ステップS528でYES)、CPU12はポジション決済サブルーチンを起動する(ステップS529)。ポジション決済サブルーチンは、保有するポジションを決済する処理を行うサブルーチンである。ポジション決済サブルーチンの処理の流れは後述する。   The CPU 12 determines whether or not the position acquired in step S525 exists (step S528). If it is determined that it exists (YES in step S528), the CPU 12 starts a position settlement subroutine (step S529). The position settlement subroutine is a subroutine for performing a process for settlement of the position held. The processing flow of the position settlement subroutine will be described later.

CPU12は、ステップS529の処理結果に基づき受注DB52を更新する(ステップS530)。具体的には、約定した決済注文の受注レコードの注文状況フィールドに「約定」と記録し、約定しなかった決済注文の受注レコードの注文状況フィールドに「取消」と記録する。   The CPU 12 updates the order reception DB 52 based on the processing result of step S529 (step S530). Specifically, “contract” is recorded in the order status field of the order record of the settled settlement order, and “cancel” is recorded in the order status field of the order record of the settlement order that has not been contracted.

CPU12は、発注DB53を更新する(ステップS531)。具体的には、ステップS529で処理を行った発注レコードを削除する。ステップS525で取得したポジションが存在しないと判定した場合(ステップS528でNO)およびステップS531の終了後、CPU12は処理を終了する。   The CPU 12 updates the order DB 53 (step S531). Specifically, the order record processed in step S529 is deleted. If it is determined that the position acquired in step S525 does not exist (NO in step S528) and after step S531, the CPU 12 ends the process.

証拠金が足りないと判定した場合(ステップS524でNO)、CPU12はネットワークを介して投資家クライアント31に証拠金が不足する旨を表示する(ステップS535)。CPU12は、ステップS521で受け付けた注文に関するレコードを受注DB52および発注DB53から削除する(ステップS536)。CPU12は、その後処理を終了する。   If it is determined that there is not enough margin (NO in step S524), the CPU 12 displays to the investor client 31 that the margin is insufficient via the network (step S535). The CPU 12 deletes the record relating to the order received in step S521 from the order DB 52 and the order DB 53 (step S536). The CPU 12 then ends the process.

図16は、注文受付サブルーチンの処理の流れを示すフローチャートである。注文受付サブルーチンは、ネットワークを介して投資家クライアント31から注文を受け付けるサブルーチンである。図16を使用して、注文受付サブルーチンの処理の流れを説明する。   FIG. 16 is a flowchart showing the flow of processing of the order reception subroutine. The order reception subroutine is a subroutine for receiving an order from the investor client 31 via the network. The process flow of the order reception subroutine will be described with reference to FIG.

CPU12は、ネットワークを介して投資家クライアント31のCPUに入力画面するために必要な情報を送信する。投資家クライアント31のCPUは、投資家クライアント31の表示部に図9を使用して説明した入力画面を表示する。以下の説明では投資家クライアント31のCPUによる処理を省略して、「CPU12は、投資家クライアント31に入力画面を表示する」のように記載する(ステップS551)。   The CPU 12 transmits information necessary for an input screen to the investor client 31 CPU via the network. The CPU of the investor client 31 displays the input screen described with reference to FIG. 9 on the display unit of the investor client 31. In the following description, processing by the CPU of the investor client 31 is omitted, and “CPU 12 displays an input screen on the investor client 31” is described (step S551).

CPU12は、入力画面を介して外国為替証拠金取引の注文の入力を受け付ける(ステップS552)。CPU12は、入力された注文にエラーがあるか否かを判定する(ステップS553)。エラーがある場合とは、たとえば新規買い注文の指値が市場価格よりも高い場合である。   CPU12 receives the input of the order of a foreign exchange margin transaction via an input screen (step S552). The CPU 12 determines whether or not there is an error in the input order (step S553). The case where there is an error is, for example, the case where the limit price of a new buy order is higher than the market price.

エラーがあると判定した場合(ステップS553でYES)、CPU12はエラーの内容を投資家クライアント31に表示し(ステップS554)、ステップS551に戻る。エラーが無いと判定した場合(ステップS553でNO)、CPU12は入力を受け付け
た注文に対して注文番号を付与する(ステップS555)。
If it is determined that there is an error (YES in step S553), the CPU 12 displays the content of the error on the investor client 31 (step S554), and returns to step S551. If it is determined that there is no error (NO in step S553), the CPU 12 assigns an order number to the received order (step S555).

CPU12は、ステップS552で受け付けた注文内容を受注DB52に記録する(ステップS556)。CPU12はステップS552で受け付けた注文内容のうち、新規注文を発注DB53に記録する(ステップS557)。その後CPU12は処理を終了する。   The CPU 12 records the order contents received in step S552 in the order reception DB 52 (step S556). The CPU 12 records a new order in the order DB 53 among the order contents received in step S552 (step S557). Thereafter, the CPU 12 ends the process.

図17は、証拠金確認サブルーチンの処理の流れを示すフローチャートである。証拠金確認サブルーチンは、証拠金が足りるか否かを確認するサブルーチンである。図17を使用して、証拠金確認サブルーチンの処理の流れを説明する。   FIG. 17 is a flowchart showing the processing flow of the margin confirmation subroutine. The margin confirmation subroutine is a subroutine for confirming whether the margin is sufficient. The processing flow of the margin confirmation subroutine will be described with reference to FIG.

CPU12は、レートDB41より各外国為替の市場価格を取得する(ステップS571)。CPU12は、ネットワークを介して金融機関サーバ32から直接市場価格を取得しても良い。   CPU12 acquires the market price of each foreign exchange from rate DB41 (Step S571). The CPU 12 may acquire the market price directly from the financial institution server 32 via the network.

CPU12は、変数「合計損益」を初期値0に設定する(ステップS572)。CPU12は、カウンタIを初期値1に設定する(ステップS573)。CPU12は、ポジションDB54よりI番目のポジションレコードを抽出して、式(2)に基づき時価損益を算出する(ステップS574)。
時価損益=(市場価格−約定価格)×取引金額 ‥‥‥ (2)
ここで、市場価格は、保有するポジションを反対取引により決済する際の価格である。
The CPU 12 sets the variable “total profit / loss” to an initial value 0 (step S572). The CPU 12 sets the counter I to the initial value 1 (step S573). The CPU 12 extracts the I-th position record from the position DB 54, and calculates the market value profit / loss based on the equation (2) (step S574).
Market value gain / loss = (market price-contract price) x transaction amount (2)
Here, the market price is a price when the position held is settled by a counter transaction.

CPU12は、変数「合計損益」にステップS574で算出した時価損益を加算する(ステップS575)。CPU12は、ポジションDB54に記録されたすべてのポジションの処理を終了したか否かを判定する(ステップS576)。終了していないと判定した場合(ステップS576でNO)、CPU12は、カウンタIに1を加算する(ステップS577)。CPU12は、ステップS574に戻る。   The CPU 12 adds the market value profit / loss calculated in step S574 to the variable “total profit / loss” (step S575). The CPU 12 determines whether or not the processing of all positions recorded in the position DB 54 has been completed (step S576). If it is determined that the process has not been completed (NO in step S576), the CPU 12 adds 1 to the counter I (step S577). The CPU 12 returns to step S574.

すべてのポジションの処理を終了したと判定した場合(ステップS576でYES)、CPU12は、式(3)に基づき有効証拠金を算出する(ステップS581)。
有効証拠金=証拠金+時価損益 ‥‥‥ (3)
If it is determined that all the positions have been processed (YES in step S576), the CPU 12 calculates a valid margin based on equation (3) (step S581).
Effective margin = Margin + Market profit / loss (3)

CPU12は、発注証拠金更新のサブルーチンを起動する(ステップS582)。発注証拠金更新のサブルーチンは、発注DB53の発注証拠金フィールドに記録されたデータを市場価格に基づいて更新するサブルーチンである。発注証拠金更新のサブルーチンの処理の流れは後述する。   The CPU 12 starts an order margin update subroutine (step S582). The order margin update subroutine is a subroutine for updating the data recorded in the order margin field of the order DB 53 based on the market price. The processing flow of the order margin update subroutine will be described later.

CPU12は、合計発注証拠金算出のサブルーチンを起動する(ステップS583)。合計発注証拠金算出のサブルーチンは、新規注文の発注証拠金を合計した合計発注証拠金を算出するサブルーチンである。合計発注証拠金算出のサブルーチンの処理の流れは後述する。   The CPU 12 activates a total order margin calculation subroutine (step S583). The total order margin calculation subroutine is a subroutine for calculating a total order margin by adding up the order margins of new orders. The processing flow of the total order margin calculation subroutine will be described later.

CPU12は、ポジションDB54の約定価格フィールドに記録された約定価格の総和である合計約定価格に所定の証拠金率を乗じて、必要証拠金を算出する(ステップS584)。必要証拠金は、保有しているポジションを維持するために必要な証拠金である。証拠金率は、金融商品取引業者と投資家との間の契約等に定める値であり、たとえば4%である。   The CPU 12 calculates the required margin by multiplying the total contract price, which is the sum of the contract prices recorded in the contract price field of the position DB 54, by a predetermined margin rate (step S584). Margin required is the margin required to maintain the position held. The margin rate is a value determined in a contract between the financial product trader and the investor, for example, 4%.

CPU12は、有効証拠金が必要証拠金と合計発注証拠金との和以上であるか否かを判定する(ステップS585)。有効証拠金が必要証拠金と合計発注証拠金との和以上であ
ると判定した場合(ステップS585でYES)、CPU12は「証拠金は足りる」と判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS586)。CPU12は、その後処理を終了する。
The CPU 12 determines whether or not the effective margin is equal to or greater than the sum of the required margin and the total order margin (step S585). When it is determined that the effective margin is equal to or greater than the sum of the required margin and the total order margin (YES in step S585), the CPU 12 determines that “the margin is sufficient” and the main storage device 13 or the auxiliary storage device 14 (step S586). The CPU 12 then ends the process.

有効証拠金が必要証拠金と合計発注証拠金との和未満であると判定した場合(ステップS585でNO)、CPU12は「証拠金は足りない」と判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS587)。CPU12は、その後処理を終了する。   When it is determined that the effective margin is less than the sum of the required margin and the total order margin (NO in step S585), the CPU 12 determines that “the margin is insufficient” and the main memory 13 or the auxiliary memory The information is stored in the device 14 (step S587). The CPU 12 then ends the process.

図18は、発注証拠金更新サブルーチンの処理の流れを示すフローチャートである。発注証拠金更新のサブルーチンは、発注DB53の発注証拠金フィールドに記録されたデータを市場価格に基づいて更新するサブルーチンである。図18を使用して、発注証拠金更新のサブルーチンの処理の流れを説明する。   FIG. 18 is a flowchart showing the processing flow of the order margin update subroutine. The order margin update subroutine is a subroutine for updating the data recorded in the order margin field of the order DB 53 based on the market price. The processing flow of the order margin update subroutine will be described with reference to FIG.

CPU12は、レートDB41より各外国為替の市場価格を取得する(ステップS601)。CPU12は、カウンタIを初期値1に設定する(ステップS602)。CPU12は、発注DB53からI番目の発注レコードを取得する(ステップS603)。CPU12は、取得した発注レコードの注文タイプフィールドを参照して、新規注文の発注レコードであるか否かを判定する(ステップS604)。   The CPU 12 acquires the market price of each foreign exchange from the rate DB 41 (step S601). The CPU 12 sets the counter I to the initial value 1 (step S602). The CPU 12 acquires the I-th order record from the order DB 53 (step S603). The CPU 12 refers to the order type field of the acquired order record and determines whether the order record is a new order (step S604).

新規注文の発注レコードであると判定した場合(ステップS604でYES)、CPU12は、執行条件フィールドを参照して発注証拠金が確定しているか否かを判定する(ステップS605)。具体的には、執行条件が「指値」または「逆指値」である場合は、発注証拠金が確定している。執行条件が「デルタ」等の市場価格に応じて注文価格が変動する条件である場合は、発注証拠金が確定していない。   If it is determined that the order record is a new order (YES in step S604), the CPU 12 refers to the execution condition field to determine whether or not the order margin has been confirmed (step S605). Specifically, when the execution condition is “limit price” or “stop limit”, the order margin is fixed. If the execution condition is a condition such as “Delta” where the order price fluctuates according to the market price, the order margin is not fixed.

発注証拠金が確定していないと判定した場合(ステップS605でNO)、CPU12は、式(1)に基づいて新たな発注証拠金を算出する(ステップS606)。CPU12は、発注DB53の発注証拠金フィールドを、ステップS606で算出した発注証拠金により更新する(ステップS607)。   If it is determined that the order margin has not been confirmed (NO in step S605), the CPU 12 calculates a new order margin based on equation (1) (step S606). The CPU 12 updates the order margin field of the order DB 53 with the order margin calculated in step S606 (step S607).

新規注文の発注レコードではないと判定した場合(ステップS604でNO)、発注証拠金が確定していると判定した場合(ステップS605でYES)およびステップS607の終了後、CPU12は、発注DB53のすべてのレコードの処理が終了したか否かを判定する(ステップS608)。   When it is determined that the order record is not a new order (NO in step S604), when it is determined that the order margin has been confirmed (YES in step S605), and after the end of step S607, the CPU 12 It is determined whether or not the processing of this record has been completed (step S608).

終了していないと判定した場合(ステップS608でNO)、CPU12は、カウンタIに1を加算する(ステップS609)。CPU12は、ステップS603に戻る。終了したと判定した場合(ステップS608でYES)、CPU12は処理を終了する。   If it is determined that the process has not been completed (NO in step S608), the CPU 12 adds 1 to the counter I (step S609). The CPU 12 returns to step S603. If it is determined that the process has been completed (YES in step S608), the CPU 12 ends the process.

なお、CPU12は、ステップS601を省略して、呼び出し元のプログラムで取得した市場価格を本サブルーチンでも使用しても良い。市場価格を取得する処理を省略することにより、発注証拠金更新のサブルーチンの処理を早くすることができる。   Note that the CPU 12 may omit step S601 and use the market price acquired by the calling program in this subroutine. By omitting the process of acquiring the market price, it is possible to speed up the processing of the order margin update subroutine.

また、CPU12は、ステップS605とステップS606との間で市場価格を取得しても良い。発注証拠金を算出する直前で市場価格を取得することにより、最新の市場価格を発注証拠金に反映させることができる。   Moreover, CPU12 may acquire a market price between step S605 and step S606. By acquiring the market price immediately before calculating the order margin, the latest market price can be reflected in the order margin.

図19は、合計発注証拠金算出サブルーチンの処理の流れを示すフローチャートである。合計発注証拠金算出のサブルーチンは、新規注文の発注証拠金を合計した合計発注証拠
金を算出するサブルーチンである。図19を使用して、合計発注証拠金算出のサブルーチンの処理の流れを説明する。
FIG. 19 is a flowchart showing the processing flow of the total order margin calculation subroutine. The total order margin calculation subroutine is a subroutine for calculating a total order margin by adding up the order margins of new orders. The flow of processing of the total order margin calculation subroutine will be described with reference to FIG.

CPU12は、変数「合計発注証拠金」を初期値0に設定する(ステップS621)。CPU12は、カウンタIを初期値1に設定する(ステップS622)。CPU12は、発注DB53からI番目の発注レコードを取得する(ステップS623)。CPU12は、取得した発注レコードの注文タイプフィールドを参照して、新規注文の発注レコードであるか否かを判定する(ステップS624)。   The CPU 12 sets a variable “total order margin” to an initial value 0 (step S621). CPU 12 sets counter I to initial value 1 (step S622). The CPU 12 acquires the I-th order record from the order DB 53 (step S623). The CPU 12 refers to the order type field of the acquired order record and determines whether or not it is an order record for a new order (step S624).

新規注文の発注レコードであると判定した場合(ステップS624でYES)、CPU12は、変数「合計発注証拠金」に、発注証拠金フィールドに記録された発注証拠金を加算する(ステップS625)。   If it is determined that the order record is a new order (YES in step S624), the CPU 12 adds the order margin recorded in the order margin field to the variable “total order margin” (step S625).

新規注文の発注レコードでないと判定した場合(ステップS624でNO)およびステップS625の終了後、CPU12は、発注DB53のすべてのレコードの処理が終了したか否かを判定する(ステップS626)。   If it is determined that the record is not an order record for a new order (NO in step S624), and after the end of step S625, the CPU 12 determines whether or not the processing of all records in the order DB 53 has been completed (step S626).

終了していないと判定した場合(ステップS626でNO)、CPU12は、カウンタIに1を加算する(ステップS627)。CPU12は、ステップS623に戻る。終了したと判定した場合(ステップS626でYES)、CPU12は処理を終了する。   If it is determined that the process has not been completed (NO in step S626), the CPU 12 adds 1 to the counter I (step S627). The CPU 12 returns to step S623. If it is determined that the process has ended (YES in step S626), the CPU 12 ends the process.

図20は、ポジション取得サブルーチンの処理の流れを示すフローチャートである。ポジション取得サブルーチンは、ステップS521で受け付けた注文に基づいて新規ポジションを取得する処理を行うサブルーチンである。図20を使用して、ポジション取得サブルーチンの処理の流れを説明する。なお、本実施の形態においては、ステップS521で取得した新規注文の執行条件は、デルタ注文、指値注文または成行注文のいずれかである。   FIG. 20 is a flowchart showing the flow of processing of the position acquisition subroutine. The position acquisition subroutine is a subroutine for performing processing for acquiring a new position based on the order received in step S521. The flow of processing of the position acquisition subroutine will be described using FIG. In the present embodiment, the execution condition of the new order acquired in step S521 is one of delta order, limit order, and market order.

CPU12は、ステップS521で取得した新規注文の執行条件がデルタ注文であるか否かを判定する(ステップS641)。デルタ注文であると判定した場合(ステップS641でYES)、CPU12は、デルタ判定のサブルーチンを起動する(ステップS642)。デルタ判定のサブルーチンは、市場価格が所定の変動幅を超えて上昇トレンドまたは下降トレンドに移行したか否かを判定するサブルーチンである。デルタ判定のサブルーチンの処理の流れは後述する。   The CPU 12 determines whether or not the execution condition of the new order acquired in step S521 is a delta order (step S641). If it is determined that the order is a delta order (YES in step S641), the CPU 12 activates a delta determination subroutine (step S642). The delta determination subroutine is a subroutine for determining whether or not the market price has shifted to an upward trend or a downward trend exceeding a predetermined fluctuation range. The flow of the delta determination subroutine will be described later.

CPU12は、デルタ判定のサブルーチンの処理結果がONであるか否かを判定する(ステップS643)。ONでないと判定した場合(ステップS643でNO)、CPU12は、デルタ注文の処理を終了するか否かを判定する(ステップS644)。たとえば、発注DB53の期限フィールドに記録された期限を過ぎた場合、投資家クライアント31より注文中止の指示を取得した場合、投資家の取引口座が証拠金の残高不足によりロスカットされた場合等に、CPU12は、デルタ注文の処理を終了すると判定する。   The CPU 12 determines whether or not the processing result of the delta determination subroutine is ON (step S643). If it is determined that it is not ON (NO in step S643), the CPU 12 determines whether or not to end the delta order process (step S644). For example, when the deadline recorded in the deadline field of the ordering DB 53 has passed, when an instruction to cancel the order is obtained from the investor client 31, or when the investor's trading account is lost cut due to a lack of margin balance, etc. The CPU 12 determines to end the delta order processing.

終了しないと判定した場合(ステップS644でNO)、CPU12は、ステップS642に戻る。   When it determines with not complete | finishing (it is NO at step S644), CPU12 returns to step S642.

デルタ注文でないと判定した場合(ステップS641でNO)、CPU12は、ステップS521で取得した新規注文の執行条件が指値注文であるか否かを判定する(ステップS651)。指値注文ではないと判定した場合(ステップS651でNO)およびデルタ判定のサブルーチンの処理結果がONであると判定した場合(ステップS643でYES)、CPU12は、市場価格で約定を行う成行約定の処理を行う(ステップS645)。   If it is determined that the order is not a delta order (NO in step S641), the CPU 12 determines whether or not the execution condition of the new order acquired in step S521 is a limit order (step S651). If it is determined that the order is not a limit order (NO in step S651), and if it is determined that the processing result of the delta determination subroutine is ON (YES in step S643), the CPU 12 executes a processing for executing a contract at a market price. Is performed (step S645).

指値注文であると判定した場合(ステップS651でYES)、CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS652)。CPU12は、ネットワークを介して金融機関サーバ32から直接市場価格を取得しても良い。   If it is determined that the order is a limit order (YES in step S651), the CPU 12 acquires the market price of the foreign exchange from the rate DB 41 (step S652). The CPU 12 may acquire the market price directly from the financial institution server 32 via the network.

CPU12は、発注レコードの注文価格フィールドに記録された注文価格と市場価格とを比較して、指値注文の成立可否を判定する(ステップS653)。具体的には、買い注文である場合には、CPU12は、注文価格よりも市場価格の方が安い場合に指値注文が成立可能であると判定する。売り注文である場合には、CPU12は、注文価格よりも市場価格の方が高い場合に指値注文が成立可能であると判定する。   The CPU 12 compares the order price recorded in the order price field of the order record with the market price, and determines whether or not the limit order can be established (step S653). Specifically, in the case of a buy order, the CPU 12 determines that a limit order can be established when the market price is lower than the order price. In the case of a sell order, the CPU 12 determines that a limit order can be established when the market price is higher than the order price.

成立可でないと判定した場合(ステップS653でNO)、CPU12は、指値注文の処理を終了するか否かを判定する(ステップS654)。たとえば、発注DB53の期限フィールドに記録された期限を過ぎた場合、投資家クライアント31より注文中止の指示を取得した場合、投資家の取引口座が証拠金の残高不足によりロスカットされた場合等に、CPU12は、指値注文の処理を終了すると判定する。指値注文の処理を終了しないと判定した場合(ステップS654でNO)、CPU12はステップS652に戻る。   If it is determined that it cannot be established (NO in step S653), the CPU 12 determines whether or not to stop the limit order process (step S654). For example, when the deadline recorded in the deadline field of the ordering DB 53 has passed, when an instruction to cancel the order is obtained from the investor client 31, or when the investor's trading account is lost cut due to a lack of margin balance, etc. The CPU 12 determines to finish the limit order process. If it is determined not to end the limit order process (NO in step S654), the CPU 12 returns to step S652.

指値注文が成立可であると判定した場合(ステップS653でYES)、CPU12は、指値注文による約定の処理を行う(ステップS655)。   If it is determined that the limit order can be established (YES in step S653), the CPU 12 performs a contract processing by the limit order (step S655).

ステップS645またはステップS655の終了後、CPU12は、ポジションDB54に約定した注文の注文番号、通貨ペア、取引種別、約定価格、取引金額、約定日時および決済注文の番号を記録する(ステップS656)。なお、CPU12は、約定した注文の番号をキーとして受注DB52の親注文番号フィールドを検索することにより決済注文の注文番号および利益確定注文、ストップ注文の別を抽出する。   After step S645 or step S655 is completed, the CPU 12 records the order number, currency pair, transaction type, contract price, transaction amount, contract date / time, and settlement order number of the contract executed in the position DB 54 (step S656). Note that the CPU 12 searches the parent order number field of the order receiving DB 52 using the contracted order number as a key to extract the order number of the settlement order, the profit determination order, and the stop order.

デルタ注文の処理を終了すると判定した場合(ステップS644でYES)、指値注文の処理を終了すると判定した場合(ステップS654でYES)、およびステップS656の終了後、CPU12は処理を終了する。   When it is determined that the delta order process is to be ended (YES in step S644), when it is determined that the limit order process is to be ended (YES in step S654), and after the end of step S656, the CPU 12 ends the process.

図21は、デルタ判定のサブルーチンの処理の流れを示すフローチャートである。デルタ判定のサブルーチンは、市場価格が所定の変動幅を超えて上昇トレンドまたは下降トレンドに移行したか否かを判定するサブルーチンである。図21を使用して、デルタ判定のサブルーチンの処理の流れを説明する。   FIG. 21 is a flowchart showing the flow of processing of the delta determination subroutine. The delta determination subroutine is a subroutine for determining whether or not the market price has shifted to an upward trend or a downward trend exceeding a predetermined fluctuation range. The flow of the delta determination subroutine will be described with reference to FIG.

CPU12は、注文対象の通貨ペアをキーとして、HLDB43より最新のHLレコードを取得する(ステップS671)。CPU12は、注文対象の通貨ペアをキーとして、レートDB41よりレートレコードを取得する(ステップS672)。   The CPU 12 acquires the latest HL record from the HLDB 43 using the currency pair to be ordered as a key (step S671). The CPU 12 acquires a rate record from the rate DB 41 using the currency pair to be ordered as a key (step S672).

CPU12は、ステップS671で取得したHLレコードとステップS672で取得したレートレコードのタイムスタンプフィールドに記録されたタイムスタンプ同士が一致しているか否かを判定する(ステップS673)。一致していると判定した場合(ステップS673でYES)、CPU12はHLDB43より一つ前のHLレコードを取得する(ステップS674)。   The CPU 12 determines whether or not the time stamps recorded in the time stamp field of the HL record acquired in step S671 and the rate record acquired in step S672 match each other (step S673). If it is determined that they match (YES in step S673), the CPU 12 acquires the HL record immediately before the HLDB 43 (step S674).

タイムスタンプが一致していないと判定した場合(ステップS673でNO)およびステップS674の終了後、CPU12は、処理中の注文が買い注文であるか否かを判定する(ステップS675)。   When it is determined that the time stamps do not match (NO in step S673) and after the end of step S674, the CPU 12 determines whether or not the order being processed is a buy order (step S675).

買い注文であると判定した場合(ステップS675でYES)、CPU12は、式(4)に基づき市場価格と過去のトレンドと注文時の条件との関係を判定する(ステップS676)。
市場価格−L≧ΔP×ΔT ‥‥‥(4)
市場価格は、ステップS672で取得したレートレコードの買レートフィールドに記録された価格である。
ΔPは、デルタ注文のパラメータである単位判定価格幅ΔPである。
ΔTは、デルタ注文のパラメータである判定時間幅ΔTである。
Lは、ステップS671で取得したHLレコードの、注文条件の判定時間幅ΔTに対応するLフィールドに記録された価格であり、判定時間幅ΔTの期間内の最低価格を示す。
If it is determined that the order is a buy order (YES in step S675), the CPU 12 determines the relationship between the market price, the past trend, and the condition at the time of order based on the equation (4) (step S676).
Market Price-L ≧ ΔP × ΔT (4)
The market price is the price recorded in the buy rate field of the rate record acquired in step S672.
ΔP is a unit determination price range ΔP that is a parameter of the delta order.
ΔT is a determination time width ΔT that is a parameter of the delta order.
L is a price recorded in the L field corresponding to the determination time width ΔT of the order condition in the HL record acquired in step S671, and indicates the lowest price within the period of the determination time width ΔT.

式(4)が真であると判定した場合(ステップS676でYES)、CPU12は、処理結果がONであると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS677)。CPU12は、その後処理を終了する。   If it is determined that Expression (4) is true (YES in step S676), the CPU 12 determines that the processing result is ON and stores the result in the main storage device 13 or the auxiliary storage device 14 (step S677). The CPU 12 then ends the process.

式(4)が偽であると判定した場合(ステップS676でNO)、CPU12は、処理結果が「OFF」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS678)。CPU12は、その後処理を終了する。   When it is determined that the expression (4) is false (NO in step S676), the CPU 12 determines that the processing result is “OFF” and stores the result in the main storage device 13 or the auxiliary storage device 14 (step S678). ). The CPU 12 then ends the process.

買い注文でないと判定した場合(ステップS675でNO)、CPU12は、式(5)に基づき市場価格と過去のトレンドと注文時の条件との関係を判定する(ステップS681)。
H−市場価格≧ΔP×ΔT ‥‥‥(5)
市場価格は、ステップS672で取得したレートレコードの売レートフィールドに記録された価格である。
ΔPは、デルタ注文のパラメータである単位判定価格幅ΔPである。
ΔTは、デルタ注文のパラメータである判定時間幅ΔTである。
Hは、ステップS671で取得したHLレコードの、注文条件の判定時間幅ΔTに対応するHフィールドに記録された価格であり、判定時間幅ΔTの期間内の最高価格を示す。
If it is determined that the order is not a buy order (NO in step S675), the CPU 12 determines the relationship between the market price, the past trend, and the condition at the time of order based on the equation (5) (step S681).
H-market price ≧ ΔP × ΔT (5)
The market price is the price recorded in the selling rate field of the rate record acquired in step S672.
ΔP is a unit determination price range ΔP that is a parameter of the delta order.
ΔT is a determination time width ΔT that is a parameter of the delta order.
H is the price recorded in the H field corresponding to the determination time width ΔT of the order condition in the HL record acquired in step S671, and indicates the highest price within the period of the determination time width ΔT.

式(5)が真であると判定した場合(ステップS681でYES)、CPU12は、処理結果がONであると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS682)。CPU12は、その後処理を終了する。   If it is determined that the expression (5) is true (YES in step S681), the CPU 12 determines that the processing result is ON and stores it in the main storage device 13 or the auxiliary storage device 14 (step S682). The CPU 12 then ends the process.

式(5)が偽であると判定した場合(ステップS681でNO)、CPU12は、処理結果が「OFF」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS683)。CPU12は、その後処理を終了する。   When it is determined that the formula (5) is false (NO in step S681), the CPU 12 determines that the processing result is “OFF” and stores it in the main storage device 13 or the auxiliary storage device 14 (step S683). ). The CPU 12 then ends the process.

図22は、ポジション決済サブルーチンの処理の流れを示すフローチャートである。ポジション決済サブルーチンは、保有するポジションを決済する処理を行うサブルーチンである。図22を使用して、ポジション決済サブルーチンの処理の流れを説明する。なお、本実施の形態においては、ステップS521で取得した決済利益確定注文の執行条件は、相対トリガトレール注文または指値注文であり、決済ストップ注文の執行条件はトレール注文である。   FIG. 22 is a flowchart showing the flow of processing of the position settlement subroutine. The position settlement subroutine is a subroutine for performing a process for settlement of the position held. The process flow of the position settlement subroutine will be described with reference to FIG. In this embodiment, the execution condition of the settlement profit final order acquired in step S521 is a relative trigger trail order or limit order, and the execution condition of the settlement stop order is a trail order.

CPU12は、ステップS521で取得した新規注文の決済利益確定条件が相対トリガトレール注文であるか否かを判定する(ステップS701)。相対トリガトレール注文であると判定した場合(ステップS701でYES)、CPU12は、レートDB41より
外国為替の市場価格を取得する(ステップS702)。
The CPU 12 determines whether or not the settlement profit determination condition for the new order acquired in step S521 is a relative trigger trail order (step S701). If it is determined that the order is a relative trigger trail order (YES in step S701), the CPU 12 acquires the market price of the foreign exchange from the rate DB 41 (step S702).

CPU12は、利益確定注文のトレールを開始する利益確定トリガがONであるか否かを判定する(ステップS703)。具体的には、買い注文である場合にはステップS702で取得した市場価格が式(6)および式(7)を満たす場合に、CPU12は利益確定トリガがONであると判定する。
市場価格>トリガ価格Trig‥‥‥ (6)
トリガ価格Trig=新規注文時の約定価格+ΔTg ‥‥‥ (7)
ΔTgは、相対トリガトレール注文のパラメータであるトリガ幅ΔTgである。
The CPU 12 determines whether or not a profit confirmation trigger for starting a trail of profit confirmation orders is ON (step S703). Specifically, in the case of a buy order, the CPU 12 determines that the profit determination trigger is ON when the market price acquired in step S702 satisfies Expressions (6) and (7).
Market Price> Trigger Price Trig (6)
Trigger price Trig = Contract price at the time of new order + ΔTg (7)
ΔTg is a trigger width ΔTg which is a parameter of the relative trigger trail order.

同様に、売り注文である場合にはステップS702で取得した市場価格が式(8)および式(9)を満たす場合に、CPU12は利益確定トリガがONであると判定する。
市場価格<トリガ価格Trig ‥‥‥ (8)
トリガ価格Trig=新規注文時の約定価格−ΔTg ‥‥‥ (9)
Similarly, in the case of a sell order, the CPU 12 determines that the profit determination trigger is ON when the market price acquired in step S702 satisfies the equations (8) and (9).
Market price <Trigger price Trig (8)
Trigger price Trig = Contract price at the time of new order−ΔTg (9)

利益確定トリガがONであると判定した場合(ステップS703でYES)、CPU12は、相対トリガトレール判定のサブルーチンを起動する(ステップS704)。相対トリガトレール判定のサブルーチンは、市場価格に応じて逆指値をトレールしながら相対トリガトレールの条件が満たされたことを判定するサブルーチンである。相対トリガトレール判定のサブルーチンの処理の流れは後述する。CPU12は、相対トリガトレール判定のサブルーチンで定まる条件に基づいて、逆指値約定を行う(ステップS705)。   If it is determined that the profit determination trigger is ON (YES in step S703), the CPU 12 activates a relative trigger trail determination subroutine (step S704). The relative trigger trail determination subroutine is a subroutine for determining that the condition of the relative trigger trail is satisfied while following the stop price according to the market price. The processing flow of the relative trigger trail determination subroutine will be described later. The CPU 12 executes the stop limit contract based on the conditions determined by the relative trigger trail determination subroutine (step S705).

利益確定トリガがONでないと判定した場合(ステップS703でNO)、CPU12は、ストップトリガ判定のサブルーチンを起動する(ステップS711)。ストップトリガ判定のサブルーチンは、決済ストップ注文により損切りを行うか否かを判定するサブルーチンである。ストップトリガ判定のサブルーチンの処理の流れは後述する。   If it is determined that the profit determination trigger is not ON (NO in step S703), the CPU 12 starts a subroutine for determining a stop trigger (step S711). The subroutine for determining a stop trigger is a subroutine for determining whether or not to perform loss cut by a settlement stop order. The process flow of the stop trigger determination subroutine will be described later.

CPU12は、ストップトリガ判定のサブルーチンの処理結果が「ストップ」であるか否かを判定する(ステップS712)。「ストップ」でないと判定した場合(ステップS712でNO)、CPU12はステップS702に戻る。「ストップ」であると判定した場合(ステップS712でYES)、CPU12は、市場価格で約定を行う成行約定の処理を行う(ステップS713)。   The CPU 12 determines whether or not the processing result of the stop trigger determination subroutine is “stop” (step S712). If it is determined that it is not “stop” (NO in step S712), the CPU 12 returns to step S702. If it is determined to be “stop” (YES in step S712), the CPU 12 performs a market execution process for executing a contract at the market price (step S713).

相対トリガトレール注文でないと判定した場合(ステップS701でNO)、CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS721)。CPU12は、決済利益確定注文の指値注文の成立可否を判定する(ステップS722)。成立可であると判定した場合(ステップS722でYES)、CPU12は、決済利益確定注文の執行条件に基づいて、指値約定を行う(ステップS723)。   When it determines with it not being a relative trigger trail order (it is NO at step S701), CPU12 acquires the market price of a foreign exchange from rate DB41 (step S721). The CPU 12 determines whether or not the limit order of the settlement profit fixed order is established (step S722). If it is determined that it can be established (YES in step S722), the CPU 12 performs a limit execution based on the execution condition of the settlement profit fixed order (step S723).

指値注文が成立可でないと判定した場合(ステップS722でNO)、CPU12は、ストップトリガ判定のサブルーチンを起動する(ステップS724)。ストップトリガ判定のサブルーチンは、ステップS711で起動したサブルーチンと同一のサブルーチンである。   When it is determined that the limit order cannot be established (NO in step S722), the CPU 12 starts a subroutine for determining a stop trigger (step S724). The subroutine for determining the stop trigger is the same subroutine as the subroutine started in step S711.

CPU12は、ストップトリガ判定のサブルーチンの処理結果が「ストップ」であるか否かを判定する(ステップS725)。「ストップ」でないと判定した場合(ステップS725でNO)、CPU12はステップS721に戻る。「ストップ」であると判定した場合(ステップS725でYES)、CPU12は、市場価格で約定を行う成行約定の処理を行う(ステップS726)。   The CPU 12 determines whether or not the processing result of the stop trigger determination subroutine is “stop” (step S725). If it is determined that it is not “stop” (NO in step S725), the CPU 12 returns to step S721. When it determines with it being "stop" (it is YES at step S725), CPU12 performs the process of the execution contract which performs a contract with a market price (step S726).

ステップS705、ステップS713、ステップS723またはステップS726の終了後、CPU12は、ポジションDB54から決済した新規注文に関するレコードを削除する(ステップS731)。その後、CPU12は処理を終了する。   After step S705, step S713, step S723, or step S726 ends, the CPU 12 deletes the record related to the new order that has been settled from the position DB 54 (step S731). Thereafter, the CPU 12 ends the process.

図23は、ストップトリガ判定サブルーチンの処理の流れを示すフローチャートである。ストップトリガ判定のサブルーチンは、決済ストップ注文により損切りを行うか否かを判定するサブルーチンである。図23を使用して、ストップトリガ判定のサブルーチンの処理の流れを説明する。   FIG. 23 is a flowchart showing the process flow of the stop trigger determination subroutine. The subroutine for determining a stop trigger is a subroutine for determining whether or not to perform loss cut by a settlement stop order. With reference to FIG. 23, the flow of processing of the stop trigger determination subroutine will be described.

CPU12は、判定する対象の注文が売り注文であるか否かを判定する(ステップS752)。売り注文であると判定した場合(ステップS752でYES)、CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS753)。   The CPU 12 determines whether or not the order to be determined is a sell order (step S752). If it is determined that the order is a sell order (YES in step S752), the CPU 12 acquires the market price of the foreign exchange from the rate DB 41 (step S753).

CPU12は、市場価格がストップ注文のトリガ値以下であるか否かを判定する(ステップS754)。ストップ注文のトリガ値以下でないと判定した場合(ステップS754でNO)、CPU12は、市場価格とトリガ値との関係が式(10)を満たすか否かを判定する(ステップS755)。
市場価格−ΔS>トリガ値 ‥‥‥ (10)
ΔSは、ストップ注文のトレール幅ΔSである。
The CPU 12 determines whether or not the market price is less than or equal to the stop order trigger value (step S754). If it is determined that it is not less than or equal to the stop order trigger value (NO in step S754), the CPU 12 determines whether or not the relationship between the market price and the trigger value satisfies Expression (10) (step S755).
Market Price-ΔS> Trigger Value (10)
ΔS is the trail width ΔS of the stop order.

式(10)が真であると判定した場合(ステップS755でYES)、CPU12は、トリガ値を式(10)の左辺の値に変更する(ステップS756)。ステップS756の処理により、CPU12は市場価格の上昇に追従して売り注文のストップ注文価格を変更、すなわちトレールする。   When it is determined that Expression (10) is true (YES in Step S755), the CPU 12 changes the trigger value to the value on the left side of Expression (10) (Step S756). By the process of step S756, the CPU 12 changes, that is, trails the stop order price of the selling order following the increase in the market price.

式(10)が真でないと判定した場合(ステップS755でNO)およびステップS756の終了後、CPU12は、処理結果が「継続」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS757)。CPU12は、その後処理を終了する。   When it is determined that the expression (10) is not true (NO in step S755) and after the end of step S756, the CPU 12 determines that the processing result is “continue” and stores it in the main storage device 13 or the auxiliary storage device 14. Store (step S757). The CPU 12 then ends the process.

売り注文でないと判定した場合(ステップS752でNO)、CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS761)。   If it is determined that the order is not a sell order (NO in step S752), the CPU 12 acquires the market price of the foreign exchange from the rate DB 41 (step S761).

CPU12は、市場価格がストップ注文のトリガ値以上であるか否かを判定する(ステップS762)。ストップ注文のトリガ値以上でないと判定した場合(ステップS762でNO)、CPU12は、市場価格とトリガ値との関係が式(11)を満たすか否かを判定する(ステップS763)。
市場価格+ΔS>トリガ値 ‥‥‥ (11)
ΔSは、ストップ注文のトレール幅ΔSである。
The CPU 12 determines whether or not the market price is greater than or equal to the stop order trigger value (step S762). When it determines with it not being more than the trigger value of a stop order (it is NO at step S762), CPU12 determines whether the relationship between a market price and a trigger value satisfy | fills Formula (11) (step S763).
Market price + ΔS> trigger value (11)
ΔS is the trail width ΔS of the stop order.

式(11)が真であると判定した場合(ステップS763でYES)、CPU12は、トリガ値を式(10)の左辺の値に変更する(ステップS764)。ステップS764の処理により、CPU12は市場価格の下落に追従して買い注文のストップ注文価格を変更、すなわちトレールする。   If it is determined that Expression (11) is true (YES in Step S763), the CPU 12 changes the trigger value to the value on the left side of Expression (10) (Step S764). By the process of step S764, the CPU 12 changes, that is, trails the stop order price of the buy order following the drop in the market price.

式(11)が真でないと判定した場合(ステップS763でNO)およびステップS764の終了後、CPU12は、処理結果が「継続」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS765)。CPU12は、その後処理を終了する。   When it is determined that the expression (11) is not true (NO in step S763) and after the end of step S764, the CPU 12 determines that the processing result is “continue” and stores it in the main storage device 13 or the auxiliary storage device 14. Store (step S765). The CPU 12 then ends the process.

売り注文で市場価格がストップ注文のトリガ値以下であると判定した場合(ステップS754でYES)、および、買い注文で市場価格がストップ注文のトリガ値以上であると判定した場合(ステップS762でYES)、CPU12は、処理結果が「ストップ」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS771)。CPU12は、その後処理を終了する。   When it is determined that the market price is less than or equal to the trigger value of the stop order in the sell order (YES in step S754), and when it is determined that the market price is greater than or equal to the trigger value of the stop order (YES in step S762) The CPU 12 determines that the processing result is “stop” and stores it in the main storage device 13 or the auxiliary storage device 14 (step S771). The CPU 12 then ends the process.

図24は、相対トリガトレール判定サブルーチンの処理の流れを示すフローチャートである。相対トリガトレール判定のサブルーチンは、市場価格に応じて逆指値をトレールしながら相対トリガトレールの条件が満たされたことを判定するサブルーチンである。図24を使用して、相対トリガトレール判定のサブルーチンの処理の流れを説明する。   FIG. 24 is a flowchart showing the flow of processing of a relative trigger trail determination subroutine. The relative trigger trail determination subroutine is a subroutine for determining that the condition of the relative trigger trail is satisfied while following the stop price according to the market price. The flow of processing of the relative trigger trail determination subroutine will be described with reference to FIG.

CPU12は、判定する対象の注文が売り注文であるか否かを判定する(ステップS791)。売り注文であると判定した場合(ステップS791でYES)、CPU12は、注文価格を市場価格から利益確定注文のトレール幅ΔRを減算した値に設定する(ステップS792)。ここで、注文価格は逆指値注文価格である。   The CPU 12 determines whether or not the order to be determined is a sell order (step S791). If it is determined that the order is a sell order (YES in step S791), the CPU 12 sets the order price to a value obtained by subtracting the trail width ΔR of the profit confirmation order from the market price (step S792). Here, the order price is a stop order price.

CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS793)。CPU12は、市場価格から利益確定注文のトレール幅ΔRを減算した値が注文価格以上であるか否かを判定する(ステップS794)。以上ではないと判定した場合(ステップS794でNO)、CPU12はステップS792に戻る。   CPU12 acquires the market price of a foreign exchange from rate DB41 (step S793). The CPU 12 determines whether or not the value obtained by subtracting the trail width ΔR of the profit-determined order from the market price is equal to or greater than the order price (step S794). When it determines with it not being above (it is NO at step S794), CPU12 returns to step S792.

以上であると判定した場合(ステップS794でYES)、CPU12は市場価格が注文価格以下であるか否かを判定する(ステップS795)。以下ではないと判定した場合(ステップS795でNO)、CPU12はステップS793に戻る。   When it determines with it being above (it is YES at step S794), CPU12 determines whether a market price is below an order price (step S795). If it is determined that it is not below (NO in step S795), the CPU 12 returns to step S793.

売り注文でないと判定した場合(ステップS791でNO)、CPU12は、注文価格を市場価格に利益確定注文のトレール幅ΔRを加算した値に設定する(ステップS796)。ここで、注文価格は逆指値注文価格である。   If it is determined that the order is not a sell order (NO in step S791), the CPU 12 sets the order price to a value obtained by adding the trail width ΔR of the profit-determined order to the market price (step S796). Here, the order price is a stop order price.

CPU12は、レートDB41より外国為替の市場価格を取得する(ステップS797)。CPU12は、市場価格に利益確定注文のトレール幅ΔRを加算した値が注文価格以下であるか否かを判定する(ステップS798)。以下ではないと判定した場合(ステップS798でNO)、CPU12はステップS796に戻る。   CPU12 acquires the market price of a foreign exchange from rate DB41 (step S797). The CPU 12 determines whether or not a value obtained by adding the trail width ΔR of the profit confirmation order to the market price is equal to or less than the order price (step S798). If it is determined that it is not below (NO in step S798), the CPU 12 returns to step S796.

以下であると判定した場合(ステップS798でYES)、CPU12は市場価格が注文価格以上であるか否かを判定する(ステップS799)。以上ではないと判定した場合(ステップS799でNO)、CPU12はステップS797に戻る。   If it is determined that it is below (YES in step S798), the CPU 12 determines whether the market price is equal to or higher than the order price (step S799). If it is determined that the above is not true (NO in step S799), the CPU 12 returns to step S797.

売り注文で市場価格が注文価格以下であると判定した場合(ステップS795でYES)、および、買い注文で市場価格が注文価格以上であると判定した場合(ステップS799でYES)、CPU12は処理を終了する。   When it is determined that the market price is less than or equal to the order price in the sell order (YES in step S795), and when it is determined that the market price is greater than or equal to the order price in the buy order (YES in step S799), the CPU 12 performs processing. finish.

なお、CPU12は、新規注文のみを受け付けても良い。たとえば、長期保有を望む投資家、および市場価格をリアルタイムに確認して成行注文で決済を行いたい投資家の場合には、ポジション取得のみを本実施の形態の取引装置に任せることができる。同様に、CPU12は既に保有しているポジションの決済注文のみを受け付けても良い。   Note that the CPU 12 may accept only new orders. For example, in the case of an investor who wants to hold for a long period of time and an investor who wants to confirm market prices in real time and settle with market orders, only the position acquisition can be left to the transaction apparatus of the present embodiment. Similarly, the CPU 12 may accept only settlement orders for positions that are already held.

本実施の形態によると、図10を使用して説明したデルタ注文による新規注文を行なうことによりトレンド相場の初期に自動的に有利なポジションを取る取引装置を実現することができる。   According to the present embodiment, it is possible to realize a trading apparatus that automatically takes an advantageous position at the beginning of the trend market by performing a new order based on the delta order described with reference to FIG.

本実施の形態によると、図11を使用して説明した相対トリガトレール注文による決済注文を行い、トレンド相場のピークを検出した直後の有利な条件で自動的にポジションを決済する取引装置を実現することができる。   According to the present embodiment, a transaction apparatus that performs a settlement order by the relative trigger trail order described with reference to FIG. 11 and automatically settles a position under advantageous conditions immediately after detecting a peak of a trend market is realized. be able to.

本実施の形態によると、デルタ注文の他に、従来から使用されている指値注文または成行き注文による新規注文も処理することが可能な取引装置を実現することができる。また、相対トリガトレール注文の他に指値注文による決済利益確定注文も処理することが可能な取引装置を実現することが可能な取引装置を実現することができる。新規注文の執行条件と決済注文との執行条件とを、任意に組み合わせて実施することが可能な取引装置を実現することができる。   According to this embodiment, in addition to the delta order, it is possible to realize a transaction apparatus that can process a conventionally used limit order or a new order by a market order. Moreover, the transaction apparatus which can implement | achieve the transaction apparatus which can process the settlement profit fixed order by a limit order other than a relative trigger trail order is realizable. It is possible to realize a transaction apparatus capable of executing any combination of execution conditions for new orders and execution conditions for settlement orders.

[実施の形態2]
本実施の形態は、市場価格がトレンド相場に入ったか否かを判定するパラメータである判定価格幅Qが、判定時間幅ΔTにおける最高市場価格Hまたは最低市場価格Lとの差である取引装置に関する。
[Embodiment 2]
The present embodiment relates to a transaction apparatus in which a determination price range Q, which is a parameter for determining whether or not a market price has entered a trend market, is a difference from the highest market price H or the lowest market price L in the determination time width ΔT. .

図25は、実施の形態2のデルタ注文による新規注文を説明する説明図である。縦軸は市場価格を示す。横軸は時間を示す。黒丸は、各時間における市場価格を示す。図25を使用して、本実施の形態のデルタ注文について説明する。   FIG. 25 is an explanatory diagram for explaining a new order by a delta order according to the second embodiment. The vertical axis shows the market price. The horizontal axis indicates time. Black circles indicate the market price at each hour. The delta order according to this embodiment will be described with reference to FIG.

図25において、現在時刻をtAで示す。時刻tAにおける市場価格はAである。判定時間幅ΔTの時間Tの開始時刻が時刻tS、終了時刻が時刻tEである。ここで時刻tEは、時刻tAの一つ前のタイムスタンプである。時刻tSから時刻tEまでの時間内における最低市場価格Lおよび最高市場価格Hを図25にHおよびLの記号で示す。 In FIG. 25, the current time is indicated by t A. The market price at time t A is A. The start time of time T of the determination time width ΔT is time t S and the end time is time t E. Here, time t E is a time stamp immediately before time t A. The lowest market price L and the highest market price H within the time period from time t S to time t E are shown by symbols H and L in FIG.

図4を使用して説明したHLDB43の一つのレコードのタイムスタンプフィールドに時刻tEが、市場価格フィールドに時刻tEにおける市場場価格Eが、Lフィールドに最低市場価格Lが、Hフィールドに最高市場価格Hがそれぞれ記録されている。 The time t E in the time stamp field of one record of the HLDB 43 described with reference to FIG. 4, the market price E at the time t E in the market price field, the lowest market price L in the L field, and the highest in the H field Each market price H is recorded.

本実施の形態においては、図12を使用して説明した受注DB52および図13を使用して説明した発注DB53は、ΔPフィールドの代わりに判定価格幅Qを記録するQフィールドを有する。   In the present embodiment, the order DB 52 described with reference to FIG. 12 and the order DB 53 described with reference to FIG. 13 have a Q field for recording a judgment price range Q instead of the ΔP field.

市場価格が上昇トレンド相場に入った場合には、図25に示すように、市場価格Aは最低市場価格Lおよび最高市場価格Hにより示されるレンジ相場の範囲から判定価格幅Q以上高くなる。CPU12は、デルタ注文の条件が満たされたと判定して、約定を行う。ここで、判定価格幅Qは、デルタ注文に関するパラメータである。   When the market price enters an upward trend market, the market price A becomes higher than the judgment price range Q from the range of the range market indicated by the minimum market price L and the maximum market price H, as shown in FIG. The CPU 12 determines that the conditions for the delta order are satisfied, and executes the contract. Here, the judgment price range Q is a parameter related to the delta order.

以上に説明した本実施の形態のデルタ注文について、簡単にまとめる。判定時間幅ΔTは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定する時間幅を示すパラメータである。判定価格幅Qは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定するレンジ相場との差額を示すパラメータである。   The delta order of the present embodiment described above will be briefly summarized. The determination time width ΔT is a parameter indicating a time width for determining whether the market price has entered the uptrend market or the downtrend market. The judgment price range Q is a parameter indicating a difference from the range price for judging whether the market price has entered the uptrend market or the downtrend market.

本実施の形態においては、CPU12は、市場価格Aが最低市場価格Lおよび最高市場価格Hにより示されるレンジ相場の範囲から判定価格幅Q以上離れたことを、市場価格が上昇トレンド相場に入ったことを示す指標に使用する。   In the present embodiment, the CPU 12 has entered the upward trend market price that the market price A is far from the range of the range market indicated by the minimum market price L and the maximum market price H by the determination price range Q or more. Used as an indicator to show that

図26は、実施の形態2のデルタ判定サブルーチンの処理の流れを示すフローチャートである。図26に示すサブルーチンは、図21を使用して説明したデルタ判定のサブルー
チンの代わりに使用するサブルーチンである。ステップS671からステップS675までは、図21と同一であるので説明を省略する。
FIG. 26 is a flowchart showing a flow of processing of the delta determination subroutine of the second embodiment. The subroutine shown in FIG. 26 is a subroutine used instead of the delta determination subroutine described with reference to FIG. Steps S671 to S675 are the same as those in FIG.

買い注文であると判定した場合(ステップS675でYES)、CPU12は、式(12)に基づき市場価格と過去のトレンドと注文時の条件との関係を判定する(ステップS871)。
市場価格≧H+Q ‥‥‥(12)
市場価格は、ステップS672で取得したレートレコードの買レートフィールドに記録された価格である。
Qは、デルタ注文のパラメータである判定価格幅Qである。
Hは、ステップS671で取得したHLレコードの、注文条件の判定時間幅ΔTに対応するHフィールドに記録された価格であり、判定時間幅ΔTの期間内の最高価格を示す。
When it determines with it being a purchase order (it is YES at step S675), CPU12 determines the relationship between a market price, a past trend, and the conditions at the time of an order based on Formula (12) (step S871).
Market price ≧ H + Q (12)
The market price is the price recorded in the buy rate field of the rate record acquired in step S672.
Q is a judgment price range Q that is a parameter of the delta order.
H is the price recorded in the H field corresponding to the determination time width ΔT of the order condition in the HL record acquired in step S671, and indicates the highest price within the period of the determination time width ΔT.

式(12)が真であると判定した場合(ステップS871でYES)、CPU12は、処理結果がONであると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS677)。CPU12は、その後処理を終了する。   If it is determined that the expression (12) is true (YES in step S871), the CPU 12 determines that the processing result is ON and stores it in the main storage device 13 or the auxiliary storage device 14 (step S677). The CPU 12 then ends the process.

式(4)が偽であると判定した場合(ステップS871でNO)、CPU12は、処理結果が「OFF」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS678)。CPU12は、その後処理を終了する。   When it is determined that the expression (4) is false (NO in step S871), the CPU 12 determines that the processing result is “OFF” and stores it in the main storage device 13 or the auxiliary storage device 14 (step S678). ). The CPU 12 then ends the process.

買い注文でないと判定した場合(ステップS675でNO)、CPU12は、式(13)に基づき市場価格と過去のトレンドと注文時の条件との関係を判定する(ステップS872)。
市場価格≦L−Q ‥‥‥(13)
市場価格は、ステップS672で取得したレートレコードの売レートフィールドに記録された価格である。
Qは、デルタ注文のパラメータである判定価格幅Qである。
Lは、ステップS671で取得したHLレコードの、注文条件の判定時間幅ΔTに対応するLフィールドに記録された価格であり、判定時間幅ΔTの期間内の最低価格を示す。
If it is determined that the order is not a buy order (NO in step S675), the CPU 12 determines the relationship between the market price, the past trend, and the condition at the time of order based on the equation (13) (step S872).
Market price ≤ LQ (13)
The market price is the price recorded in the selling rate field of the rate record acquired in step S672.
Q is a judgment price range Q that is a parameter of the delta order.
L is a price recorded in the L field corresponding to the determination time width ΔT of the order condition in the HL record acquired in step S671, and indicates the lowest price within the period of the determination time width ΔT.

式(13)が真であると判定した場合(ステップS872でYES)、CPU12は、処理結果がONであると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS682)。CPU12は、その後処理を終了する。   If it is determined that the expression (13) is true (YES in step S872), the CPU 12 determines that the processing result is ON and stores it in the main storage device 13 or the auxiliary storage device 14 (step S682). The CPU 12 then ends the process.

式(5)が偽であると判定した場合(ステップS872でNO)、CPU12は、処理結果が「OFF」であると判定して、主記憶装置13または補助記憶装置14に記憶する(ステップS683)。CPU12は、その後処理を終了する。   When it is determined that the expression (5) is false (NO in step S872), the CPU 12 determines that the processing result is “OFF” and stores it in the main storage device 13 or the auxiliary storage device 14 (step S683). ). The CPU 12 then ends the process.

本実施の形態によるとレンジ相場の幅の大小にかかわらずデルタ注文による新規注文を行なうことにより、トレンド相場の初期に自動的に有利なポジションを取る取引装置を実現することができる。   According to the present embodiment, it is possible to realize a trading apparatus that automatically takes an advantageous position at the beginning of a trend market by performing a new order by a delta order regardless of the width of the range market.

なお、判定時間幅Qは、最高市場価格Hと最低市場価格Lとの差に対する比率により規定されても良い。投資家が、変動幅の大きい通貨ペアと小さい通貨ペアとの違いをあまり意識する必要のない取引装置を提供することが可能である。   The determination time width Q may be defined by a ratio with respect to a difference between the highest market price H and the lowest market price L. It is possible to provide a trading apparatus in which an investor does not need to be aware of the difference between a currency pair with a large fluctuation range and a currency pair with a small fluctuation range.

[実施の形態3]
本実施の形態は、市場価格がトレンド相場に入ったと判定した後に、トレールにより市場価格の上昇幅、または下落幅に合わせて、逆指値注文の価格をリアルタイムで自動修正する取引装置に関する。実施の形態1と共通する部分については、説明を省略する。
[Embodiment 3]
The present embodiment relates to a trading apparatus that automatically corrects the price of a stop order in real time in accordance with the increase or decrease of the market price by a trail after determining that the market price has entered the trend market. Description of portions common to the first embodiment is omitted.

図27は、実施の形態3の投資家クライアント31の入力画面例を示す説明図である。図27に示す入力画面例は、図9を使用して説明した入力画面例の代わりに使用する画面である。図27に示す入力画面例においては、新規注文欄632を介してデルタトレール注文を受け付けることができる。CPU12は、デルタトレール注文においては、単位判定価格幅ΔP、判定時間幅ΔTおよびトレール幅ΔRの3つのパラメータを受け付ける。   FIG. 27 is an explanatory diagram illustrating an input screen example of the investor client 31 according to the third embodiment. The input screen example shown in FIG. 27 is a screen used instead of the input screen example described with reference to FIG. In the example of the input screen shown in FIG. 27, a delta trail order can be received via the new order column 632. In the delta trail order, the CPU 12 accepts three parameters: a unit determination price range ΔP, a determination time range ΔT, and a trail width ΔR.

図28は、実施の形態3のデルタトレール注文による新規注文を説明する説明図である。縦軸は市場価格を示す。横軸は時間を示す。黒丸は、各時間における市場価格を示す。図28においては、レンジ相場が上昇トレンド相場に転じた後のピーク付近で売りポジションを取り、その後十分に価格が下落した後に買い約定により決済を行う場合を例にして説明する。   FIG. 28 is an explanatory diagram for explaining a new order by the delta trail order according to the third embodiment. The vertical axis shows the market price. The horizontal axis indicates time. Black circles indicate the market price at each hour. In FIG. 28, an example will be described in which a selling position is taken near the peak after the range market has turned to an uptrend market, and then the price is sufficiently lowered and then settlement is made by a purchase contract.

図28において、時刻t41から説明を開始する。時刻t41における市場価格はP41である。判定時間幅ΔTの時間Tの開始時刻が時刻tS、終了時刻が時刻tEである。ここで時刻tEは、時刻t41の一つ前のタイムスタンプである。時刻tSから時刻tEまでの時間内における最低市場価格Lおよび最高市場価格Hを図28にHおよびLの記号で示す。 In FIG. 28, the description starts from time t41. The market price at time t41 is P41. The start time of time T of the determination time width ΔT is time t S and the end time is time t E. Here, time t E is a time stamp immediately before time t 41. The minimum market price L and the maximum market price H within the time period from time t S to time t E are shown by symbols H and L in FIG.

図28において、時刻t41における市場価格P41と最低市場価格Lとの差は、単位判定価格幅ΔPと判定時間幅ΔTとの積である判定価格幅よりも大きい。CPU12は、トレールを行うトリガがONになったと判定する。   In FIG. 28, the difference between the market price P41 and the minimum market price L at time t41 is larger than the determination price range that is the product of the unit determination price range ΔP and the determination time range ΔT. The CPU 12 determines that the trail trigger is turned on.

CPU12は、市場価格P41にトレール幅ΔRを加算して狙い価格N1を設定する。狙い価格N1は、新たに売りポジションを取得する新規注文を実施する逆指値である。   The CPU 12 sets the target price N1 by adding the trail width ΔR to the market price P41. The target price N1 is a stop price for executing a new order for newly acquiring a selling position.

時刻t42における市場価格P42は狙い価格N1よりも高いので、CPU12は市場価格P42にトレール幅ΔRを加算した狙い価格N2を設定する。時刻tCにおける市場価格Cが狙い価格N2以下であるので、CPU12は新規注文を実施する。 Since the market price P42 at time t42 is higher than the target price N1, the CPU 12 sets a target price N2 obtained by adding the trail width ΔR to the market price P42. Since the market price C at time t C is equal to or less than the target price N2, the CPU 12 executes a new order.

その後、市場価格が下落した時刻tDにおいて、CPU12は反対売買によりポジションを決済する。以上によりポジション取得価格Cと決済価格Dとの差額に対応する利益が生じる。 After that, at time t D when the market price drops, the CPU 12 settles the position by counter-trading. As a result, a profit corresponding to the difference between the position acquisition price C and the settlement price D is generated.

以上に説明したデルタトレール注文について、簡単にまとめる。判定時間幅ΔTは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定する時間幅を示すパラメータである。単位判定価格幅ΔPは、市場価格が上昇トレンド相場または下降トレンド相場に入ったか否かを判定する単位時間あたりの価格幅を示すパラメータである。トレール幅ΔRは、デルタトレール注文の逆指値の変動量を定めるパラメータである。   A brief summary of the Delta Trail orders described above. The determination time width ΔT is a parameter indicating a time width for determining whether the market price has entered the uptrend market or the downtrend market. The unit determination price range ΔP is a parameter indicating the price range per unit time for determining whether or not the market price has entered the uptrend market or the downtrend market. The trail width ΔR is a parameter that determines the amount of change in the stop price of a delta trail order.

本実施の形態においては、CPU12は、トレンド相場の開始を検出した後に、トレールを開始する。CPU12は、トレンド相場の終了を検知してポジションを取得する。   In the present embodiment, the CPU 12 starts the trail after detecting the start of the trend market. The CPU 12 acquires the position by detecting the end of the trend market.

図29は、実施の形態3のポジション取得サブルーチンの処理の流れを示すフローチャートである。図29に示すサブルーチンは、図20を使用して説明したポジション取得のサブルーチンの代わりに使用するサブルーチンである。なお、本実施の形態においては、ステップS521で取得した新規注文の執行条件は、デルタ注文、デルタトレール注文、
指値注文または成行注文のいずれかである。
FIG. 29 is a flowchart showing the flow of processing of the position acquisition subroutine of the third embodiment. The subroutine shown in FIG. 29 is a subroutine used instead of the position acquisition subroutine described with reference to FIG. In the present embodiment, the execution conditions of the new order acquired in step S521 are the delta order, the delta trail order,
Either a limit order or a market order.

CPU12は、ステップS521で取得した新規注文の執行条件がデルタ注文またはデルタトレール注文であるか否かを判定する(ステップS901)。デルタ注文またはデルタトレール注文であると判定した場合(ステップS901でYES)、CPU12は、デルタ判定のサブルーチンを起動する(ステップS642)。デルタ判定のサブルーチンは、図21を使用して説明したサブルーチンと同一のサブルーチンである。   The CPU 12 determines whether or not the execution condition of the new order acquired in step S521 is a delta order or a delta trail order (step S901). If it is determined that the order is a delta order or a delta trail order (YES in step S901), the CPU 12 activates a delta determination subroutine (step S642). The subroutine for delta determination is the same subroutine as the subroutine described with reference to FIG.

CPU12は、デルタ判定のサブルーチンの処理結果がONであるか否かを判定する(ステップS643)。ONでないと判定した場合(ステップS643でNO)、CPU12は、デルタ注文の処理を終了するか否かを判定する(ステップS644)。終了しないと判定した場合(ステップS644でNO)、CPU12は、ステップS642に戻る。   The CPU 12 determines whether or not the processing result of the delta determination subroutine is ON (step S643). If it is determined that it is not ON (NO in step S643), the CPU 12 determines whether or not to end the delta order process (step S644). When it determines with not complete | finishing (it is NO at step S644), CPU12 returns to step S642.

ONであると判定した場合(ステップS643でYES)、CPU12は、ステップS521で取得した新規注文の執行条件がデルタトレール注文であるか否かを判定する(ステップS902)。   When it determines with it being ON (it is YES at step S643), CPU12 determines whether the execution condition of the new order acquired at step S521 is a delta trail order (step S902).

デルタトレール注文であると判定した場合(ステップS902でYES)、CPU12は相対トリガトレール判定のサブルーチンを起動する(ステップS903)。相対トリガトレール判定にサブルーチンは、図24を使用して説明したサブルーチンと同一のサブルーチンである。CPU12は、相対トリガトレール判定のサブルーチンで定まる条件に基づいて、逆指値約定を行う(ステップS904)。   If it is determined that the order is a delta trail order (YES in step S902), the CPU 12 activates a relative trigger trail determination subroutine (step S903). The subroutine for the relative trigger trail determination is the same subroutine as the subroutine described with reference to FIG. The CPU 12 executes the stop limit contract based on the conditions determined by the relative trigger trail determination subroutine (step S904).

デルタ注文またはデルタトレール注文でないと判定した場合(ステップS901でNO)、CPU12は、ステップS521で取得した新規注文の執行条件が指値注文であるか否かを判定する(ステップS651)。ステップS651からステップS655までは、図20と同一であるので説明を省略する。   If it is determined that the order is not a delta order or a delta trail order (NO in step S901), the CPU 12 determines whether or not the execution condition of the new order acquired in step S521 is a limit order (step S651). Steps S651 to S655 are the same as those in FIG.

指値注文でないと判定した場合(ステップS651でNO)およびデルタトレール注文でないと判定した場合(ステップS902でNO)、CPU12は、市場価格で約定を行う成行約定の処理を行う(ステップS905)。   If it is determined that the order is not a limit order (NO in step S651) and if it is determined that the order is not a delta trail order (NO in step S902), the CPU 12 performs a market execution process for executing a contract at the market price (step S905).

ステップS904、ステップS905またはステップS655の終了後、CPU12は、ポジションDB54に約定した注文の注文番号、通貨ペア、取引種別、約定価格、取引金額、約定日時および決済注文の番号を記録する(ステップS656)。   After completion of step S904, step S905 or step S655, the CPU 12 records the order number, currency pair, transaction type, contract price, transaction amount, contract date / time, and settlement order number of the contract executed in the position DB 54 (step S656). ).

デルタ注文の処理を終了すると判定した場合(ステップS644でYES)、指値注文の処理を終了すると判定した場合(ステップS654でYES)、およびステップS656の終了後、CPU12は処理を終了する。   When it is determined that the delta order process is to be ended (YES in step S644), when it is determined that the limit order process is to be ended (YES in step S654), and after the end of step S656, the CPU 12 ends the process.

本実施の形態によると、市場価格がトレンド相場に入った後、ピーク付近でポジションを取得する取引装置を提供することが可能である。   According to the present embodiment, it is possible to provide a transaction apparatus that acquires a position near a peak after the market price enters a trend market.

[実施の形態4]
本実施の形態は、約定の直前に証拠金の確認を行う取引装置に関する。実施の形態3と共通する部分については、説明を省略する。
[Embodiment 4]
The present embodiment relates to a transaction apparatus that confirms margin immediately before a contract. Description of parts common to the third embodiment is omitted.

図30は、実施の形態4のポジション取得サブルーチンの処理の流れを示すフローチャートである。図30に示すサブルーチンは、図20を使用して説明したポジション取得のサブルーチンの代わりに使用するサブルーチンである。なお、本実施の形態においては、
ステップS521で取得した新規注文の執行条件は、デルタ注文、指値注文または成行注文のいずれかである。
FIG. 30 is a flowchart showing a process flow of the position acquisition subroutine of the fourth embodiment. The subroutine shown in FIG. 30 is a subroutine used instead of the position acquisition subroutine described with reference to FIG. In this embodiment,
The execution condition of the new order acquired in step S521 is one of delta order, limit order or market order.

ステップS641からステップS644まで、およびステップS651からステップS654までは、図20と同一であるので説明を省略する。   Steps S641 to S644 and steps S651 to S654 are the same as those in FIG.

デルタ判定のサブルーチンの処理結果がONであると判定した場合(ステップS643でYES)および指値注文ではないと判定した場合(ステップS651でNO)、CPU12は、図17を使用して説明した証拠金確認のサブルーチンを起動する(ステップS911)。   When it is determined that the processing result of the delta determination subroutine is ON (YES in step S643) and when it is determined that the order is not a limit order (NO in step S651), the CPU 12 determines the margin described with reference to FIG. A confirmation subroutine is activated (step S911).

CPU12は、証拠金確認サブルーチンの処理結果に基づき証拠金が足りるか否かを判定する(ステップS912)。証拠金が足りると判定した場合(ステップS912でYES)、CPU12は、市場価格で約定を行う成行約定の処理を行う(ステップS645)。証拠金が足りないと判定した場合(ステップS912でNO)、CPU12は処理を終了する。   The CPU 12 determines whether the margin is sufficient based on the processing result of the margin confirmation subroutine (step S912). If it is determined that the margin is sufficient (YES in step S912), the CPU 12 performs a market execution process for executing a contract at the market price (step S645). If it is determined that the margin is insufficient (NO in step S912), the CPU 12 ends the process.

指値注文が成立可であると判定した場合(ステップS653でYES)、CPU12は、図17を使用して説明した証拠金確認のサブルーチンを起動する(ステップS913)。   If it is determined that the limit order is acceptable (YES in step S653), the CPU 12 activates the margin confirmation subroutine described with reference to FIG. 17 (step S913).

CPU12は、証拠金確認サブルーチンの処理結果に基づき証拠金が足りるか否かを判定する(ステップS914)。証拠金が足りると判定した場合(ステップS914でYES)、CPU12は、指値注文による約定の処理を行う(ステップS655)。証拠金が足りないと判定した場合(ステップS914でNO)、CPU12は処理を終了する。   The CPU 12 determines whether the margin is sufficient based on the processing result of the margin confirmation subroutine (step S914). If it is determined that the margin is sufficient (YES in step S914), the CPU 12 performs a contract processing by a limit order (step S655). If it is determined that the margin is insufficient (NO in step S914), the CPU 12 ends the process.

ステップS645またはステップS655の終了後、CPU12は、ポジションDB54に約定した注文の注文番号、通貨ペア、取引種別、約定価格、取引金額、約定日時および決済注文の番号を記録する(ステップS656)。   After step S645 or step S655 is completed, the CPU 12 records the order number, currency pair, transaction type, contract price, transaction amount, contract date / time, and settlement order number of the contract executed in the position DB 54 (step S656).

デルタ注文の処理を終了すると判定した場合(ステップS644でYES)、指値注文の処理を終了すると判定した場合(ステップS654でYES)、およびステップS656の終了後、CPU12は処理を終了する。   When it is determined that the delta order process is to be ended (YES in step S644), when it is determined that the limit order process is to be ended (YES in step S654), and after the end of step S656, the CPU 12 ends the process.

前述のとおり、CPU12は図15を使用して説明したプログラムを複数並行して実行する。CPU12は、ステップS911またはステップ913の証拠金確認のサブルーチンの起動からステップS645またはステップS655の約定までの間はプログラムの処理の優先度を高くして、短時間で処理を行うことが望ましい。   As described above, the CPU 12 executes a plurality of programs described with reference to FIG. 15 in parallel. It is desirable that the CPU 12 increase the processing priority of the program and perform the processing in a short time from the start of the margin confirmation subroutine of step S911 or step 913 to the execution of step S645 or step S655.

本実施の形態によると、約定直前に証拠金を確認することにより、約定した直後にロスカットが生じて投資家が損失をうけることを防止する取引装置を提供することができる。   According to the present embodiment, by confirming the margin immediately before the contract, it is possible to provide a transaction apparatus that prevents a loss cut from occurring immediately after the contract is made and an investor is incurred.

[実施の形態5]
図31は、実施の形態5の取引装置の動作を示す機能ブロック図である。本実施の形態の取引装置の一例である投資家サーバ11は、CPU12による制御に基づいて以下のように動作する。
[Embodiment 5]
FIG. 31 is a functional block diagram illustrating the operation of the transaction apparatus according to the fifth embodiment. Investor server 11, which is an example of the transaction apparatus according to the present embodiment, operates as follows based on control by CPU 12.

投資家サーバ11は、条件取得部86と、過去価格取得部87と、市場価格取得部88と約定部89とを備える。条件取得部86は、金融商品の市場価格に関する判定時間幅と判定価格幅とを取得する。過去価格取得部87は、条件取得部86が取得した判定時間幅
の範囲の過去の時間における金融商品の市場価格の範囲を取得する。市場価格取得部88は、金融商品の市場価格を逐次取得する。約定部89は、市場価格取得部88が取得した第1市場価格が、過去価格取得部87が取得した範囲から条件取得部86が取得した判定価格幅以上に高い場合に、買いポジション取得の約定を行う。
The investor server 11 includes a condition acquisition unit 86, a past price acquisition unit 87, a market price acquisition unit 88, and a contract unit 89. The condition acquisition unit 86 acquires a determination time range and a determination price range related to the market price of the financial product. The past price acquisition unit 87 acquires the range of the market price of the financial product in the past time within the range of the determination time width acquired by the condition acquisition unit 86. The market price acquisition unit 88 sequentially acquires the market price of the financial product. When the first market price acquired by the market price acquiring unit 88 is higher than the judgment price range acquired by the condition acquiring unit 86 from the range acquired by the past price acquiring unit 87, the contracting unit 89 executes the contract for acquiring the buying position. I do.

[実施の形態6]
実施の形態6は、汎用のコンピュータとプログラム71とを組み合わせて動作させることにより、本実施の形態の取引装置を実現する形態に関する。図32は、実施の形態6の取引システム10の構成を示す説明図である。図32を使用して、本実施の形態の構成を説明する。なお、実施の形態1と共通する部分の説明は省略する。
[Embodiment 6]
The sixth embodiment relates to a mode for realizing the transaction apparatus according to the present embodiment by operating a general-purpose computer and a program 71 in combination. FIG. 32 is an explanatory diagram showing the configuration of the transaction system 10 according to the sixth embodiment. The configuration of the present embodiment will be described using FIG. Note that description of portions common to the first embodiment is omitted.

本実施の形態の取引システム10は、取引システム10は、投資家マシン74、レート記録マシン75、投資家クライアント31、金融機関サーバ32およびこれらを相互に接続するネットワークを含む。   The trading system 10 of the present embodiment includes an investor machine 74, a rate recording machine 75, an investor client 31, a financial institution server 32, and a network that interconnects these.

金融商品取引業者が管理および運用を行う投資家マシン74およびレート記録マシン75は、汎用のパーソナルコンピュータ、大型計算機等の情報機器等である。また、本実施の形態の投資家マシン74およびレート記録マシン75は、大型計算機上で動作する仮想マシンでも良い。   The investor machine 74 and the rate recording machine 75 managed and operated by the financial product trader are information devices such as general-purpose personal computers and large computers. Further, the investor machine 74 and the rate recording machine 75 of the present embodiment may be virtual machines that operate on a large computer.

投資家マシン74は、CPU12、主記憶装置13、補助記憶装置14、通信部15、読取部16およびバスを備える。レート記録マシン75は、レート記録CPU22、主記憶装置23、補助記憶装置24、通信部25およびバスを備える。   The investor machine 74 includes a CPU 12, a main storage device 13, an auxiliary storage device 14, a communication unit 15, a reading unit 16, and a bus. The rate recording machine 75 includes a rate recording CPU 22, a main storage device 23, an auxiliary storage device 24, a communication unit 25, and a bus.

プログラム71は、可搬型記録媒体72に記録されている。CPU12は、読取部16を介してプログラム71を読み込み、補助記憶装置14に保存する。またCPU12は、投資家マシン74内に実装されたフラッシュメモリ等の半導体メモリ73に記憶されたプログラム71を読出しても良い。さらに、CPU12は、通信部15およびネットワークを介して接続される図示しない他のサーバコンピュータからプログラム71をダウンロードして補助記憶装置14に保存しても良い。   The program 71 is recorded on a portable recording medium 72. The CPU 12 reads the program 71 via the reading unit 16 and stores it in the auxiliary storage device 14. Further, the CPU 12 may read the program 71 stored in the semiconductor memory 73 such as a flash memory mounted in the investor machine 74. Furthermore, the CPU 12 may download the program 71 from the communication unit 15 and another server computer (not shown) connected via the network and store it in the auxiliary storage device 14.

プログラム71のうち、投資家マシン74が実行する部分は、投資家マシン74の制御プログラムとしてインストールされ、主記憶装置13にロードして実行される。これにより、投資家マシン74は上述した投資家サーバ11として機能する。   Of the program 71, the part executed by the investor machine 74 is installed as a control program for the investor machine 74, loaded into the main storage device 13 and executed. Thereby, the investor machine 74 functions as the investor server 11 described above.

また、プログラム71のうちレート記録マシン75が実行する部分はネットワークを介してレート記録マシン75の制御プログラムとしてインストールされ、主記憶装置23にロードして実行される。これにより、レート記録マシン75は上述したレート記録サーバ21として機能する。   A portion of the program 71 that is executed by the rate recording machine 75 is installed as a control program for the rate recording machine 75 via the network, and is loaded into the main storage device 23 and executed. Thereby, the rate recording machine 75 functions as the rate recording server 21 described above.

各実施例で記載されている技術的特徴(構成要件)はお互いに組合せ可能であり、組み合わせすることにより、新しい技術的特徴を形成することができる。
今回開示された実施の形態はすべての点で例示であって、制限的なものでは無いと考えられるべきである。本発明の範囲は、上記した意味では無く、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。
The technical features (components) described in each embodiment can be combined with each other, and new technical features can be formed by combining them.
The embodiments disclosed herein are illustrative in all respects and should not be considered as restrictive. The scope of the present invention is defined not by the above-described meaning but by the scope of the claims, and is intended to include all modifications within the meaning and scope equivalent to the scope of the claims.

10 取引システム
11 投資家サーバ(取引装置)
12 CPU
13 主記憶装置
14 補助記憶装置
15 通信部
16 読取部
21 レート記録サーバ
22 レート記録CPU
23 主記憶装置
24 補助記憶装置
25 通信部
31 投資家クライアント
32 金融機関サーバ
41 レートDB
42 デルタTDB
43 HLDB
51 投資家情報DB
52 受注DB
53 発注DB
54 ポジションDB
61 通貨ペア欄
62 金額欄
63 新規欄
631 新規種別欄
632 新規注文欄
64 決済欄
641 決済種別欄
642 利益確定注文欄
643 ストップ注文欄
65 反復欄
71 プログラム
72 可搬型記録媒体
73 半導体メモリ
74 投資家マシン
75 レート記録マシン
86 条件取得部
87 過去価格取得部
88 市場価格取得部
89 約定部
10 Transaction System 11 Investor Server (Transaction Device)
12 CPU
13 Main Storage Device 14 Auxiliary Storage Device 15 Communication Unit 16 Reading Unit 21 Rate Recording Server 22 Rate Recording CPU
23 Main storage device 24 Auxiliary storage device 25 Communication unit 31 Investor client 32 Financial institution server 41 Rate DB
42 Delta TDB
43 HLDB
51 Investor Information DB
52 Order DB
53 Order DB
54 Position DB
61 Currency Pair Field 62 Amount Field 63 New Field 631 New Type Field 632 New Order Field 64 Settlement Field 641 Settlement Type Field 642 Profit Determination Order Field 643 Stop Order Field 65 Repeat Field 71 Program 72 Portable Recording Medium 73 Semiconductor Memory 74 Investor Machine 75 Rate recording machine 86 Condition acquisition part 87 Past price acquisition part 88 Market price acquisition part 89 Contract part

Claims (15)

金融商品の市場価格に関する判定時間幅と判定価格幅とを取得する条件取得部と、
前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、
金融商品の市場価格を逐次取得する市場価格取得部と、
前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に高い場合に、買いポジション取得の約定を行う約定部と
を備える取引装置。
A condition acquisition unit for acquiring a determination time range and a determination price range related to a market price of a financial product;
A past price acquisition unit that acquires a range of market prices of financial products in a past time within a range of determination time widths acquired by the condition acquisition unit;
A market price acquisition unit that sequentially acquires market prices of financial products;
A contracting unit for executing a buy position acquisition when a first market price acquired by the market price acquiring unit is higher than a determination price range acquired by the condition acquiring unit from a range acquired by the past price acquiring unit; A transaction apparatus comprising:
金融商品の市場価格に関する判定時間幅と判定価格幅とを取得する条件取得部と、
前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、
金融商品の市場価格を逐次取得する市場価格取得部と、
前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に安い場合に、売りポジション取得の約定を行う約定部と
を備える取引装置。
A condition acquisition unit for acquiring a determination time range and a determination price range related to a market price of a financial product;
A past price acquisition unit that acquires a range of market prices of financial products in a past time within a range of determination time widths acquired by the condition acquisition unit;
A market price acquisition unit that sequentially acquires market prices of financial products;
A contracting unit for executing a selling position acquisition when the first market price acquired by the market price acquiring unit is cheaper than a judgment price range acquired by the condition acquiring unit from a range acquired by the past price acquiring unit; A transaction apparatus comprising:
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得する条件取得部と、
前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、
金融商品の市場価格を逐次取得する市場価格取得部と、
前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に高い場合に、前記第1市場価格に前記トレール幅を加算した逆指値を算出する逆指値算出部と、
前記市場価格取得部が前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値算出部が算出した逆指値以下である場合に、売りポジション取得の約定を行う約定部と
を備える取引装置。
A condition acquisition unit that acquires a determination time width, a determination price width, and a trail width related to a market price of a financial product;
A past price acquisition unit that acquires a range of market prices of financial products in a past time within a range of determination time widths acquired by the condition acquisition unit;
A market price acquisition unit that sequentially acquires market prices of financial products;
When the first market price acquired by the market price acquisition unit is higher than the determination price range acquired by the condition acquisition unit from the range acquired by the past price acquisition unit, the trail width is added to the first market price. An inverse limit calculation unit for calculating the added stop limit;
An execution unit for executing a sale position acquisition when a second market price acquired by the market price acquisition unit after the first market price is equal to or less than the stop price calculated by the stop price calculation unit; Trading device.
前記逆指値算出部は、前記第2市場価格が前記逆指値よりも高い場合に、前記第2市場価格に前記トレール幅を加算した新たな逆指値を算出する
請求項3に記載の取引装置。
The transaction apparatus according to claim 3, wherein the stop price calculation unit calculates a new stop price obtained by adding the trail width to the second market price when the second market price is higher than the stop price.
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得する条件取得部と、
前記条件取得部が取得した判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得する過去価格取得部と、
金融商品の市場価格を逐次取得する市場価格取得部と、
前記市場価格取得部が取得した第1市場価格が、前記過去価格取得部が取得した範囲から前記条件取得部が取得した判定価格幅以上に安い場合に、前記第1市場価格から前記トレール幅を減算した逆指値を算出する逆指値算出部と、
前記市場価格取得部が前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値算出部が算出した逆指値以上である場合に、買いポジション取得の約定を行う約定部と
を備える取引装置。
A condition acquisition unit that acquires a determination time width, a determination price width, and a trail width related to a market price of a financial product;
A past price acquisition unit that acquires a range of market prices of financial products in a past time within a range of determination time widths acquired by the condition acquisition unit;
A market price acquisition unit that sequentially acquires market prices of financial products;
When the first market price acquired by the market price acquisition unit is cheaper than the determination price range acquired by the condition acquisition unit from the range acquired by the past price acquisition unit, the trail width is calculated from the first market price. An inverse stop price calculation unit for calculating the sub stop price after subtraction;
A contract unit for executing a buy position acquisition when the second market price acquired after the first market price by the market price acquisition unit is equal to or greater than the stop price calculated by the stop price calculation unit; Trading device.
前記逆指値算出部は、前記第2市場価格が前記逆指値よりも安い場合に、前記第2市場価格から前記トレール幅を減算した新たな逆指値を算出する
請求項5に記載の取引装置。
The transaction apparatus according to claim 5, wherein the stop price calculation unit calculates a new stop price by subtracting the trail width from the second market price when the second market price is lower than the stop price.
前記金融商品は、担保にした有効証拠金以上の金額で外貨を取引可能な外国為替証拠金取引であり、
前記条件取得部は、新規または決済の取引区分と、取引金額とをさらに取得し、
前記取引区分が新規である場合に、前記第1市場価格と前記取引金額とに基づいて約定した場合の前記有効証拠金の過不足を判定する証拠金判定部を備える請求項1から請求項6のいずれか一つに記載の取引装置。
The financial product is a foreign exchange margin transaction in which foreign currency can be traded with an amount equal to or greater than the effective margin as collateral,
The condition acquisition unit further acquires a new or settlement transaction category and a transaction amount,
The margin determination part which determines the excess and deficiency of the said effective margin when it is contracted based on the said 1st market price and the said transaction amount when the said transaction classification is new, The claim | prescribed margin is a claim. The transaction device according to any one of the above.
金融商品の市場価格に関する判定時間幅と判定価格幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に高い場合に、買いポジション取得の約定を行う
処理をコンピュータに実行させる取引プログラム。
Obtain the judgment time range and judgment price range for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
A trading program for causing a computer to execute a process of executing a buy position acquisition when the acquired first market price is higher than the judgment price range from the market price range.
金融商品の市場価格に関する判定時間幅と判定価格幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に安い場合に、売りポジション取得の約定を行う
処理をコンピュータに実行させる取引プログラム。
Obtain the judgment time range and judgment price range for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
A trading program for causing a computer to execute a process of executing a sale position acquisition when the acquired first market price is cheaper than the judgment price range from the market price range.
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に高い場合に、前記第1市場価格に前記トレール幅を加算した逆指値を算出し、
前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値以下である場合に売りポジション取得の約定を行う
処理をコンピュータに実行させる取引プログラム。
Obtain the judgment time width, judgment price width, and trail width for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
When the acquired first market price is higher than the judgment price range from the market price range, calculate a stop price obtained by adding the trail width to the first market price;
A trading program for causing a computer to execute a process for executing a sale position acquisition when a second market price acquired after the first market price is equal to or less than the stop price.
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に安い場合に、前記第1市場価格から前記トレール幅を減算した逆指値を算出し、
前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値以上である場合に買いポジション取得の約定を行う
処理をコンピュータに実行させる取引プログラム。
Obtain the judgment time width, judgment price width, and trail width for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
When the acquired first market price is cheaper than the judgment price range from the market price range, calculate a stop price obtained by subtracting the trail width from the first market price;
A transaction program for causing a computer to execute a process of executing a buy position acquisition when a second market price acquired after the first market price is equal to or greater than the stop price.
金融商品の市場価格に関する判定時間幅と判定価格幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に高い場合に、買いポジション取得の約定を行う
処理をコンピュータに実行させる取引方法。
Obtain the judgment time range and judgment price range for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
A transaction method for causing a computer to execute a process of executing a purchase position acquisition when the acquired first market price is higher than the judgment price range from the market price range.
金融商品の市場価格に関する判定時間幅と判定価格幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に安い場合に、売りポジション取得の約定を行う
処理をコンピュータに実行させる取引方法。
Obtain the judgment time range and judgment price range for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
A transaction method for causing a computer to execute a process of executing a sale position acquisition when the acquired first market price is cheaper than the judgment price range from the market price range.
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に高い場合に、前記第1市場価格に前記トレール幅を加算した逆指値を算出し、
前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値以下である場合に売りポジション取得の約定を行う
処理をコンピュータに実行させる取引方法。
Obtain the judgment time width, judgment price width, and trail width for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
When the acquired first market price is higher than the judgment price range from the market price range, calculate a stop price obtained by adding the trail width to the first market price;
A transaction method for causing a computer to execute a process of executing a sale position acquisition when a second market price acquired after the first market price is equal to or less than the stop price.
金融商品の市場価格に関する判定時間幅と判定価格幅とトレール幅とを取得し、
前記判定時間幅の範囲の過去の時間における金融商品の市場価格の範囲を取得し、
取得した第1市場価格が、前記市場価格の範囲から前記判定価格幅以上に安い場合に、前記第1市場価格から前記トレール幅を減算した逆指値を算出し、
前記第1市場価格よりも後に取得した第2市場価格が、前記逆指値以上である場合に買いポジション取得の約定を行う
処理をコンピュータに実行させる取引方法。
Obtain the judgment time width, judgment price width, and trail width for the market price of financial products,
Obtaining the market price range of the financial product in the past time range of the judgment time range;
When the acquired first market price is cheaper than the judgment price range from the market price range, calculate a stop price obtained by subtracting the trail width from the first market price;
A transaction method for causing a computer to execute a process of executing a purchase position acquisition when a second market price acquired after the first market price is equal to or greater than the stop price.
JP2016207121A 2016-10-21 2016-10-21 Trading equipment, trading programs and trading methods Active JP6832127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016207121A JP6832127B2 (en) 2016-10-21 2016-10-21 Trading equipment, trading programs and trading methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016207121A JP6832127B2 (en) 2016-10-21 2016-10-21 Trading equipment, trading programs and trading methods

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021003638A Division JP6999077B2 (en) 2021-01-13 2021-01-13 Trading equipment, trading programs and trading methods

Publications (2)

Publication Number Publication Date
JP2018067256A true JP2018067256A (en) 2018-04-26
JP6832127B2 JP6832127B2 (en) 2021-02-24

Family

ID=62086199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016207121A Active JP6832127B2 (en) 2016-10-21 2016-10-21 Trading equipment, trading programs and trading methods

Country Status (1)

Country Link
JP (1) JP6832127B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004234601A (en) * 2003-02-03 2004-08-19 Fujitsu Ltd Automatic ordering method for commodity trade
JP2008040689A (en) * 2006-08-03 2008-02-21 Mitsubishi Corporation Futures & Securities Ltd Trading order processing system
JP2009217796A (en) * 2008-02-15 2009-09-24 Sony Corp Foreign exchange deposit transaction server, foreign exchange deposit transaction system, processing methods thereof and program
JP2011108206A (en) * 2009-11-20 2011-06-02 Daiwa Institute Of Research Business Innovation Ltd Order processing system and, method and program thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004234601A (en) * 2003-02-03 2004-08-19 Fujitsu Ltd Automatic ordering method for commodity trade
JP2008040689A (en) * 2006-08-03 2008-02-21 Mitsubishi Corporation Futures & Securities Ltd Trading order processing system
JP2009217796A (en) * 2008-02-15 2009-09-24 Sony Corp Foreign exchange deposit transaction server, foreign exchange deposit transaction system, processing methods thereof and program
JP2011108206A (en) * 2009-11-20 2011-06-02 Daiwa Institute Of Research Business Innovation Ltd Order processing system and, method and program thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"「世界のウェブアーカイブ|トレール注文の活用法」", [ONLINE], JPN6020045161, 16 January 2016 (2016-01-16), ISSN: 0004394138 *

Also Published As

Publication number Publication date
JP6832127B2 (en) 2021-02-24

Similar Documents

Publication Publication Date Title
Jang et al. Liquidity premia and transaction costs
US6493682B1 (en) Optimal order choice: evaluating uncertain discounted trading alternatives
Cartea et al. Spoofing and price manipulation in order-driven markets
KR102447254B1 (en) Exchange operation method and system for supporting high speed transaction execution
Ersan et al. Algorithmic and high-frequency trading in Borsa Istanbul
JP7414338B2 (en) Server, authenticity determination system, and data structure
Yoshimori Shadow Exchange Rates–Changing the Winds with Headwinds and Tailwinds
JP2006268557A (en) Sma management system
JP6810574B2 (en) Trading equipment, trading programs and trading methods
WO2016012217A1 (en) Computer systems and methods for balancing indexes
JP6832126B2 (en) Trading equipment, trading programs and trading methods
JP6999077B2 (en) Trading equipment, trading programs and trading methods
CN111369366A (en) Financial product cash-on method, device, equipment and storage medium
JP6832127B2 (en) Trading equipment, trading programs and trading methods
Maluf et al. Empirical evidence: Arbitrage with exchange-traded funds (ETFs) on the Brazilian Market
JP2023007602A (en) Support system for collation of asset information
US20160247225A1 (en) Option Box Volatility Indexes
JP5184321B2 (en) Market impact estimation system
JP2001290943A (en) Method and device for cross trading processing and recording medium having its program recorded thereon
US8719137B2 (en) Arrangement for and a method of determining damages in shareholder class action litigation
JP2002215907A (en) Method and system for dealing uncertain information and computer readable storage medium
JP2002304520A (en) Device for calculating portfolio value and method for the same and its program and recording medium with its program recorded
KR102447258B1 (en) Exchange operation method and system for supporting investment guide model
JP7317417B1 (en) Cash voucher trading system
Doumenis et al. A Critical Analysis of Volatility Surprise in Bitcoin Cryptocurrency and Other Financial Assets. Risks 9: x

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190918

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210201

R150 Certificate of patent or registration of utility model

Ref document number: 6832127

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250