{"id":3133,"date":"2026-12-04T12:12:21","date_gmt":"2026-12-04T18:12:21","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=3133"},"modified":"2026-12-04T18:17:23","modified_gmt":"2026-12-04T18:17:23","slug":"%e5%9f%ba%e4%ba%8e%e4%bb%b7%e6%a0%bc%e7%bb%93%e6%9e%84%e7%9a%84cbot%e6%9c%80%e4%bd%8e%e7%9b%88%e4%ba%8f%e6%af%94%e5%85%a5%e5%9c%ba%e9%97%a8%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/%e5%9f%ba%e4%ba%8e%e4%bb%b7%e6%a0%bc%e7%bb%93%e6%9e%84%e7%9a%84cbot%e6%9c%80%e4%bd%8e%e7%9b%88%e4%ba%8f%e6%af%94%e5%85%a5%e5%9c%ba%e9%97%a8%e6%8e%a7\/","title":{"rendered":"\u57fa\u4e8e\u4ef7\u683c\u7ed3\u6784\u7684cBot\u6700\u4f4e\u76c8\u4e8f\u6bd4\u5165\u573a\u95e8\u63a7"},"content":{"rendered":"<div class=\"postie-post\">\n<h2>\u5728\u627f\u62c5\u98ce\u9669\u524d\u8bc4\u4f30\u53ef\u7528\u76ee\u6807\u7a7a\u95f4<\/h2>\n<p>\u56de\u8c03\u5165\u573a\u65f6\uff0c\u4e0a\u65b9\u963b\u529b\u53ef\u80fd\u8ddd\u79bb\u5f53\u524d\u4ef7\u683c\u8fc7\u8fd1\uff0c\u65e0\u6cd5\u63d0\u4f9b\u5408\u7406\u7684\u6f5c\u5728\u6536\u76ca\u7a7a\u95f4\u3002\u672ccBot\u8bbe\u8ba1\u8981\u6c42\u76ee\u6807\u8ddd\u79bb\u9664\u4ee5\u521d\u59cb\u6b62\u635f\u8ddd\u79bb\u81f3\u5c11\u4e3a1.5\uff0c\u800c\u4e0d\u662f\u4e3a\u4e86\u63d0\u9ad8\u6bd4\u4f8b\u968f\u610f\u7f29\u5c0f\u6b62\u635f\u3002\u53ef\u91c7\u7528\u5df2\u6536\u76d8\u4ef7\u683c\u4e0a\u7a7f20\u5468\u671fEMA\u4f5c\u4e3a\u8d8b\u52bf\u4fe1\u53f7\uff0c\u518d\u6839\u636e\u6b64\u524d\u5df2\u6536\u76d8K\u7ebf\u786e\u5b9a\u652f\u6491\u4f4e\u70b9\u548c\u4e0a\u65b9\u963b\u529b\u3002<\/p>\n<h2>\u6570\u503c\u793a\u4f8b<\/h2>\n<p>\u5f53\u524dAsk\u4e3a100\uff0c\u6b62\u635f98\uff0c\u4e09\u4e2a\u5019\u9009\u76ee\u6807\u5206\u522b\u4e3a102\u3001103\u3001105\uff0c\u76c8\u4e8f\u6bd4\u4e3a1\u30011.5\u30012.5\uff0c\u4ec5\u540e\u4e24\u79cd\u901a\u8fc7\u3002\u8be5\u6bd4\u4f8b\u4ec5\u8868\u793a\u4ef7\u683c\u8ddd\u79bb\uff0c\u4e0d\u4ee3\u8868\u9884\u671f\u6536\u76ca\u6216\u76ee\u6807\u547d\u4e2d\u6982\u7387\u3002<\/p>\n<p> <img decoding=\"async\" alt=\"strategy-filter.png\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/strategy-filter.png\" width=\"720\"><\/p>\n<p><em>\u6700\u4f4e\u76c8\u4e8f\u6bd41.5\u7684\u5047\u8bbe\u5bf9\u6bd4\u3002<\/em><\/p>\n<h2>cTrader Algo\u5165\u573a\u8f85\u52a9\u51fd\u6570<\/h2>\n<pre style=\"white-space:pre;font-family:Consolas,Monaco,monospace\"><code>\/\/ Call before ExecuteMarketOrder for a long setup.<br>private bool RewardGate(double stop, double target)<br>{<br>\u00a0\u00a0\u00a0\u00a0double ask = Symbol.Ask;<br>\u00a0\u00a0\u00a0\u00a0double risk = ask - stop;<br>\u00a0\u00a0\u00a0\u00a0double reward = target - ask;<br>\u00a0\u00a0\u00a0\u00a0return risk &gt; 0 &amp;&amp; reward &gt; 0 &amp;&amp;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0reward \/ risk &gt;= 1.5;<br>}<\/code><\/pre>\n<p>\u5728OnBarClosed\u4e2d\u786e\u8ba4\u5386\u53f2\u6570\u636e\u5145\u8db3\u3001\u6ca1\u6709\u7b56\u7565\u6240\u5c5e\u6301\u4ed3\u6216\u5f85\u6210\u4ea4\u5165\u573a\u5355\u540e\uff0c\u5bf9\u65b0\u4fe1\u53f7\u8c03\u7528\u51fd\u6570\u3002\u652f\u6491\u4e0e\u963b\u529b\u5fc5\u987b\u5728\u5165\u573a\u524d\u786e\u5b9a\uff0c\u4e0d\u4f7f\u7528\u672a\u6765K\u7ebf\u3002\u5e02\u4ef7\u5355\u4fdd\u62a4\u53c2\u6570\u9700\u8981\u901a\u8fc7Symbol.PipSize\u5c06\u4ef7\u683c\u8ddd\u79bb\u8f6c\u6362\u4e3apips\uff0c\u5e76\u5c06\u4ea4\u6613\u91cf\u89c4\u8303\u81f3\u5408\u6cd5\u5355\u4f4d\u3002\u68c0\u67e5TradeResult\u5e76\u6838\u5bf9\u5b9e\u9645\u6210\u4ea4\u4e0e\u4fdd\u62a4\u4ef7\u683c\u3002\u6210\u4ea4\u504f\u79bb\u4f1a\u6539\u53d8\u8ba1\u5212\u76c8\u4e8f\u6bd4\uff0c\u8fc7\u6ee4\u5668\u4e0d\u80fd\u4fdd\u8bc1\u5b9e\u9645\u6bd4\u4f8b\u3002\u9000\u51fa\u91c7\u7528\u56fa\u5b9a\u7ed3\u6784\u6b62\u635f\u53ca\u76ee\u6807\uff0c\u5165\u573a\u540e\u4e0d\u6269\u5927\u6b62\u635f\u3002<\/p>\n<h2>\u6d4b\u8bd5<\/h2>\n<p>\u5728\u76f8\u540c\u4fe1\u53f7\u548c\u9000\u51fa\u89c4\u5219\u4e0b\u6bd4\u8f831\u30011.5\u30012\u9608\u503c\u53ca\u65e0\u8fc7\u6ee4\u57fa\u51c6\uff0c\u8ba1\u5165\u70b9\u5dee\u548c\u4f63\u91d1\uff0c\u7edf\u8ba1\u62d2\u7edd\u4fe1\u53f7\u3001\u80dc\u7387\u3001\u51c0\u6536\u76ca\u3001\u6700\u5927\u4e0d\u5229\u6ce2\u52a8\u53ca\u56de\u64a4\u3002\u8986\u76d6\u8df3\u7a7a\u548c\u65e0\u6548\u6b62\u635f\u8ddd\u79bb\u3002\u672c\u51fd\u6570\u4e0d\u662f\u5b8c\u6574cBot\uff0c\u672a\u7ecf\u7f16\u8bd1\u6216\u56de\u6d4b\u3002\u4ea4\u6613\u53ef\u80fd\u9020\u6210\u91cd\u5927\u4e8f\u635f\u3002<\/p>\n<p>\u5982\u9700\u5b9a\u5236\u4fe1\u53f7\u53ca\u6267\u884c\u7ba1\u7406\uff0c\u8bf7\u4e86\u89e3<a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">cTrader\u4ea4\u6613\u7b56\u7565\u5b9a\u5236\u5f00\u53d1\u670d\u52a1<\/a>\u3002<\/p>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u627f\u62c5\u98ce\u9669\u524d\u8bc4\u4f30\u53ef\u7528\u76ee\u6807\u7a7a\u95f4 \u56de\u8c03\u5165\u573a\u65f6\uff0c\u4e0a\u65b9\u963b\u529b\u53ef\u80fd\u8ddd\u79bb\u5f53\u524d\u4ef7\u683c\u8fc7\u8fd1\uff0c\u65e0\u6cd5\u63d0\u4f9b\u5408\u7406\u7684\u6f5c\u5728\u6536\u76ca\u7a7a\u95f4\u3002\u672ccBot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3134,"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_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[171,520,233],"tags":[172,774,342,639],"class_list":["post-3133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ctrader","category-520","category-233","tag-ctrader","tag-774","tag-342","tag-639"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/strategy-filter.png","_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/3133","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=3133"}],"version-history":[{"count":0,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/3133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/3134"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=3133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=3133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=3133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}