{"id":38855,"date":"2026-06-22T20:37:00","date_gmt":"2026-06-23T01:37:00","guid":{"rendered":"https:\/\/library-staging.tradingtechnologies.com\/doc\/state-block-2\/"},"modified":"2026-06-22T20:37:01","modified_gmt":"2026-06-23T01:37:01","slug":"state-block-2","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/ja\/state-block-2\/","title":{"rendered":"State \u30d6\u30ed\u30c3\u30af"},"content":{"rendered":"<p><!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p>     <!-- in source YML header, should also match the filename\/url --><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-1.png\"><\/p>\n<p>[State] \u30d6\u30ed\u30c3\u30af\u306f\u5165\u529b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u3001\u5185\u90e8\u6570\u5f0f\u306b\u57fa\u3065\u3044\u3066\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u305d\u306e\u307e\u307e\u3001\u51fa\u529b\u30dd\u30fc\u30c8\u306e 1\u3064\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002\u5404\u51fa\u529b\u306b\u5bfe\u3057\u3066\u3001[Boolean] \u5024\u306e\u7d50\u679c\u3092\u8a55\u4fa1\u3059\u308b\u6570\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u53d7\u4fe1\u3059\u308b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3088\u3063\u3066\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u8a55\u4fa1\u306e\uff11\u3064\u304c [TRUE] \u306b\u306a\u308b\u307e\u3067\u6570\u5f0f\u3092\u8a55\u4fa1\u3057\u59cb\u3081\u3001\u305d\u308c\u306b\u4e00\u81f4\u3059\u308b\u51fa\u529b\u30dd\u30fc\u30c8\u3092\u901a\u3058\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u65e2\u5b9a\u3067\u3001\u30d6\u30ed\u30c3\u30af\u306f2\u3064\u306e\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u51fa\u529b\u30dd\u30fc\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u304c\u3001\u4f59\u5206\u306e\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u3001[<a href=\".\/ac-formula-editor.html\">Formula Editor<\/a>] \u3092\u4f7f\u3063\u3066\u6570\u5f0f\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u4f5c\u6210\u3057\u305f [True\/False] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u751f\u6210\u3057\u3066\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u63a5\u7d9a\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3059\u308b\u3068\u3001<strong>#1<\/strong> \u51fa\u529b\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u307e\u3059\u3002<\/li>\n<li>\u63a5\u7d9a\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3059\u308b\u3068\u3001<strong>#2<\/strong> \u51fa\u529b\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u307e\u3059\u3002<\/li>\n<li>\u30d6\u30ed\u30c3\u30af\u306b\u63a5\u7d9a\u3055\u308c\u305f\u5404\u8ffd\u30dd\u30fc\u30c8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u3001\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u51fa\u529b\u3057\u307e\u3059\u3002<\/li>\n<li><em>\u8907\u6570\u306e [TRUE\/FALSE] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u4e00\u5ea6\u306b [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001\u6700\u4e0a\u90e8\u306e\u30dd\u30fc\u30c8\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/em><\/li>\n<\/ul>\n<p><!--\n\n\n<p><span class=\"label label-success\">Example<\/span> <b>Send the incoming discrete event message through output port 1 if the fill quantity in the message is less than half of the order quantity<\/b><\/p>\n\n\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/db-state-block-formula.png\" alt=\"\"><\/p>\n\n\n--><\/p>\n<p>\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u305f\u5f8c\u3001\u5225\u306e\u53d7\u4fe1\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3059\u308b\u307e\u3067\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u6570\u5f0f\u306e\u518d\u8a55\u4fa1\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<p hidden><span class=\"label label-info\">\u6ce8<\/span> [State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u8907\u6570\u306e\u53d7\u4fe1\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9806\u756a\u5f85\u3061\u3057\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u8907\u6570\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c [State] \u30d6\u30ed\u30c3\u30af\u306b\u5165\u3063\u3066\u3082\u3001\u30d6\u30ed\u30c3\u30af\u306f1\u3064\u306e\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u307f\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p hidden>ADL \u306f\u3001\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u53d6\u5f15\u6240\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u78ba\u8a8d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u3001\u3042\u308b\u77ac\u9593\u306b\u767a\u751f\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u308a\u3001\u8981\u6c42\u3092\u9001\u4fe1\u3059\u308b\u64cd\u4f5c\u3092\u6271\u3044\u307e\u3059\u3002\u8a73\u7d30\u306f<a href=\".\/adf-continuous-vs-discrete-event-messages.html\">\u9023\u7d9a\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u5bfe\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u52a0\u3048\u3001\u30e6\u30fc\u30b6\u30fc\u306f [<a href=\".\/ac-formula-editor.html\">Formula Builder<\/a>] \u3092\u4f7f\u3063\u3066\u3001[<strong>Formulas<\/strong>] \u6b04\u306b [True\/False] \u6b04\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3001\u30ab\u30b9\u30bf\u30e0\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002[True\/False] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001ADL \u306f\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u3068\u898b\u306a\u3057\u307e\u3059\u3002<\/p>\n<p><!-- Example\n--><\/p>\n<p><span class=\"label label-success\">\u4f8b<\/span> <b>[State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u5185\u90e8\u6570\u5f0f\u3092\u4f7f\u3063\u3066 3 \u3064\u306e\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u53d7\u4fe1\u3059\u308b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3088\u308a\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u6570\u5f0f\u3092\u8a55\u4fa1\u3057\u3001\u9069\u5207\u306a\u30dd\u30fc\u30c8\u3092\u901a\u3058\u3066\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6e21\u3057\u3001\u30c0\u30a6\u30f3\u30b9\u30c8\u30ea\u30fc\u30e0 \u30ed\u30b8\u30c3\u30af\u3067\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<!-- In this example, the State block compares the snapshot bid price with the continuous bid price and chooses the downstream logic path based on whether the bid price is less than, equal to, or greater than the snapshot bid price, respectively.<\/b>--><\/b><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-example-1.png\" alt=\"\"><\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306e [Formula Editor] \u306f\u30013 \u3064\u306e\u51fa\u529b\u306e\u6570\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u30dd\u30fc\u30c8\u306e\u6570\u5f0f\u306f\u3001&gt; \u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u3001[Snapshot Bid Price] (Value Extractor \u30d6\u30ed\u30c3\u30af\u304b\u3089) \u3068\u3001[Bid Price] \uff08[Field] \u304b\u3089\uff09\u306e\u5024\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u6b8b\u308a\u306e\u6570\u5f0f\u306f\u3001 = \u3068&gt; \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-formula-new-1.png\" alt=\"\"><\/p>\n<p><!--\n\n\n<p hidden>After the statements are defined, the State block must be triggered by a discrete event message. The block does not act upon the trigger, but merely becomes \"loaded,\" ready to \"fire\" a discrete event message from one of its outputs when a user-made True\/False statement turns TRUE.<\/p>\n\n\n\n\n<p>When a user-made True\/False statement turns TRUE, the State block generates and outputs a discrete event message in the following manner:<\/p>\n\n\n\n\n<ul>\n  \n\n<li>Directs the message to the <strong>#1<\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n  \n\n<li>Directs the message to the <strong>#2<\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n  \n\n<li>Directs the message to the <strong>#<em>n<\/em><\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n  \n\n<li>Outputs a message from the top-most port when multiple True\/False statements turn TRUE at once<\/li>\n\n\n<\/ul>\n\n\n\n\n\n<p><span class=\"label label-success\">Example<\/span> <b>Send the incoming discrete event message through output port 1 if the fill quantity in the message is less than half of the order quantity<\/b><\/p>\n\n\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/db-state-block-formula.png\" alt=\"\"><\/p>\n\n\n\n\n\n<p>After outputting its discrete event message, the State block will not re-evaluate its formulas until it receives another incoming discrete event message.<\/p>\n\n\n\n\n<p hidden><span class=\"label label-info\">Note<\/span> The State block will not \"queue\" up multiple incoming discrete event messages - even if multiple message enter the State block, the block can only output a single discrete event message.<\/p>\n\n\n--> <!--\nBlock Properties section\n--><\/p>\n<h2 id=\"block-properties\">\u30d6\u30ed\u30c3\u30af \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3001[<strong>Block Properties<\/strong>] \u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p><!--\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/discrete-block-minmax-settings.png\"><\/p>\n\n\n--><\/p>\n<table class=\"table table-striped table-bordered\" border=\"1\">\n<thead>\n<tr>\n<th>\u30d7\u30ed\u30d1\u30c6\u30a3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Name (\u540d\u524d)<\/td>\n<td>ADL \u30ad\u30e3\u30f3\u30d0\u30b9\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u540d\u524d\u3002<\/td>\n<\/tr>\n<p><!--\n    \n\n<tr>\n      \n\n<td>BodyColor<\/td>\n\n\n      \n\n<td>Background color of the block<\/td>\n\n\n    <\/tr>\n\n\n    --><\/p>\n<tr>\n<td>\u6570\u5f0f<\/td>\n<td>\n<p>\u30d6\u30ed\u30c3\u30af\u306e\u51fa\u529b\u30dd\u30fc\u30c8\u306e\u5024\u306e\u8a08\u7b97\u306b\u4f7f\u7528\u3059\u308b\u6570\u5f0f\u3002<\/p>\n<p><strong>\u7de8\u96c6<\/strong>\u30ea\u30f3\u30af\u306b\u3088\u308a [<a href=\"ac-formula-editor.html\">Formula Editor<\/a>] \u304c\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/td>\n<\/tr>\n<p><!--\n    \n\n<tr>\n      \n\n<td>Description<\/td>\n\n\n      \n\n<td>Optional text to explain how the block is used<\/td>\n\n\n    <\/tr>\n\n\n    --><\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p><!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p>     <!-- in source YML header, should also match the filename\/url --><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-1.png\"><\/p>\n<p>[State] \u30d6\u30ed\u30c3\u30af\u306f\u5165\u529b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u3001\u5185\u90e8\u6570\u5f0f\u306b\u57fa\u3065\u3044\u3066\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u305d\u306e\u307e\u307e\u3001\u51fa\u529b\u30dd\u30fc\u30c8\u306e 1\u3064\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002\u5404\u51fa\u529b\u306b\u5bfe\u3057\u3066\u3001[Boolean] \u5024\u306e\u7d50\u679c\u3092\u8a55\u4fa1\u3059\u308b\u6570\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u53d7\u4fe1\u3059\u308b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3088\u3063\u3066\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u8a55\u4fa1\u306e\uff11\u3064\u304c [TRUE] \u306b\u306a\u308b\u307e\u3067\u6570\u5f0f\u3092\u8a55\u4fa1\u3057\u59cb\u3081\u3001\u305d\u308c\u306b\u4e00\u81f4\u3059\u308b\u51fa\u529b\u30dd\u30fc\u30c8\u3092\u901a\u3058\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u65e2\u5b9a\u3067\u3001\u30d6\u30ed\u30c3\u30af\u306f2\u3064\u306e\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u51fa\u529b\u30dd\u30fc\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u304c\u3001\u4f59\u5206\u306e\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u3001[<a href=\".\/ac-formula-editor.html\">Formula Editor<\/a>] \u3092\u4f7f\u3063\u3066\u6570\u5f0f\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u4f5c\u6210\u3057\u305f [True\/False] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u751f\u6210\u3057\u3066\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u63a5\u7d9a\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3059\u308b\u3068\u3001<strong>#1<\/strong> \u51fa\u529b\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u307e\u3059\u3002<\/li>\n<li>\u63a5\u7d9a\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3059\u308b\u3068\u3001<strong>#2<\/strong> \u51fa\u529b\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u307e\u3059\u3002<\/li>\n<li>\u30d6\u30ed\u30c3\u30af\u306b\u63a5\u7d9a\u3055\u308c\u305f\u5404\u8ffd\u30dd\u30fc\u30c8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5411\u3051\u3001\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u3068\u8a55\u4fa1\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u51fa\u529b\u3057\u307e\u3059\u3002<\/li>\n<li><em>\u8907\u6570\u306e [TRUE\/FALSE] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u4e00\u5ea6\u306b [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001\u6700\u4e0a\u90e8\u306e\u30dd\u30fc\u30c8\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/em><\/li>\n<\/ul>\n<p><!--\n\n\n\n\n<p><span class=\"label label-success\">Example<\/span> <b>Send the incoming discrete event message through output port 1 if the fill quantity in the message is less than half of the order quantity<\/b><\/p>\n\n\n\n\n\n\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/db-state-block-formula.png\" alt=\"\"><\/p>\n\n\n\n\n--><\/p>\n<p>\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u305f\u5f8c\u3001\u5225\u306e\u53d7\u4fe1\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3059\u308b\u307e\u3067\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u6570\u5f0f\u306e\u518d\u8a55\u4fa1\u306f\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<p hidden><span class=\"label label-info\">\u6ce8<\/span> [State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u8907\u6570\u306e\u53d7\u4fe1\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9806\u756a\u5f85\u3061\u3057\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u8907\u6570\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c [State] \u30d6\u30ed\u30c3\u30af\u306b\u5165\u3063\u3066\u3082\u3001\u30d6\u30ed\u30c3\u30af\u306f1\u3064\u306e\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u307f\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p hidden>ADL \u306f\u3001\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u53d6\u5f15\u6240\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u78ba\u8a8d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u3001\u3042\u308b\u77ac\u9593\u306b\u767a\u751f\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u308a\u3001\u8981\u6c42\u3092\u9001\u4fe1\u3059\u308b\u64cd\u4f5c\u3092\u6271\u3044\u307e\u3059\u3002\u8a73\u7d30\u306f<a href=\".\/adf-continuous-vs-discrete-event-messages.html\">\u9023\u7d9a\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u5bfe\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u52a0\u3048\u3001\u30e6\u30fc\u30b6\u30fc\u306f [<a href=\".\/ac-formula-editor.html\">Formula Builder<\/a>] \u3092\u4f7f\u3063\u3066\u3001[<strong>Formulas<\/strong>] \u6b04\u306b [True\/False] \u6b04\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3001\u30ab\u30b9\u30bf\u30e0\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002[True\/False] \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c [TRUE] \u306b\u5909\u308f\u308b\u3068\u3001ADL \u306f\u96e2\u6563\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u3068\u898b\u306a\u3057\u307e\u3059\u3002<\/p>\n<p><!-- Example\n--><\/p>\n<p><span class=\"label label-success\">\u4f8b<\/span> <b>[State] \u30d6\u30ed\u30c3\u30af\u306f\u3001\u5185\u90e8\u6570\u5f0f\u3092\u4f7f\u3063\u3066 3 \u3064\u306e\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u53d7\u4fe1\u3059\u308b\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3088\u308a\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u308b\u3068\u3001[State] \u30d6\u30ed\u30c3\u30af\u306f\u6570\u5f0f\u3092\u8a55\u4fa1\u3057\u3001\u9069\u5207\u306a\u30dd\u30fc\u30c8\u3092\u901a\u3058\u3066\u96e2\u6563\u30a4\u30d9\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6e21\u3057\u3001\u30c0\u30a6\u30f3\u30b9\u30c8\u30ea\u30fc\u30e0 \u30ed\u30b8\u30c3\u30af\u3067\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<!-- In this example, the State block compares the snapshot bid price with the continuous bid price and chooses the downstream logic path based on whether the bid price is less than, equal to, or greater than the snapshot bid price, respectively.<\/b>--><\/b><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-example-1.png\" alt=\"\"><\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306e [Formula Editor] \u306f\u30013 \u3064\u306e\u51fa\u529b\u306e\u6570\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u30dd\u30fc\u30c8\u306e\u6570\u5f0f\u306f\u3001&gt; \u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u3066\u3001[Snapshot Bid Price] (Value Extractor \u30d6\u30ed\u30c3\u30af\u304b\u3089) \u3068\u3001[Bid Price] \uff08[Field] \u304b\u3089\uff09\u306e\u5024\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u6b8b\u308a\u306e\u6570\u5f0f\u306f\u3001 = \u3068&gt; \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/db-state-block-formula-new-1.png\" alt=\"\"><\/p>\n<p><!--\n\n\n\n\n<p hidden>After the statements are defined, the State block must be triggered by a discrete event message. The block does not act upon the trigger, but merely becomes \"loaded,\" ready to \"fire\" a discrete event message from one of its outputs when a user-made True\/False statement turns TRUE.<\/p>\n\n\n\n\n\n\n\n\n<p>When a user-made True\/False statement turns TRUE, the State block generates and outputs a discrete event message in the following manner:<\/p>\n\n\n\n\n\n\n\n\n<ul>\n  \n\n\n\n<li>Directs the message to the <strong>#1<\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n\n\n  \n\n\n\n<li>Directs the message to the <strong>#2<\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n\n\n  \n\n\n\n<li>Directs the message to the <strong>#<em>n<\/em><\/strong> output if the statement tied to it evaluates to TRUE<\/li>\n\n\n\n\n  \n\n\n\n<li>Outputs a message from the top-most port when multiple True\/False statements turn TRUE at once<\/li>\n\n\n\n\n<\/ul>\n\n\n\n\n\n\n\n\n\n<p><span class=\"label label-success\">Example<\/span> <b>Send the incoming discrete event message through output port 1 if the fill quantity in the message is less than half of the order quantity<\/b><\/p>\n\n\n\n\n\n\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/db-state-block-formula.png\" alt=\"\"><\/p>\n\n\n\n\n\n\n\n\n\n<p>After outputting its discrete event message, the State block will not re-evaluate its formulas until it receives another incoming discrete event message.<\/p>\n\n\n\n\n\n\n\n\n<p hidden><span class=\"label label-info\">Note<\/span> The State block will not \"queue\" up multiple incoming discrete event messages - even if multiple message enter the State block, the block can only output a single discrete event message.<\/p>\n\n\n\n\n--> <!--\nBlock Properties section\n--><\/p>\n<h2 id=\"block-properties\">\u30d6\u30ed\u30c3\u30af \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3001[<strong>Block Properties<\/strong>] \u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p><!--\n\n\n\n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/discrete-block-minmax-settings.png\"><\/p>\n\n\n\n\n--><\/p>\n<table class=\"table table-striped table-bordered\" border=\"1\">\n<thead>\n<tr>\n<th>\u30d7\u30ed\u30d1\u30c6\u30a3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Name (\u540d\u524d)<\/td>\n<td>ADL \u30ad\u30e3\u30f3\u30d0\u30b9\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u540d\u524d\u3002<\/td>\n<\/tr>\n<p><!--\n    \n\n\n\n<tr>\n      \n\n\n\n<td>BodyColor<\/td>\n\n\n\n\n      \n\n\n\n<td>Background color of the block<\/td>\n\n\n\n\n    <\/tr>\n\n\n\n\n    --><\/p>\n<tr>\n<td>\u6570\u5f0f<\/td>\n<td>\n<p>\u30d6\u30ed\u30c3\u30af\u306e\u51fa\u529b\u30dd\u30fc\u30c8\u306e\u5024\u306e\u8a08\u7b97\u306b\u4f7f\u7528\u3059\u308b\u6570\u5f0f\u3002<\/p>\n<p><strong>\u7de8\u96c6<\/strong>\u30ea\u30f3\u30af\u306b\u3088\u308a [<a href=\"ac-formula-editor.html\">Formula Editor<\/a>] \u304c\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/td>\n<\/tr>\n<p><!--\n    \n\n\n\n<tr>\n      \n\n\n\n<td>Description<\/td>\n\n\n\n\n      \n\n\n\n<td>Optional text to explain how the block is used<\/td>\n\n\n\n\n    <\/tr>\n\n\n\n\n    --><\/tbody>\n<\/table>\n","protected":false},"author":2,"template":"","meta":{"_acf_changed":false,"footnotes":""},"docs-category":[208],"class_list":["post-38855","doc","type-doc","status-publish","hentry","docs-category-discrete-blocks"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/38855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/38855\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=38855"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=38855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}