{"id":2975,"date":"2026-12-01T10:59:01","date_gmt":"2026-12-01T16:59:01","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=2975"},"modified":"2026-12-01T17:07:12","modified_gmt":"2026-12-01T17:07:12","slug":"%e5%9f%ba%e4%ba%8ek%e7%ba%bf%e5%ae%9e%e4%bd%93%e5%8d%a0%e6%af%94%e7%9a%84%e7%aa%81%e7%a0%b4%e5%85%a5%e5%9c%ba%e8%bf%87%e6%bb%a4%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/%e5%9f%ba%e4%ba%8ek%e7%ba%bf%e5%ae%9e%e4%bd%93%e5%8d%a0%e6%af%94%e7%9a%84%e7%aa%81%e7%a0%b4%e5%85%a5%e5%9c%ba%e8%bf%87%e6%bb%a4%e7%ad%96%e7%95%a5\/","title":{"rendered":"\u57fa\u4e8eK\u7ebf\u5b9e\u4f53\u5360\u6bd4\u7684\u7a81\u7834\u5165\u573a\u8fc7\u6ee4\u7b56\u7565"},"content":{"rendered":"<div class=\"postie-post\">\n<h2>\u5728\u5165\u573a\u524d\u8fc7\u6ee4\u5b9e\u4f53\u504f\u5c0f\u7684\u7a81\u7834K\u7ebf<\/h2>\n<p>\u6536\u76d8\u4ef7\u7a81\u7834\u963b\u529b\u5e76\u4e0d\u4e00\u5b9a\u610f\u5473\u7740\u4e70\u76d8\u6301\u7eed\u589e\u5f3a\u3002\u5b9e\u4f53\u504f\u5c0f\u7684K\u7ebf\u5373\u4f7f\u7a81\u7834\u524d\u9ad8\uff0c\u4e5f\u53ef\u80fd\u53cd\u6620\u5e02\u573a\u72b9\u8c6b\u3002\u672cMT5 EA\u8bbe\u8ba1\u572820\u6839K\u7ebf\u7a81\u7834\u6761\u4ef6\u4e0a\u589e\u52a0\u53ef\u91cf\u5316\u7684\u5b9e\u4f53\u5360\u6bd4\u8fc7\u6ee4\u3002\u5176\u6709\u6548\u6027\u9700\u8981\u6d4b\u8bd5\uff0c\u4e0d\u80fd\u4fdd\u8bc1\u6539\u5584\u6536\u76ca\u3002<\/p>\n<h2>\u89c4\u5219\u4e0e\u6570\u503c\u793a\u4f8b<\/h2>\n<p>\u4f7f\u7528\u6700\u8fd1\u4e00\u6839\u5df2\u6536\u76d8K\u7ebf\u4f5c\u4e3a\u4fe1\u53f7\uff0c\u5176\u6536\u76d8\u4ef7\u5fc5\u987b\u9ad8\u4e8e\u6b64\u524d20\u6839\u5df2\u6536\u76d8K\u7ebf\u7684\u6700\u9ad8\u4ef7\uff0c\u4e14\u9633\u7ebf\u5b9e\u4f53\u9664\u4ee5\u6700\u9ad8\u6700\u4f4e\u4ef7\u5dee\u7684\u6bd4\u4f8b\u81f3\u5c11\u4e3a60%\u3002\u4f8b\u5982\u6700\u4f4e100\u3001\u6700\u9ad8110\u3001\u5f00\u76d8102\u3001\u6536\u76d8109\uff0c\u5b9e\u4f53\u5360\u6bd4\u4e3a7\/10\uff0c\u537370%\uff1b\u82e5\u5f00\u76d8106\u3001\u6536\u76d8108\uff0c\u5219\u4e3a20%\u3002\u5047\u8bbe\u6b64\u524d\u963b\u529b\u4e3a107\uff0c\u4e24\u8005\u5747\u7a81\u7834\uff0c\u4f46\u53ea\u6709\u7b2c\u4e00\u79cd\u901a\u8fc7\u8fc7\u6ee4\u3002<\/p>\n<p> <img decoding=\"async\" alt=\"body-filter.png\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/body-filter.png\" width=\"600\"><\/p>\n<p><em>\u5b9e\u4f53\u5360\u6bd4\u5bf9\u6bd4\uff1a70%\u901a\u8fc760%\u9608\u503c\uff0c20%\u88ab\u8fc7\u6ee4\u3002\u56fe\u4e3a\u6bd4\u4f8b\u793a\u610f\uff0c\u5e76\u975e\u5386\u53f2\u884c\u60c5\u3002<\/em><\/p>\n<h2>MQL5 \u4fe1\u53f7\u5b9e\u73b0<\/h2>\n<p>CopyRates\u4ece\u504f\u79fb1\u5f00\u59cb\uff0c\u6392\u9664\u6b63\u5728\u5f62\u6210\u7684K\u7ebf\u3002\u91c7\u7528\u65f6\u95f4\u5e8f\u5217\u7d22\u5f15\u540e\uff0cbars[0]\u4e3a\u6700\u8fd1\u5df2\u6536\u76d8K\u7ebf\u3002\u5e26\u7b26\u53f7\u7684\u5b9e\u4f53\u8ba1\u7b97\u540c\u65f6\u6392\u9664\u9634\u7ebf\u3002<\/p>\n<pre style=\"white-space:pre;font-family:Consolas,Monaco,monospace\"><code>bool LongSignal()<br>{<br>\u00a0\u00a0\u00a0\u00a0MqlRates bars[];<br>\u00a0\u00a0\u00a0\u00a0ArraySetAsSeries(bars,true);<br>\u00a0\u00a0\u00a0\u00a0if(CopyRates(_Symbol,_Period,1,21,bars)!=21)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return false;<br>\u00a0\u00a0\u00a0\u00a0double level=bars[1].high;<br>\u00a0\u00a0\u00a0\u00a0for(int i=2;i&lt;21;i++)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0level=MathMax(level,bars[i].high);<br>\u00a0\u00a0\u00a0\u00a0double range=bars[0].high-bars[0].low;<br>\u00a0\u00a0\u00a0\u00a0if(range&lt;=0) return false;<br>\u00a0\u00a0\u00a0\u00a0double body=bars[0].close-bars[0].open;<br>\u00a0\u00a0\u00a0\u00a0return bars[0].close&gt;level &amp;&amp; body\/range&gt;=0.60;<br>}<\/code><\/pre>\n<h2>\u63a5\u5165\u81ea\u52a8\u4ea4\u6613\u6267\u884c<\/h2>\n<p>\u5728OnTick\u4e2d\u901a\u8fc7iTime\u8bc6\u522b\u65b0K\u7ebf\uff0c\u6bcf\u6839\u65b0K\u7ebf\u8c03\u7528\u4e00\u6b21\u51fd\u6570\u3002\u6570\u636e\u672a\u51c6\u5907\u597d\u65f6\uff0c\u5e94\u91cd\u8bd5\u800c\u975e\u76f4\u63a5\u6807\u8bb0\u8be5K\u7ebf\u5df2\u5904\u7406\u3002\u68c0\u67e5\u5bf9\u5e94\u54c1\u79cd\u548c\u7b56\u7565Magic Number\u7684\u6301\u4ed3\u53ca\u6302\u5355\u3002\u505a\u591a\u65f6\u4f7f\u7528CTrade.Buy\uff0c\u4ea4\u6613\u91cf\u987b\u7b26\u5408\u7ecf\u7eaa\u5546\u9650\u5236\uff0c\u4fdd\u62a4\u6027\u6b62\u635f\u8bbe\u5728\u4fe1\u53f7\u6700\u4f4e\u4ef7\u4e0b\u65b9\uff0c\u5e76\u6309\u6700\u5c0f\u4ef7\u683c\u53d8\u52a8\u5355\u4f4d\u53ca\u6700\u5c0f\u6b62\u635f\u8ddd\u79bb\u8c03\u6574\u3002\u5f53\u524dAsk\u504f\u79bb\u4fe1\u53f7\u6536\u76d8\u4ef7\u8fc7\u5927\u65f6\u8df3\u8fc7\u3002\u53ef\u91c7\u7528\u5b9e\u9645\u5165\u573a\u81f3\u6b62\u635f\u8ddd\u79bb\u4e24\u500d\u7684\u6b62\u76c8\u89c4\u5219\uff1b\u6210\u4ea4\u540e\u534f\u8c03\u4fdd\u62a4\u8ba2\u5355\uff0c\u5e76\u68c0\u67e5ResultRetcode\uff0c\u800c\u975e\u4ec5\u51ed\u65b9\u6cd5\u8fd4\u56de\u7684\u5e03\u5c14\u503c\u5224\u65ad\u6210\u4ea4\u3002\u51c0\u989d\u8d26\u6237\u8fd8\u987b\u534f\u8c03\u540c\u54c1\u79cd\u7684\u5176\u4ed6\u7b56\u7565\u3002<\/p>\n<h2>\u6d4b\u8bd5\u4e0e\u5c40\u9650<\/h2>\n<p>\u4f7f\u7528\u76f8\u540c\u771f\u5b9e\u9010\u7b14\u6570\u636e\u3001\u70b9\u5dee\u548c\u4f63\u91d1\uff0c\u5bf9\u6bd4\u65e0\u8fc7\u6ee4\u4ee5\u53ca40%\u300160%\u300180%\u9608\u503c\u3002\u8bb0\u5f55\u88ab\u8fc7\u6ee4\u4fe1\u53f7\u3001\u4ea4\u6613\u6b21\u6570\u3001\u56de\u64a4\u53ca\u6837\u672c\u5916\u51c0\u6536\u76ca\u3002\u5927\u5b9e\u4f53\u4e5f\u53ef\u80fd\u51fa\u73b0\u5728\u8d8b\u52bf\u8870\u7aed\u9636\u6bb5\uff0c\u8df3\u7a7a\u53ef\u80fd\u6076\u5316\u6210\u4ea4\u3002\u793a\u4f8b\u4e3a\u4fe1\u53f7\u8f85\u52a9\u51fd\u6570\uff0c\u5e76\u975e\u5b8c\u6574EA\uff0c\u672a\u7ecf\u5b9e\u9645\u7f16\u8bd1\u6216\u56de\u6d4b\u3002\u6760\u6746\u4ea4\u6613\u53ef\u80fd\u9020\u6210\u91cd\u5927\u4e8f\u635f\u3002<\/p>\n<p>\u5982\u9700\u5b9a\u5236\u5165\u573a\u8fc7\u6ee4\u53ca\u8ba2\u5355\u6267\u884c\u7ba1\u7406\uff0c\u8bf7\u4e86\u89e3<a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">MT5\u4ea4\u6613\u7b56\u7565\u5b9a\u5236\u5f00\u53d1\u670d\u52a1<\/a>\u3002<\/p>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5165\u573a\u524d\u8fc7\u6ee4\u5b9e\u4f53\u504f\u5c0f\u7684\u7a81\u7834K\u7ebf \u6536\u76d8\u4ef7\u7a81\u7834\u963b\u529b\u5e76\u4e0d\u4e00\u5b9a\u610f\u5473\u7740\u4e70\u76d8\u6301\u7eed\u589e\u5f3a\u3002\u5b9e\u4f53\u504f\u5c0f\u7684K\u7ebf\u5373\u4f7f\u7a81\u7834\u524d\u9ad8\uff0c\u4e5f\u53ef\u80fd\u53cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2976,"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":[364,520,233],"tags":[515,429,128,693,604,342],"class_list":["post-2975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mt5","category-520","category-233","tag-k","tag-mql5","tag-mt5","tag-693","tag-604","tag-342"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/12\/body-filter.png","_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2975","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=2975"}],"version-history":[{"count":0,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2975\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/2976"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=2975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=2975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=2975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}