{"id":1372,"date":"2026-06-01T19:47:14","date_gmt":"2026-06-01T19:47:14","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=1372"},"modified":"2026-06-01T19:51:41","modified_gmt":"2026-06-01T19:51:41","slug":"%e6%b6%88%e9%99%a4%e5%86%97%e4%bd%99%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e8%87%aa%e5%8a%a8%e5%8c%96%e7%ad%96%e7%95%a5%e4%b8%ad%e9%81%bf%e5%85%8d%e9%87%8d%e5%a4%8d%e4%bf%a1%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/%e6%b6%88%e9%99%a4%e5%86%97%e4%bd%99%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e8%87%aa%e5%8a%a8%e5%8c%96%e7%ad%96%e7%95%a5%e4%b8%ad%e9%81%bf%e5%85%8d%e9%87%8d%e5%a4%8d%e4%bf%a1%e5%8f%b7\/","title":{"rendered":"\u6d88\u9664\u5197\u4f59\uff1a\u5982\u4f55\u5728\u81ea\u52a8\u5316\u7b56\u7565\u4e2d\u907f\u514d\u91cd\u590d\u4fe1\u53f7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u81ea\u52a8\u5316\u4ea4\u6613\u9886\u57df\uff0c\u201c\u4fe1\u53f7\u91cd\u590d\u201d\u662f\u8d44\u4ea7\u51c0\u503c\u66f2\u7ebf\u7684\u9690\u5f62\u6740\u624b\u3002\u5f53\u4ea4\u6613\u7b97\u6cd5\u5bf9\u540c\u4e00\u6b21\u5e02\u573a\u8d70\u52bf\u751f\u6210\u591a\u4e2a\u5165\u573a\u6307\u4ee4\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\uff0c\u4ece\u800c\u5bfc\u81f4\u8fc7\u5ea6\u6760\u6746\u3001\u9ad8\u989d\u4f63\u91d1\u4ee5\u53ca\u98ce\u9669\u7ba1\u7406\u7684\u5931\u8861\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u5f00\u53d1\u8005\u548c\u91cf\u5316\u4ea4\u6613\u5458\u6765\u8bf4\uff0c\u7f16\u5199\u4e00\u4e2a\u53d1\u9001\u201c\u4e70\u5165\u201d\u6307\u4ee4\u7684\u903b\u8f91\u53ea\u662f\u6210\u529f\u4e86\u4e00\u534a\u3002\u53e6\u4e00\u534a\u5219\u662f\u786e\u4fdd\u7cfb\u7edf\u5728\u7b2c\u4e00\u7b14\u4ea4\u6613\u4ecd\u5904\u4e8e\u6d3b\u8dc3\u72b6\u6001\u65f6\uff0c\u4e0d\u4f1a\u518d\u53d1\u51fa\u4e94\u6b21\u201c\u4e70\u5165\u201d\u6307\u4ee4\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u6784\u5efa\u7b56\u7565\u4ee3\u7801\u67b6\u6784\uff0c\u4ee5\u786e\u4fdd\u6267\u884c\u4fdd\u6301\u5e72\u51c0\u4e14\u5355\u4e00\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"559\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image.png\" alt=\"\" class=\"wp-image-1373\" srcset=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image.png 1024w, https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image-300x164.png 300w, https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image-768x419.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u201c\u72b6\u6001\u673a\u201d\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9632\u6b62\u91cd\u590d\u4fe1\u53f7\u6700\u7a33\u5065\u7684\u65b9\u6cd5\u662f\u5728\u4ee3\u7801\u4e2d\u5b9e\u73b0\u4e00\u4e2a\u57fa\u7840\u7684\u72b6\u6001\u673a\u3002\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u8ffd\u8e2a\u7b56\u7565\u5f53\u524d\u201c\u72b6\u6001\u201d\u7684\u53d8\u91cf\uff0c\u53ef\u4ee5\u9632\u6b62\u6267\u884c\u5f15\u64ce\u89e6\u53d1\u5197\u4f59\u8ba2\u5355\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5176\u903b\u8f91\u5982\u4e0b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u72b6\u6001 0\uff1a<\/strong> \u65e0\u6301\u4ed3\uff08\u626b\u63cf\u5165\u573a\u673a\u4f1a\uff09<\/li>\n\n\n\n<li><strong>\u72b6\u6001 1\uff1a<\/strong> \u591a\u5934\u6301\u4ed3\u6d3b\u8dc3<\/li>\n\n\n\n<li><strong>\u72b6\u6001 2\uff1a<\/strong> \u7a7a\u5934\u6301\u4ed3\u6d3b\u8dc3<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4ee3\u7801\u5b9e\u73b0\uff1a<\/strong> \u5728\u4fe1\u53f7\u903b\u8f91\u4e4b\u524d\uff0c\u6dfb\u52a0\u4e00\u4e2a\u6761\u4ef6\u68c0\u67e5\uff1a <code>if (CurrentState == 0) { \/\/ \u4ec5\u5728\u6ca1\u6709\u6253\u5f00\u6301\u4ed3\u65f6\u624d\u626b\u63cf\u65b0\u4fe1\u53f7 }<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65e6\u4ea4\u6613\u6267\u884c\uff0c\u811a\u672c\u5c31\u4f1a\u5c06\u72b6\u6001\u66f4\u65b0\u4e3a 1 \u6216 2\uff0c\u4ece\u800c\u6709\u6548\u5730\u201c\u9759\u97f3\u201d\u4fe1\u53f7\u751f\u6210\u5668\uff0c\u76f4\u5230\u4ea4\u6613\u5173\u95ed\u4e14\u72b6\u6001\u91cd\u7f6e\u4e3a 0\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u5229\u7528\u6301\u4e45\u5316\u7684\u201c\u9501\uff08Lock\uff09\u201d\u53d8\u91cf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Pine Script \u6216 Python (Pandas) \u7b49\u73af\u5883\u4e2d\uff0c\u4fe1\u53f7\u901a\u5e38\u662f\u5728\u6bcf\u4e2a K \u7ebf\uff08Bar\uff09\u4e0a\u8ba1\u7b97\u7684\u3002\u5982\u679c\u6ca1\u6709\u201c\u9501\u201d\uff0c\u53ea\u8981\u5feb\u7ebf\u5728\u6162\u7ebf\u4e4b\u4e0a\uff0c\u8d8b\u52bf\u8ddf\u8e2a\u7684\u5747\u7ebf\u4ea4\u53c9\u5c31\u53ef\u80fd\u4f1a\u5728\u6bcf\u4e00\u4e2a\u5355\u6839 K \u7ebf\u4e0a\u90fd\u89e6\u53d1\u4e70\u5165\u4fe1\u53f7\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5e03\u5c14\u578b\u7684\u201c\u89e6\u53d1\u9501\uff08Trigger Lock\uff09\u201d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9ed8\u8ba4\u8bbe\u7f6e <code>isTriggered = false<\/code>\u3002<\/li>\n\n\n\n<li>\u5f53\u53d1\u751f\u4ea4\u53c9\u65f6\uff1a\u68c0\u67e5 <code>isTriggered<\/code> \u662f\u5426\u4e3a <code>false<\/code>\u3002<\/li>\n\n\n\n<li>\u6267\u884c\u4ea4\u6613\uff1a\u7acb\u5373\u8bbe\u7f6e <code>isTriggered = true<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u91cd\u7f6e\uff1a<\/strong> \u53ea\u6709\u5f53\u53d1\u751f\u53cd\u5411\u4ea4\u53c9\uff08\u79bb\u573a\uff09\u65f6\uff0c\u624d\u5c06 <code>isTriggered<\/code> \u91cd\u65b0\u8bbe\u4e3a <code>false<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u57fa\u4e8e K \u7ebf\u6570\u91cf\u7684\u6267\u884c\u9650\u5236<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u963b\u6b62\u91cd\u590d\u4fe1\u53f7\u7684\u4e00\u79cd\u7b80\u5355\u4f46\u6709\u6548\u7684\u65b9\u6cd5\u662f\uff0c\u9650\u5236\u7b56\u7565\u5728\u6bcf\u201cX\u201d\u6839 K \u7ebf\u5185\u53ea\u80fd\u8fdb\u884c\u4e00\u6b21\u4ea4\u6613\u3002\u8fd9\u5bf9\u4e8e\u9ad8\u9891\u5934\u5bf8\u8c03\u6574\uff08\u5237\u5355\uff09\u7b56\u7565\u7279\u522b\u6709\u7528\uff0c\u5426\u5219\u8fd9\u7c7b\u7b56\u7565\u53ef\u80fd\u4f1a\u5728\u5355\u6b21\u5267\u70c8\u4ef7\u683c\u98d9\u5347\u671f\u95f4\u5c1d\u8bd5\u5165\u573a\u5341\u6b21\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\u903b\u8f91\uff1a<\/strong> <code>if (BarsSinceLastEntry &gt; 5) { \/\/ \u5141\u8bb8\u65b0\u4fe1\u53f7 }<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u5f3a\u5236\u8bbe\u7f6e\u4e00\u6bb5\u201c\u51b7\u5374\u671f\u201d\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u5141\u8bb8\u7b97\u6cd5\u6295\u5165\u66f4\u591a\u8d44\u91d1\u4e4b\u524d\uff0c\u5e02\u573a\u5df2\u7ecf\u8fdb\u5165\u4e86\u65b0\u7684\u9636\u6bb5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u7ed3\u5408\u5238\u5546 API \u540c\u6b65<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u65f6\uff0c\u201c\u91cd\u590d\u201d\u5e76\u4e0d\u662f\u51fa\u73b0\u5728\u4f60\u7684\u4ee3\u7801\u4e2d\uff0c\u800c\u662f\u51fa\u73b0\u5728\u811a\u672c\u4e0e\u5238\u5546\u4e4b\u95f4\u7684\u901a\u4fe1\u4e2d\u3002\u5982\u679c\u811a\u672c\u53d1\u9001\u4e86\u5e02\u4ef7\u5355\u4f46\u6ca1\u6709\u7acb\u5373\u6536\u5230\u786e\u8ba4\uff0c\u5b83\u53ef\u80fd\u4f1a\u53d1\u9001\u7b2c\u4e8c\u7b14\u8ba2\u5355\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e13\u4e1a\u89e3\u51b3\u65b9\u6848\uff1a<\/strong> \u5728\u53d1\u9001\u8ba2\u5355\u4e4b\u524d\uff0c\u4f60\u7684\u4ee3\u7801\u5e94\u8be5\u5411\u5238\u5546\u7684 API \u67e5\u8be2\u201c\u672a\u5e73\u4ed3\u5934\u5bf8\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4f2a\u4ee3\u7801\uff1a<\/strong> <code>if (Account.HasOpenPosition(\"EURUSD\") == False) { SendOrder(); }<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u521b\u5efa\u4e86\u4e00\u4e2a\u786c\u4ef6\u7ea7\u522b\u7684\u9632\u9519\u673a\u5236\uff0c\u53ef\u9632\u6b62\u4f60\u7684\u8d26\u6237\u5728\u540c\u4e00\u4e2a\u8d27\u5e01\u5bf9\u4e0a\u6253\u5f00\u91cd\u590d\u7684\u201c\u4ed3\u4f4d\u201d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u4fe1\u53f7\u5e45\u5ea6\u8fc7\u6ee4\uff08\u201c\u9608\u503c\u201d\u6cd5\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5747\u503c\u56de\u5f52\u7b56\u7565\u4e2d\uff0c\u50cf RSI \u8fd9\u6837\u7684\u6307\u6807\u53ef\u80fd\u4f1a\u5728\u201c\u8d85\u4e70\u201d\u533a\u57df\u505c\u7559\u5f88\u591a\u6839 K \u7ebf\u3002\u4e00\u4e2a\u57fa\u7840\u7684\u811a\u672c\u53ef\u80fd\u4f1a\u5728 RSI \u5927\u4e8e 70 \u7684\u6bcf\u4e00\u6b21\u90fd\u89e6\u53d1\u201c\u5356\u51fa\u201d\u4fe1\u53f7\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0e\u5176\u8fdb\u884c\u4e8c\u5143\u68c0\u67e5\uff08RSI &gt; 70\uff09\uff0c\u4e0d\u5982\u5c06\u7b56\u7565\u4ee3\u7801\u7f16\u5199\u4e3a<strong>\u4ec5\u5728 RSI \u4ece\u4e0b\u65b9\u7a7f\u8fc7 70 \u6c34\u5e73\u7ebf\uff08\u5411\u4e0a\u7a81\u7834\uff09\u65f6<\/strong>\u624d\u89e6\u53d1\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3\uff1a\u201c\u5e72\u51c0\u4fe1\u53f7\u201d\u68c0\u67e5\u8868<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6cd5<\/th><th>\u6700\u9002\u5408<\/th><th>\u590d\u6742\u5ea6<\/th><\/tr><\/thead><tbody><tr><td><strong>\u72b6\u6001\u8ffd\u8e2a (State Tracking)<\/strong><\/td><td>\u901a\u7528\u8d8b\u52bf\u8ddf\u8e2a<\/td><td>\u4e2d<\/td><\/tr><tr><td><strong>\u89e6\u53d1\u9501 (Trigger Locks)<\/strong><\/td><td>\u632f\u8361\u6307\u6807 (RSI\/\u968f\u673a\u6307\u6807)<\/td><td>\u4f4e<\/td><\/tr><tr><td><strong>API \u540c\u6b65 (API Syncing)<\/strong><\/td><td>\u5b9e\u76d8\u6267\u884c \/ \u673a\u5668\u4eba\u4ea4\u6613<\/td><td>\u9ad8<\/td><\/tr><tr><td><strong>K \u7ebf\u9650\u5236 (Bar Constraints)<\/strong><\/td><td>\u9ad8\u9891\u5237\u5355 (Scalping)<\/td><td>\u4f4e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u7ed3\u8bba<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u907f\u514d\u91cd\u590d\u4fe1\u53f7\u7684\u5173\u952e\u5728\u4e8e\u4e3a\u4f60\u7684\u4ea4\u6613\u7b97\u6cd5\u6784\u5efa\u4e00\u79cd\u201c\u8bb0\u5fc6\u201d\u3002\u4e00\u4e2a\u77e5\u9053\u81ea\u5df1\u4e94\u5206\u949f\u524d\u505a\u4e86\u4ec0\u4e48\u7684\u7b97\u6cd5\uff0c\u8981\u6bd4\u4e00\u4e2a\u53ea\u80fd\u770b\u5230\u5f53\u524d\u4ef7\u683c\u8df3\u52a8\u7684\u7b97\u6cd5\u6210\u529f\u5f97\u591a\u3002\u901a\u8fc7\u5f15\u5165\u72b6\u6001\u673a\u3001\u89e6\u53d1\u9501\u548c API \u540c\u6b65\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u81ea\u52a8\u5316\u7b56\u7565\u4ee5\u957f\u671f\u76c8\u5229\u6240\u9700\u7684 surgical precision\uff08\u7cbe\u51c6\u624b\u672f\u5200\u822c\u7684\u7cbe\u786e\u5ea6\uff09\u8fd0\u884c\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\"><strong>\u63d0\u793a\uff1a<\/strong> \u5982\u679c\u60a8\u6b63\u5728\u5bfb\u627e\u4e13\u4e1a\u7684\u5b9a\u5236\u4ea4\u6613\u8f6f\u4ef6\u5f00\u53d1\u670d\u52a1\uff0c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002<\/a><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u81ea\u52a8\u5316\u4ea4\u6613\u9886\u57df\uff0c\u201c\u4fe1\u53f7\u91cd\u590d\u201d\u662f\u8d44\u4ea7\u51c0\u503c\u66f2\u7ebf\u7684\u9690\u5f62\u6740\u624b\u3002\u5f53\u4ea4\u6613\u7b97\u6cd5\u5bf9\u540c\u4e00\u6b21\u5e02\u573a\u8d70\u52bf\u751f\u6210\u591a\u4e2a\u5165\u573a\u6307\u4ee4\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[233,217],"tags":[239,238,235,237,236],"class_list":["post-1372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-233","category-217","tag-239","tag-238","tag-235","tag-237","tag-236"],"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/06\/image.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1372","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=1372"}],"version-history":[{"count":2,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1372\/revisions"}],"predecessor-version":[{"id":1375,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/1372\/revisions\/1375"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/1373"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=1372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}