{"id":1824,"date":"2026-07-11T17:45:17","date_gmt":"2026-07-11T17:45:17","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=1824"},"modified":"2026-07-11T17:45:20","modified_gmt":"2026-07-11T17:45:20","slug":"%e5%a6%82%e4%bd%95%e5%ad%98%e5%82%a8%e6%8c%87%e6%a0%87%e7%8a%b6%e6%80%81%e4%be%9b%e7%ad%96%e7%95%a5%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/%e5%a6%82%e4%bd%95%e5%ad%98%e5%82%a8%e6%8c%87%e6%a0%87%e7%8a%b6%e6%80%81%e4%be%9b%e7%ad%96%e7%95%a5%e8%ae%bf%e9%97%ae\/","title":{"rendered":"\u5982\u4f55\u5b58\u50a8\u6307\u6807\u72b6\u6001\u4f9b\u7b56\u7565\u8bbf\u95ee"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u9ad8\u9891\u6216\u590d\u6742\u7684\u91cf\u5316\u4ea4\u6613\u4e2d\uff0c\u5b9e\u65f6\uff08on the fly\uff09\u8ba1\u7b97\u4ea4\u6613\u6307\u6807\u5f88\u5bb9\u6613\u8fc5\u901f\u6f14\u53d8\u6210\u8ba1\u7b97\u6027\u80fd\u7684\u74f6\u9888\u3002\u66f4\u91cd\u8981\u7684\u662f\uff0c\u5f53\u4f60\u7684\u7b56\u7565\u4ece\u5386\u53f2\u56de\u6d4b\u8f6c\u5411\u5b9e\u76d8\u6267\u884c\u65f6\uff0c\u5982\u4f55\u7ba1\u7406\u6307\u6807\u5185\u90e8\u8ba1\u7b97\u72b6\u6001\u7684\u4fdd\u6301\u3001\u66f4\u65b0\u548c\u6301\u4e45\u5316\u53d8\u5f97\u81f3\u5173\u91cd\u8981\u3002\u5982\u679c\u72b6\u6001\u7ba1\u7406\u4e0d\u5f53\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u72b6\u6001\u6f02\u79fb\u3001\u5185\u5b58\u6cc4\u6f0f\u6216\u6267\u884c\u5ef6\u8fdf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u5c06\u63a2\u8ba8\u6307\u6807\u72b6\u6001\u6301\u4e45\u5316\u7684\u6280\u672f\u67b6\u6784\uff0c\u5e76\u5c55\u793a\u5982\u4f55\u4f7f\u7528 NinjaTrader 8 (NT8) \u548c C# \u5b9e\u73b0\u4e00\u4e2a\u6e05\u6670\u7684\u72b6\u6001\u5b58\u50a8\u6a21\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"559\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4.png\" alt=\"\u5982\u4f55\u5b58\u50a8\u6307\u6807\u72b6\u6001\" class=\"wp-image-1825\" srcset=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4.png 1024w, https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4-300x164.png 300w, https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4-768x419.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u663e\u5f0f\u72b6\u6001\u7ba1\u7406\u7684\u91cd\u8981\u6027<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4ea4\u6613\u5e73\u53f0\u6267\u884c\u67d0\u4e2a\u7b56\u7565\u65f6\uff0c\u5b83\u5904\u7406\u7684\u662f\u6d41\u5165\u7684\u5e02\u573a\u6570\u636e\u6d41\u3002\u5bf9\u4e8e\u5386\u53f2 K \u7ebf\uff08Bars\uff09\uff0c\u6570\u636e\u662f\u9759\u6001\u7684\u3002\u7136\u800c\u5728\u5b9e\u76d8\u6267\u884c\u671f\u95f4\uff0c\u5f53\u524d\u7684 K \u7ebf\u662f\u52a8\u6001\u4e14\u672a\u6536\u76d8\u7684\u3002\u8fd9\u7ed9\u6307\u6807\u5e26\u6765\u4e86\u67b6\u6784\u4e0a\u7684\u6311\u6218\uff1a\u5982\u4f55\u5728\u6bcf\u4e2a Tick \u6ef4\u7b54\u6d41\u5165\u5e76\u66f4\u65b0\u5b9e\u65f6\u503c\u7684\u540c\u65f6\uff0c\u65e2\u80fd\u8ffd\u8e2a\u6307\u6807\u7684\u5386\u53f2\u503c\uff0c\u53c8\u4e0d\u4f1a\u7834\u574f\u5386\u53f2\u6570\u636e\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u50cf NinjaTrader 8 \u8fd9\u6837\u7684\u5e73\u53f0\u5728\u5e95\u5c42\u901a\u8fc7\u4e00\u79cd\u79f0\u4e3a<strong>\u5386\u53f2\u6570\u636e\u5e8f\u5217\u5305\u88c5\u5668\uff08historical data series wrapper\uff09\u7684\u6570\u636e\u7ed3\u6784\u6a21\u5f0f\u6765\u5904\u7406\u8fd9\u4e00\u95ee\u9898\u3002NinjaTrader \u4f1a\u81ea\u52a8\u7ba1\u7406\u8de8 K \u7ebf\u7684\u5e8f\u5217\u5206\u914d\uff0c\u4f46\u5982\u679c\u4f60\u7684\u7b56\u7565\u9700\u8981\u8ffd\u8e2a\u590d\u6742\u7684\u3001\u8de8\u8d8a\u591a\u6839 K \u7ebf\u7684\u72b6\u6001\uff08\u4f8b\u5982\u8fde\u7eed\u4e0a\u6da8\u6536\u76d8\u7684\u8ba1\u6570\u5668\u3001\u79fb\u52a8\u6700\u9ad8\u70b9\u53d8\u91cf\u6216\u673a\u5668\u5b66\u4e60\u7279\u5f81\u6570\u7ec4\uff09\uff0c\u4f60\u5fc5\u987b\u663e\u5f0f\u5730\u7ba1\u7406\u8fd9\u4e9b\u72b6\u6001<\/strong>\uff0c\u4ee5\u9632\u6b62\u5386\u53f2\u72b6\u6001\u906d\u5230\u7834\u574f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. NinjaTrader 8 \u4e2d\u5e73\u53f0\u7279\u5b9a\u7684\u8bbe\u8ba1\u539f\u5219<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">NinjaTrader 8 \u91c7\u7528\u57fa\u4e8e C# \u7f16\u5199\u7684\u4e8b\u4ef6\u9a71\u52a8\u67b6\u6784\u3002\u4e3a\u4e86\u6e05\u6670\u5730\u5b58\u50a8\u6307\u6807\u72b6\u6001\u4ee5\u4f9b\u7b56\u7565\u8bbf\u95ee\uff0c\u4f60\u9700\u8981\u5951\u5408\u5176\u6267\u884c\u751f\u547d\u5468\u671f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>State.Configure<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u6307\u6807\u53c2\u6570\u5e76\u4f18\u5316\u5185\u5b58\u5206\u914d\u3002<\/li>\n\n\n\n<li><strong>State.DataLoaded<\/strong>\uff1a\u7528\u4e8e\u521d\u59cb\u5316\u5386\u53f2\u6570\u636e\u5e8f\u5217\u6570\u7ec4\u548c\u81ea\u5b9a\u4e49\u72b6\u6001\u96c6\u5408\u3002<\/li>\n\n\n\n<li><strong>OnBarUpdate()<\/strong>\uff1a\u6838\u5fc3\u6267\u884c\u5faa\u73af\u3002\u6bcf\u5f53 K \u7ebf\u66f4\u65b0\uff08\u5386\u53f2\u6216\u5b9e\u65f6\uff09\u65f6\uff0c\u6216\u8005\u6839\u636e\u4f60\u7684 <code>Calculate<\/code> \u8bbe\u7f6e\u5728\u6bcf\u4e2a Tick \u6d41\u5165\u65f6\uff0c\u8be5\u65b9\u6cd5\u90fd\u4f1a\u88ab\u8c03\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 NT8 \u72b6\u6001\u4fdd\u6301\u4e2d\uff0c\u6700\u5173\u952e\u7684\u5fae\u5999\u4e4b\u5904\u5728\u4e8e<strong>\u5904\u7406\u5df2\u786e\u8ba4\u7684\u5386\u53f2 K \u7ebf\u4e0e\u5f53\u524d\u5b9e\u65f6 Tick \u4e4b\u95f4\u7684\u5dee\u5f02<\/strong>\u3002\u5982\u679c\u4f60\u7684\u6307\u6807\u5728\u5b9e\u76d8 Tick \u4e0a\u66f4\u6539\u4e86\u4e00\u4e2a\u5185\u90e8\u53d8\u91cf\uff0c\u800c\u8be5 Tick \u5e76\u4e0d\u662f\u8be5 K \u7ebf\u7684\u6700\u7ec8\u6536\u76d8\u4ef7\uff0c\u4f60\u5fc5\u987b\u9002\u5f53\u5730\u56de\u6eda\u6216\u5904\u7406\u8be5\u72b6\u6001\u66f4\u6539\uff0c\u4f7f\u5176\u4e0d\u4f1a\u6cc4\u6f0f\u5230\u4f60\u7684\u5386\u53f2\u72b6\u6001\u903b\u8f91\u4e2d\u3002\u5e78\u8fd0\u7684\u662f\uff0cNT8 \u63d0\u4f9b\u4e86 <code>IsFirstTickOfBar<\/code> \u6807\u5fd7\u548c\u672c\u5730\u5316\u5e8f\u5217\u5b58\u50a8\u6765\u7f13\u89e3\u8fd9\u4e00\u95ee\u9898\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u5177\u4f53\u5b9e\u73b0\uff1a\u5728 NT8 \u4e2d\u5b58\u50a8\u72b6\u6001\u7684\u81ea\u5b9a\u4e49\u6307\u6807<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u4e00\u4e2a\u751f\u4ea7\u7ea7\u522b\u7684 NinjaTrader 8 \u81ea\u5b9a\u4e49\u6307\u6807\u5b8c\u6574\u4ee3\u7801\uff0c\u4f7f\u7528 C# \u7f16\u5199\u3002\u8be5\u6307\u6807\u663e\u5f0f\u5730\u8ffd\u8e2a\u4e00\u4e2a\u590d\u6742\u72b6\u6001\uff1a\u4ec5\u5728\u8fde\u7eed\u201c\u9633\u7ebf\u201d\uff08\u4e0a\u6da8 K \u7ebf\uff09\u671f\u95f4\u7d2f\u8ba1\u4ea4\u6613\u7684\u6210\u4ea4\u91cf\u3002\u5b83\u6e05\u6670\u5730\u516c\u5f00\u4e86\u8fd9\u4e00\u72b6\u6001\uff0c\u4ee5\u4fbf\u4efb\u4f55\u7236\u7ea7 NT8 \u7b56\u7565\u90fd\u53ef\u4ee5\u77ac\u95f4\u8bbf\u95ee\u5b83\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C#<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.ComponentModel.DataAnnotations;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Windows.Media;\nusing NinjaTrader.CBI;\nusing NinjaTrader.Gui;\nusing NinjaTrader.Gui.Chart;\nusing NinjaTrader.NinjaScript;\nusing NinjaTrader.Data;\nusing NinjaTrader.NinjaScript.DrawingTools;\n\nnamespace NinjaTrader.NinjaScript.Indicators\n{\n    public class StateStorageDemo : Indicator\n    {\n        \/\/ 1. \u5b9a\u4e49\u81ea\u5b9a\u4e49\u5e8f\u5217\uff0c\u4ee5\u81ea\u52a8\u5904\u7406\u5386\u53f2\u72b6\u6001\u8ffd\u8e2a\n        private Series&lt;int&gt; consecutiveUpBarsStreak;\n        private Series&lt;double&gt; cumulativeUpVolumeState;\n\n        protected override void OnStateChange()\n        {\n            if (State == State.Configure)\n            {\n                Description                                  = \"\u6f14\u793a\u5982\u4f55\u5b89\u5168\u5730\u5b58\u50a8\u5e76\u516c\u5f00\u6307\u6807\u72b6\u6001\uff0c\u4ee5\u4f9b\u7b56\u7565\u8bbf\u95ee\u3002\";\n                Name                                         = \"StateStorageDemo\";\n                Calculate                                    = Calculate.OnBarClose; \/\/ \u907f\u514d Tick \u8fc7\u7a0b\u4e2d\u7684\u72b6\u6001\u6c61\u67d3\n                IsOverlay                                    = false;\n                DisplayInDataBox                             = true;\n                DrawOnPricePanel                             = false;\n            }\n            else if (State == State.DataLoaded)\n            {\n                \/\/ 2. \u521d\u59cb\u5316 Series \u5bb9\u5668\u3002NT8 \u4f1a\u5c06\u8fd9\u4e9b\u5bb9\u5668\u4e0e\u5386\u53f2 K \u7ebf\u7d22\u5f15\u540c\u6b65\u3002\n                consecutiveUpBarsStreak = new Series&lt;int&gt;(this);\n                cumulativeUpVolumeState = new Series&lt;double&gt;(this);\n            }\n        }\n\n        protected override void OnBarUpdate()\n        {\n            \/\/ \u786e\u4fdd\u6211\u4eec\u6709\u8db3\u591f\u7684 K \u7ebf\u6765\u5c06\u5f53\u524d K \u7ebf\u4e0e\u524d\u4e00\u6839 K \u7ebf\u8fdb\u884c\u6bd4\u8f83\n            if (CurrentBar &lt; 1)\n            {\n                consecutiveUpBarsStreak&#91;0] = 0;\n                cumulativeUpVolumeState&#91;0] = 0.0;\n                return;\n            }\n\n            \/\/ 3. \u4e25\u683c\u57fa\u4e8e\u524d\u4e00\u72b6\u6001\u5b8c\u6210\u60c5\u51b5\u7684\u72b6\u6001\u66f4\u65b0\u903b\u8f91\n            if (Close&#91;0] &gt; Close&#91;1])\n            {\n                \/\/ If the streak continues, increment previous bar's state by 1\n                \/\/ \u5982\u679c\u8fde\u6da8\u52bf\u5934\u5ef6\u7eed\uff0c\u5728\u524d\u4e00\u6839 K \u7ebf\u72b6\u6001\u7684\u57fa\u7840\u4e0a\u52a0 1\n                consecutiveUpBarsStreak&#91;0] = consecutiveUpBarsStreak&#91;1] + 1;\n                \/\/ \u5c06\u5f53\u524d K \u7ebf\u7684\u6210\u4ea4\u91cf\u7d2f\u52a0\u5230\u6eda\u52a8\u6210\u4ea4\u91cf\u72b6\u6001\u4e2d\n                cumulativeUpVolumeState&#91;0] = cumulativeUpVolumeState&#91;1] + Volume&#91;0];\n            }\n            else\n            {\n                \/\/ \u5982\u679c\u8d8b\u52bf\u4e2d\u65ad\uff0c\u91cd\u7f6e\u8be5\u7d22\u5f15\u7684\u72b6\u6001\u5b58\u50a8\u8ffd\u8e2a\n                consecutiveUpBarsStreak&#91;0] = 0;\n                cumulativeUpVolumeState&#91;0] = 0.0;\n            }\n        }\n\n        #region \u66b4\u9732\u7ed9\u7b56\u7565\u8bbf\u95ee\u7684\u5c5e\u6027\n\n        &#91;Browsable(false)]\n        &#91;XmlIgnore]\n        public Series&lt;int&gt; ConsecutiveUpBarsStreak\n        {\n            get { return consecutiveUpBarsStreak; }\n        }\n\n        &#91;Browsable(false)]\n        &#91;XmlIgnore]\n        public Series&lt;double&gt; CumulativeUpVolumeState\n        {\n            get { return cumulativeUpVolumeState; }\n        }\n\n        #endregion\n    }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u5728 NT8 \u7b56\u7565\u4e2d\u8bbf\u95ee\u5b58\u50a8\u7684\u72b6\u6001<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65e6\u4f60\u7684\u6307\u6807\u5728\u5185\u90e8\u7ba1\u7406\u5e76\u4fdd\u6301\u5176\u6570\u636e\u72b6\u6001\uff0c\u5c06\u8be5\u4fe1\u606f\u62c9\u53d6\u5230\u5bbf\u4e3b\uff08hosting\uff09\u7b56\u7565\u6587\u4ef6\u4e2d\u5c31\u53d8\u5f97\u975e\u5e38\u76f4\u63a5\u4e14\u8ba1\u7b97\u6548\u7387\u6781\u9ad8\u3002\u56e0\u4e3a\u6570\u636e\u5b58\u50a8\u5728 NT8 \u7684 <code>Series&lt;T&gt;<\/code> \u5305\u88c5\u5668\u4e2d\uff0c\u5185\u5b58\u5f15\u7528\u5728\u4e0d\u540c\u7684\u6570\u636e\u6e90\u4e4b\u95f4\u53ef\u4ee5\u5b8c\u7f8e\u5bf9\u9f50\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u5bbf\u4e3b\u7b56\u7565\u5728\u5176\u81ea\u8eab\u7684 <code>OnBarUpdate()<\/code> \u5e8f\u5217\u4e2d\u8c03\u7528\u5e76\u8bfb\u53d6\u8fd9\u4e9b\u72b6\u6001\u503c\u7684\u84dd\u56fe\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C#<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u5728\u4f60\u7684 Strategy \u7c7b\u6587\u4ef6\u4e2d\uff1a\nprivate Indicators.StateStorageDemo stateIndicator;\n\nprotected override void OnStateChange()\n{\n    if (State == State.DataLoaded)\n    {\n        \/\/ \u5b9e\u4f8b\u5316\u6307\u6807\u5e76\u7f13\u5b58\u5176\u5b9e\u4f8b\n        stateIndicator = StateStorageDemo();\n    }\n}\n\nprotected override void OnBarUpdate()\n{\n    \/\/ \u4f7f\u7528\u6807\u51c6\u7d22\u5f15 &#91;0] \u83b7\u53d6\u5f53\u524d K \u7ebf\uff0c\u8bbf\u95ee\u6307\u6807\u5b58\u50a8\u7684\u72b6\u6001\n    int currentStreak = stateIndicator.ConsecutiveUpBarsStreak&#91;0];\n    double currentVolumeState = stateIndicator.CumulativeUpVolumeState&#91;0];\n\n    \/\/ \u57fa\u4e8e\u6307\u6807\u72b6\u6001\u6307\u6807\u7684\u6267\u884c\u903b\u8f91\n    if (currentStreak &gt;= 3 &amp;&amp; currentVolumeState &gt; 100000)\n    {\n        EnterLong();\n    }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u5b9e\u76d8\u90e8\u7f72\u7684\u67b6\u6784\u5b89\u5168\u9632\u62a4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u5728\u6d77\u91cf\u7684\u5386\u53f2\u533a\u95f4\u4e0a\u8fd0\u884c\u6b64\u811a\u672c\uff0c\u6216\u5728\u5b9e\u76d8\u5e02\u573a\u73af\u5883\u4e2d\u65e0\u9650\u671f\u8fd0\u884c\u65f6\uff0c\u4e3a\u4e86\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f\u548c\u8d8a\u754c\u8ffd\u8e2a\u5f02\u5e38\uff0c\u5fc5\u987b\u9075\u5b88\u4ee5\u4e0b\u4e24\u9879\u5de5\u7a0b\u7ea6\u675f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>Calculate.OnBarClose<\/code> \u5b89\u5168\u9632\u62a4<\/strong>\uff1a\u5982\u679c\u4f60\u5fc5\u987b\u5c06\u5904\u7406\u8ba1\u7b97\u9891\u7387\u66f4\u6539\u4e3a <code>Calculate.OnEachTick<\/code>\uff08\u9010 Tick \u8ba1\u7b97\uff09\uff0c\u4f60\u5fc5\u987b\u91cd\u5199\u4f60\u7684\u8ffd\u8e2a\u903b\u8f91\uff0c\u5229\u7528 <code>IsFirstTickOfBar<\/code> \u53bb\u6355\u83b7\u5b9e\u76d8\u672a\u786e\u8ba4\u7684\u53d8\u66f4\u3002\u5426\u5219\uff0c\u5728\u540c\u4e00\u6839 K \u7ebf\u7684\u65f6\u95f4\u7a97\u53e3\u5185\uff0c\u53d8\u91cf\u4f1a\u5728\u6bcf\u4e00\u4e2a\u5b9e\u76d8 Tick \u4ea4\u6613\u6d41\u5165\u65f6\u4e0d\u65ad\u7d2f\u52a0\uff0c\u5bfc\u81f4\u56de\u6d4b\u4e0e\u5b9e\u76d8\u6267\u884c\u4e4b\u95f4\u4ea7\u751f\u5de8\u5927\u7684\u8ba1\u7b97\u504f\u5dee\u3002<\/li>\n\n\n\n<li><strong>\u5783\u573e\u56de\u6536\u4e0e\u5185\u5b58\u4f18\u5316<\/strong>\uff1a\u901a\u8fc7\u5229\u7528 NinjaTrader \u539f\u751f\u7684 <code>Series&lt;T>(this)<\/code> \u6784\u9020\u51fd\u6570\uff0c\u800c\u4e0d\u662f\u521d\u59cb\u5316\u6807\u51c6\u7684 C# \u539f\u59cb <code>List&lt;T><\/code> \u7ed3\u6784\uff0c\u4f60\u5c06\u65f6\u5e8f\u540c\u6b65\u7684\u5de5\u4f5c\u79fb\u4ea4\u7ed9\u4e86 NT8 \u539f\u751f\u7684\u6838\u5fc3\u5185\u5b58\u5f15\u64ce\u3002\u8be5\u5e73\u53f0\u4f1a\u81ea\u52a8\u6e05\u7406\u8d85\u51fa\u5f53\u524d\u5168\u5c40\u4f4d\u79fb\u67e5\u627e\u8303\u56f4\uff08displacement lookup bounds\uff09\u7684\u6570\u636e\u5206\u914d\uff0c\u4ece\u800c\u9632\u6b62\u7cfb\u7edf\u5728\u957f\u65f6\u95f4\u8fd0\u884c\u4e2d\u8017\u5c3d\u5185\u5b58\uff08RAM\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em><em><a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">\u5982\u679c\u60a8\u6b63\u5728\u5bfb\u627e\u4e13\u4e1a\u7684\u5b9a\u5236\u4ea4\u6613\u8f6f\u4ef6\u5f00\u53d1\u670d\u52a1\uff0c\u6b22\u8fce\u8054\u7cfb\u6211\u4eec\u3002<\/a><\/em><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u9ad8\u9891\u6216\u590d\u6742\u7684\u91cf\u5316\u4ea4\u6613\u4e2d\uff0c\u5b9e\u65f6\uff08on the fly\uff09\u8ba1\u7b97\u4ea4\u6613\u6307\u6807\u5f88\u5bb9\u6613\u8fc5\u901f\u6f14\u53d8\u6210\u8ba1\u7b97\u6027\u80fd\u7684\u74f6\u9888\u3002\u66f4\u91cd\u8981\u7684\u662f\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1825,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[233],"tags":[],"class_list":["post-1824","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-233"],"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/07\/\u56fe\u7247-4.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/comments?post=1824"}],"version-history":[{"count":1,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1824\/revisions"}],"predecessor-version":[{"id":1826,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1824\/revisions\/1826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/1825"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=1824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=1824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=1824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}