{"id":2474,"date":"2026-11-22T10:47:54","date_gmt":"2026-11-22T16:47:54","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=2474"},"modified":"2026-11-22T16:49:54","modified_gmt":"2026-11-22T16:49:54","slug":"mt4-%e4%b8%8d%e9%87%8d%e7%bb%98-k-%e7%ba%bf%e4%bf%a1%e5%8f%b7%ef%bc%9amql4-%e6%94%b6%e7%9b%98%e7%8a%b6%e6%80%81%e5%ae%a1%e8%ae%a1%e4%b8%8e%e7%9b%98%e4%b8%ad%e5%ae%9e%e6%97%b6%e9%a2%84%e8%a7%88","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/mt4-%e4%b8%8d%e9%87%8d%e7%bb%98-k-%e7%ba%bf%e4%bf%a1%e5%8f%b7%ef%bc%9amql4-%e6%94%b6%e7%9b%98%e7%8a%b6%e6%80%81%e5%ae%a1%e8%ae%a1%e4%b8%8e%e7%9b%98%e4%b8%ad%e5%ae%9e%e6%97%b6%e9%a2%84%e8%a7%88\/","title":{"rendered":"MT4 \u4e0d\u91cd\u7ed8 K \u7ebf\u4fe1\u53f7\uff1aMQL4 \u6536\u76d8\u72b6\u6001\u5ba1\u8ba1\u4e0e\u76d8\u4e2d\u5b9e\u65f6\u9884\u89c8"},"content":{"rendered":"<div class=\"postie-post\">\n<div>\n<article style=\"max-width:1050px;margin:auto\">\n<p style=\"color:#3166d8;font-weight:bold;font-size:13px;letter-spacing:1.5px;margin:0 0 9px\">PATTERNSMART \/ MQL4 \u6280\u672f\u7814\u7a76\u4e0e\u5b9e\u7528\u6280\u5de7<\/p>\n<h1 style=\"font-size:37px;line-height:1.17;color:#142b46;margin:8px 0 15px\">MT4 \u4e0d\u91cd\u7ed8 K \u7ebf\u4fe1\u53f7\uff1aMQL4 \u6536\u76d8\u72b6\u6001\u5ba1\u8ba1\u4e0e\u76d8\u4e2d\u5b9e\u65f6\u9884\u89c8<\/h1>\n<p style=\"color:#557188;font-size:16px;margin-bottom:24px\"><strong>\u96be\u5ea6\uff1a\u4ea4\u6613\u6280\u5de7<\/strong> \u00a0|\u00a0 MetaTrader 4 \u81ea\u5b9a\u4e49\u6307\u6807 \u00a0|\u00a0 \u63d0\u4f9b\u5b8c\u6574\u6ce8\u91ca\u6e90\u7801<\/p>\n<p style=\"margin:0 0 17px;line-height:1.75\"><strong>\u4e3a\u4ec0\u4e48\u56fe\u8868\u4e0a\u7684\u7bad\u5934\u521a\u521a\u51fa\u73b0\uff0c\u8f6c\u773c\u53c8\u6d88\u5931\uff1f<\/strong> \u5bf9\u5c1a\u672a\u6536\u76d8\u7684 MT4 K \u7ebf\u800c\u8a00\uff0c\u6700\u9ad8\u4ef7\u3001\u6700\u4f4e\u4ef7\u548c\u6700\u65b0\u4ef7\u4f1a\u968f\u7740\u6bcf\u4e00\u6b21\u62a5\u4ef7\u66f4\u65b0\u800c\u6539\u53d8\u3002\u67d0\u4e2a\u770b\u4f3c\u6ee1\u8db3\u6761\u4ef6\u7684\u4fe1\u53f7\u53ef\u80fd\u53ea\u5b58\u5728\u51e0\u79d2\uff0c\u5728\u6536\u76d8\u524d\u4fbf\u4e0d\u518d\u6210\u7acb\u3002\u8fd9\u4e0d\u4e00\u5b9a\u662f\u7a0b\u5e8f\u5199\u9519\u4e86\uff0c\u800c\u662f\u5c06\u201c\u5f53\u524d\u6682\u65f6\u6ee1\u8db3\u6761\u4ef6\u201d\u4e0e\u201c\u6536\u76d8\u540e\u6b63\u5f0f\u786e\u8ba4\u201d\u6df7\u4e3a\u4e00\u8c08\u3002\u672c\u7bc7\u63d0\u4f9b\u4e00\u4e2a\u5b8c\u6574 MQL4 \u5ba1\u8ba1\u6307\u6807\uff0c\u628a\u5b9e\u65f6\u9884\u89c8\u70b9\u548c\u5df2\u6536\u76d8\u786e\u8ba4\u7bad\u5934\u5206\u5f00\u5448\u73b0\uff0c\u8ba9\u4fe1\u53f7\u5728\u4ec0\u4e48\u65f6\u95f4\u3001\u4f9d\u636e\u4ec0\u4e48\u6570\u636e\u5f62\u6210\uff0c\u90fd\u6709\u660e\u786e\u3001\u53ef\u91cd\u590d\u68c0\u67e5\u7684\u5b9a\u4e49\u3002<\/p>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u95ee\u9898\u5f80\u5f80\u51fa\u5728\u4e00\u4e2a\u6781\u4e0d\u8d77\u773c\u7684\u6570\u7ec4\u7d22\u5f15\u3002MT4 \u65f6\u95f4\u5e8f\u5217\u4e2d\uff0c<code>shift 0<\/code> \u662f\u6b63\u5728\u5f62\u6210\u7684 K \u7ebf\uff0c<code>shift 1<\/code> \u624d\u662f\u6700\u8fd1\u4e00\u6839\u5df2\u7ecf\u6536\u76d8\u7684 K \u7ebf\u3002\u5982\u679c\u5b9e\u65f6\u5f39\u7a97\u6839\u636e\u7b2c 0 \u6839 K \u7ebf\u89e6\u53d1\uff0c\u800c\u5386\u53f2\u590d\u76d8\u5374\u53ea\u4f9d\u636e\u7b2c 1 \u6839\u7684\u6700\u7ec8\u6570\u636e\uff0c\u5c31\u5bb9\u6613\u4ea7\u751f\u201c\u5386\u53f2\u56fe\u8868\u770b\u8d77\u6765\u4ece\u4e0d\u51fa\u9519\u201d\u7684\u9519\u89c9\u3002\u4e3a\u4e86\u4fdd\u8bc1\u7814\u7a76\u7684\u4e00\u81f4\u6027\uff0c\u6211\u4eec\u5fc5\u987b\u5148\u7ea6\u5b9a\u4e24\u79cd\u4fe1\u53f7\u5404\u81ea\u7684\u542b\u4e49\uff0c\u518d\u51b3\u5b9a\u5982\u4f55\u5728\u56fe\u8868\u4e0a\u5c55\u793a\u548c\u62a5\u8b66\u3002<\/p>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u5148\u786e\u7acb\u89c4\u5219\uff1a\u5b9e\u65f6\u9884\u89c8\u5141\u8bb8\u53d8\u5316\uff0c\u6536\u76d8\u7bad\u5934\u5fc5\u987b\u57fa\u4e8e\u5df2\u5b9a\u578b\u6570\u636e<\/h2>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u6307\u6807\u4f7f\u7528\u56db\u4e2a\u7ed8\u56fe\u7f13\u51b2\u533a\uff1a\u4e24\u4e2a\u5b58\u653e\u5df2\u5b8c\u6210 K \u7ebf\u7684\u770b\u6da8\u4e0e\u770b\u8dcc\u786e\u8ba4\u7bad\u5934\uff0c\u53e6\u5916\u4e24\u4e2a\u53ea\u5728\u6700\u65b0 K \u7ebf\u4e0a\u663e\u793a\u8f7b\u91cf\u7684\u5b9e\u65f6\u9884\u89c8\u5706\u70b9\u3002\u9884\u89c8\u70b9\u4e0d\u662f\u672a\u6765\u9884\u6d4b\uff0c\u4e5f\u4e0d\u662f\u5386\u53f2\u56de\u6d4b\u7684\u6b63\u5f0f\u4fe1\u53f7\uff1b\u5b83\u4ec5\u56de\u7b54\u4e00\u4e2a\u8bca\u65ad\u95ee\u9898\uff1a\u201c\u5047\u5982\u6b64\u523b\u5c31\u6536\u76d8\uff0c\u8fd9\u6839 K \u7ebf\u662f\u5426\u6ee1\u8db3\u6761\u4ef6\uff1f\u201d \u65b0 K \u7ebf\u542f\u52a8\u540e\uff0c\u539f\u6765\u7684\u7b2c 0 \u6839\u8f6c\u4e3a\u7b2c 1 \u6839\uff0c\u7a0b\u5e8f\u624d\u4f7f\u7528\u5176\u6700\u7ec8\u7684\u5f00\u3001\u9ad8\u3001\u4f4e\u3001\u6536\uff08OHLC\uff09\u91cd\u65b0\u8bc4\u4f30\uff0c\u5e76\u751f\u6210\u6b63\u5f0f\u7bad\u5934\u3002\u6574\u4e2a\u8ba1\u7b97\u90fd\u53ea\u5f15\u7528\u5f53\u524d\u53ca\u66f4\u65e9\u7684\u884c\u60c5\uff0c\u4e0d\u8bbf\u95ee\u672a\u6765 K \u7ebf\u3002<\/p>\n<figure style=\"margin:25px 0 29px\"><img decoding=\"async\" alt=\"MT4 \u6536\u76d8\u786e\u8ba4\u4fe1\u53f7\u903b\u8f91\u56fe\uff1a\u7b2c0\u6839K\u7ebf\u7684\u52a8\u6001\u9884\u89c8\uff0c\u65b0K\u7ebf\u542f\u52a8\u540e\u7684\u7d22\u5f15\u53d8\u5316\uff0c\u4ee5\u53ca\u7b2c1\u6839\u5df2\u6536\u76d8K\u7ebf\u7684\u786e\u8ba4\u7bad\u5934\uff1b\u4e0b\u65b9\u9644\u6709\u793a\u610f\u8ba1\u7b97\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/11\/MT4-\u6536\u76d8\u786e\u8ba4\u4fe1\u53f7\u903b\u8f91\u56fe\uff1a\u7b2c0\u6839K\u7ebf\u7684\u52a8\u6001\u9884\u89c8\uff0c\u65b0K\u7ebf\u542f\u52a8\u540e\u7684\u7d22\u5f15\u53d8\u5316\uff0c\u4ee5\u53ca\u7b2c1\u6839\u5df2\u6536\u76d8K\u7ebf\u7684\u786e\u8ba4\u7bad\u5934\uff1b\u4e0b\u65b9\u9644\u6709\u793a\u610f\u8ba1\u7b97.png\" style=\"display:block;width:100%;max-width:1050px;height:auto;margin:auto\"><figcaption style=\"font-size:13px;color:#60768a;line-height:1.6;margin-top:9px;text-align:center\">\u56fe 1\uff5c\u5b9e\u65f6\u9884\u89c8\u53ef\u4ee5\u53d8\u5316\uff1bBar 1 \u786e\u8ba4\u7bad\u5934\u4ec5\u4f9d\u636e\u5df2\u7ecf\u56fa\u5b9a\u7684 OHLC \u751f\u6210\u3002\u56fe\u4e2d\u4ef7\u683c\u53ca\u65f6\u95f4\u5747\u4e3a\u5047\u8bbe\u793a\u4f8b\u3002<\/figcaption><\/figure>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u7b5b\u9009\u6761\u4ef6\uff1a\u7528 K \u7ebf\u5b9e\u4f53\u3001\u6536\u76d8\u4f4d\u7f6e\u548c\u76f8\u5bf9\u6ce2\u5e45\u5b9a\u4e49\u4fe1\u53f7<\/h2>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5224\u65ad\u4e00\u6839 K \u7ebf\u662f\u5426\u5177\u6709\u8db3\u591f\u6e05\u6670\u7684\u65b9\u5411\u6027\uff0c\u4e0d\u80fd\u53ea\u770b\u201c\u9633\u7ebf\u5f88\u957f\u201d\u8fd9\u79cd\u6a21\u7cca\u5370\u8c61\u3002\u8fd9\u91cc\u91c7\u7528\u4e09\u4e2a\u53ef\u590d\u7b97\u7684\u6bd4\u4f8b\uff1a<strong>\u5b9e\u4f53\u5360\u6bd4<\/strong>\uff08\u5b9e\u4f53\u957f\u5ea6\u9664\u4ee5\u9ad8\u4f4e\u533a\u95f4\uff09\u3001<strong>\u6536\u76d8\u4f4d\u7f6e<\/strong>\uff08\u6536\u76d8\u8ddd\u6700\u4f4e\u4ef7\u7684\u76f8\u5bf9\u4f4d\u7f6e\uff09\u3001<strong>\u6ce2\u5e45\u6269\u5f20\u500d\u6570<\/strong>\uff08\u672c\u6839\u9ad8\u4f4e\u533a\u95f4\u76f8\u5bf9\u524d\u5341\u6839\u5e73\u5747\u533a\u95f4\u7684\u500d\u6570\uff09\u3002\u9ad8\u4f4e\u533a\u95f4\u5fc5\u987b\u5927\u4e8e\u96f6\uff0c\u4e14\u5386\u53f2\u6570\u636e\u8db3\u591f\u957f\u3002\u6700\u5173\u952e\u7684\u662f\uff1a\u8ba1\u7b97\u5e73\u5747\u6ce2\u5e45\u65f6\u53ea\u4f7f\u7528\u5019\u9009 K \u7ebf\u4e4b\u524d\u7684\u5341\u6839\uff0c\u7edd\u4e0d\u628a\u5f85\u6d4b K \u7ebf\u6df7\u5165\u5176\u57fa\u51c6\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:15px;margin:16px 0 24px\">\n<tr>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u6d4b\u91cf\u9879\u76ee<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u8ba1\u7b97\u5b9a\u4e49<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u9ed8\u8ba4\u901a\u8fc7\u6761\u4ef6<\/th>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u5b9e\u4f53\u5360\u6bd4<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">abs(C \u2212 O) \/ (H \u2212 L)<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u81f3\u5c11 0.65<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u6536\u76d8\u4f4d\u7f6e<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">(C \u2212 L) \/ (H \u2212 L)<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u770b\u6da8 \u2265 0.80\uff1b\u770b\u8dcc \u2264 0.20<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u6ce2\u5e45\u6269\u5f20<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">(H \u2212 L) \/ \u524d 10 \u6839\u5e73\u5747\u6ce2\u5e45<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u81f3\u5c11 1.15<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u65b9\u5411\u5224\u65ad<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u6536\u76d8\u4ef7\u4e0e\u5f00\u76d8\u4ef7\u7684\u6bd4\u8f83<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">C &gt; O \u770b\u6da8\uff1bC &lt; O \u770b\u8dcc<\/td>\n<\/tr>\n<\/table>\n<h3 style=\"color:#285580;font-size:19px;line-height:1.3;margin:21px 0 10px\">\u9010\u6b65\u7b97\u4f8b\uff1a\u4e00\u6839\u6ee1\u8db3\u6761\u4ef6\u7684\u770b\u6da8 K \u7ebf<\/h3>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5047\u8bbe\u67d0\u6839 K \u7ebf\u7684\u5f00\u76d8\u4ef7 O = 100.00\u3001\u6700\u9ad8\u4ef7 H = 102.00\u3001\u6700\u4f4e\u4ef7 L = 99.60\u3001\u6536\u76d8\u4ef7 C = 101.85\u3002\u8fd9\u4e0d\u662f\u5b9e\u9645\u5386\u53f2\u884c\u60c5\uff0c\u53ea\u7528\u4e8e\u6f14\u793a\u3002\u9996\u5148\uff0c\u533a\u95f4\u6ce2\u5e45\u4e3a 102.00 \u2212 99.60 = <strong>2.40<\/strong>\uff0c\u5b9e\u4f53\u957f\u5ea6\u4e3a 101.85 \u2212 100.00 = <strong>1.85<\/strong>\uff0c\u56e0\u6b64\u5b9e\u4f53\u5360\u6bd4\u4e3a <strong>1.85 \/ 2.40 = 0.771<\/strong>\u3002\u6536\u76d8\u8ddd\u79bb\u6700\u4f4e\u4ef7\u4e3a 2.25\uff0c\u5bf9\u5e94\u6536\u76d8\u4f4d\u7f6e <strong>2.25 \/ 2.40 = 0.938<\/strong>\u3002\u5047\u8bbe\u4e4b\u524d\u5341\u6839 K \u7ebf\u7684\u5e73\u5747\u533a\u95f4\u6ce2\u5e45\u662f 1.80\uff0c\u5219\u6269\u5f20\u500d\u6570\u4e3a <strong>2.40 \/ 1.80 = 1.333<\/strong>\u3002\u4e09\u9879\u6570\u503c\u5206\u522b\u8d85\u8fc7 0.65\u30010.80 \u548c 1.15\uff0c\u4e14\u6536\u76d8\u9ad8\u4e8e\u5f00\u76d8\uff0c\u56e0\u6b64\u6ee1\u8db3\u770b\u6da8\u6761\u4ef6\u3002<\/p>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5982\u679c\u4e0a\u8ff0 K \u7ebf\u5c1a\u672a\u7ed3\u675f\uff0c\u8fd9\u4e9b\u6570\u503c\u5c31\u53ea\u662f\u6682\u65f6\u503c\uff1a\u65b0\u7684\u62a5\u4ef7\u53ef\u80fd\u6253\u51fa\u66f4\u4f4e\u7684\u4f4e\u70b9\uff0c\u6269\u5927\u5206\u6bcd\u3001\u964d\u4f4e\u5b9e\u4f53\u5360\u6bd4\uff0c\u8ba9\u9884\u89c8\u5706\u70b9\u6d88\u5931\u3002\u7b49\u5230\u4e0b\u4e00\u6839 K \u7ebf\u5f00\u59cb\uff0c\u7a0b\u5e8f\u518d\u4f9d\u636e\u521a\u6536\u76d8\u7684\u5b8c\u6574\u4ef7\u683c\u91cd\u65b0\u5224\u65ad\uff0c\u624d\u53ef\u4ee5\u628a\u7bad\u5934\u5199\u5165\u786e\u8ba4\u7f13\u51b2\u533a\u3002\u8fd9\u4e5f\u8bf4\u660e\u4e00\u4e2a\u5e38\u88ab\u5ffd\u89c6\u7684\u533a\u522b\uff1a<strong>\u5df2\u6536\u76d8\u4fe1\u53f7\u4e0d\u4f9d\u8d56\u672a\u6765 K \u7ebf\uff0c\u5e76\u4e0d\u4ee3\u8868\u76d8\u4e2d\u9884\u89c8\u6c38\u8fdc\u4e0d\u4f1a\u95ea\u52a8\u3002<\/strong> \u4e24\u79cd\u663e\u793a\u5fc5\u987b\u5728\u56fe\u4f8b\u3001\u63d0\u793a\u548c\u7814\u7a76\u8bb0\u5f55\u4e2d\u6e05\u695a\u533a\u5206\u3002<\/p>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u4e3a\u4f55\u91c7\u7528\u56db\u4e2a\u6307\u6807\u7f13\u51b2\u533a\uff0c\u800c\u4e0d\u662f\u628a\u4fe1\u53f7\u90fd\u753b\u5728\u540c\u4e00\u6761\u7ebf\u4e0a\uff1f<\/h2>\n<table style=\"width:100%;border-collapse:collapse;font-size:15px;margin:16px 0 24px\">\n<tr>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u7f13\u51b2\u533a<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u51fa\u73b0\u4f4d\u7f6e<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u542b\u4e49\u53ca\u9650\u5236<\/th>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">0 \u2014 BullConfirmed<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u5df2\u6536\u76d8 K \u7ebf\uff0cshift \u2265 1<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u7eff\u8272\u5411\u4e0a\u7bad\u5934\uff1b\u7edd\u4e0d\u5199\u5165 Bar 0\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">1 \u2014 BearConfirmed<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u5df2\u6536\u76d8 K \u7ebf\uff0cshift \u2265 1<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u7ea2\u8272\u5411\u4e0b\u7bad\u5934\uff1b\u7edd\u4e0d\u5199\u5165 Bar 0\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">2 \u2014 BullPreview<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u4ec5\u5f53\u524d K \u7ebf\uff0cshift = 0<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u8f83\u6d45\u8272\u5706\u70b9\uff0c\u53ef\u51fa\u73b0\u6216\u6d88\u5931\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">3 \u2014 BearPreview<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u4ec5\u5f53\u524d K \u7ebf\uff0cshift = 0<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u8f83\u6d45\u8272\u5706\u70b9\uff0c\u53ef\u51fa\u73b0\u6216\u6d88\u5931\u3002<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u4ee3\u7801\u4f7f\u7528 MT4 \u6307\u6807\u6807\u51c6\u4e8b\u4ef6 <code>OnInit()<\/code> \u4e0e <code>OnCalculate()<\/code>\u3002\u5728\u521d\u59cb\u5316\u65f6\uff0c\u4ee5 <code>SetIndexBuffer()<\/code> \u7ed1\u5b9a\u5404\u7ed8\u56fe\u6570\u7ec4\uff0c\u968f\u540e\u8c03\u7528 <code>ArraySetAsSeries()<\/code> \u660e\u786e\u8bbe\u5b9a\u7d22\u5f15\u4ece\u6700\u65b0 K \u7ebf\u5411\u5386\u53f2\u65b9\u5411\u9012\u589e\uff1b\u987a\u5e8f\u4e0d\u53ef\u968f\u610f\u53cd\u8f6c\uff0c\u56e0\u4e3a\u7f13\u51b2\u533a\u7ed1\u5b9a\u540e\u53ef\u80fd\u91cd\u7f6e\u7d22\u5f15\u65b9\u5411\u3002\u5728 <code>OnCalculate()<\/code> \u4e2d\uff0c\u5f00\u9ad8\u4f4e\u6536\u4e0e\u65f6\u95f4\u6570\u7ec4\u4e5f\u663e\u5f0f\u8bbe\u7f6e\u4e3a\u65f6\u95f4\u5e8f\u5217\u6a21\u5f0f\uff0c\u907f\u514d\u4ee3\u7801\u4f9d\u8d56\u4e0d\u540c\u7ec8\u7aef\u7684\u9690\u542b\u9ed8\u8ba4\u503c\u3002\u9996\u6b21\u52a0\u8f7d\u6216\u5386\u53f2\u6570\u636e\u53d1\u751f\u8f83\u5927\u5237\u65b0\u65f6\uff0c\u4f1a\u91cd\u65b0\u8ba1\u7b97\u5386\u53f2\u6bb5\uff1b\u5e73\u5e38\u62a5\u4ef7\u66f4\u65b0\u5219\u91cd\u70b9\u5904\u7406\u6700\u8fd1\u51e0\u6839\u53ca\u52a8\u6001\u9884\u89c8\uff0c\u4ece\u800c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u5168\u5386\u53f2\u8fd0\u7b97\u3002<\/p>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5f39\u7a97\u63d0\u9192\u4e5f\u5fc5\u987b\u6709\u72b6\u6001\u63a7\u5236\u3002\u53d8\u91cf <code>LastClosedTime<\/code> \u4fdd\u5b58\u6700\u8fd1\u4e00\u6b21\u5904\u7406\u8fc7\u7684\u7b2c 1 \u6839 K \u7ebf\u65f6\u95f4\u6233\u3002\u9996\u6b21\u52a0\u8f7d\u6307\u6807\u65f6\u53ea\u521d\u59cb\u5316\u8fd9\u4e2a\u65f6\u95f4\uff0c\u4e0d\u4e3a\u65e7\u884c\u60c5\u53d1\u51fa\u5927\u91cf\u5386\u53f2\u63d0\u9192\uff1b\u53ea\u6709\u53d1\u73b0\u7b2c 1 \u6839\u7684\u65f6\u95f4\u6233\u53d8\u5316\uff0c\u4e5f\u5c31\u662f\u65b0 K \u7ebf\u4ea7\u751f\u65f6\uff0c\u624d\u68c0\u67e5\u521a\u521a\u7ed3\u675f\u7684\u90a3\u4e00\u6839\uff0c\u5e76\u9488\u5bf9\u6ee1\u8db3\u6761\u4ef6\u7684\u65b9\u5411\u6700\u591a\u53d1\u51fa\u4e00\u6b21\u5f39\u7a97\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u540c\u4e00\u6839 K \u7ebf\u4e0a\u6bcf\u4e2a tick \u91cd\u590d\u63d0\u793a\u3002\u9700\u8981\u6ce8\u610f\uff0c\u8fd9\u4e2a\u72b6\u6001\u4ec5\u4fdd\u5b58\u5728\u8fd0\u884c\u5185\u5b58\u4e2d\uff0c\u6307\u6807\u91cd\u65b0\u52a0\u8f7d\u6216\u7ec8\u7aef\u91cd\u542f\u540e\u4f1a\u91cd\u65b0\u521d\u59cb\u5316\u3002<\/p>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u5b8c\u6574 MT4 MQL4 \u6e90\u7801\uff1a\u590d\u5236\u540e\u4fdd\u5b58\u81f3 MetaEditor<\/h2>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5c06\u4e0b\u65b9\u5b8c\u6574\u4ee3\u7801\u4fdd\u5b58\u4e3a <code>PS_ClosedBarStateAudit.mq4<\/code>\u3002\u5b83\u662f\u4e00\u4e2a\u72ec\u7acb\u7684 MT4 \u81ea\u5b9a\u4e49\u6307\u6807\uff0c\u5305\u542b\u6b63\u5f0f\u65b9\u5411\u7bad\u5934\u4e0e\u53ef\u9009\u7684\u5b9e\u65f6\u9884\u89c8\u5706\u70b9\uff0c\u4e0d\u4f1a\u4e3b\u52a8\u4e0b\u5355\uff0c\u4e5f\u4e0d\u9700\u8981\u914d\u5957 EA\u3002\u4e3a\u786e\u4fdd\u4e2d\u6587\u4e0e\u82f1\u6587\u8bfb\u8005\u590d\u73b0\u540c\u4e00\u7ed3\u679c\uff0c\u4e0b\u9762\u7a0b\u5e8f\u539f\u6837\u4fdd\u7559\u5168\u90e8\u82f1\u6587\u53d8\u91cf\u3001\u6ce8\u91ca\u4e0e\u516c\u5f0f\u3002<\/p>\n<pre style=\"white-space:pre;font-family:Consolas,Monaco,monospace;background:#f0f4f6;padding:22px 18px;border:1px solid #dbe5e7;border-radius:12px;font-size:12.6px;line-height:1.62\"><code>\/\/+------------------------------------------------------------------+<br>\/\/| PS_ClosedBarStateAudit.mq4  -  confirmed vs live-preview candles   |<br>\/\/| Educational custom indicator for MetaTrader 4 \/ MQL4             |<br>\/\/+------------------------------------------------------------------+<br>#property strict<br>#property indicator_chart_window<br>#property indicator_buffers 4<br>#property indicator_color1 clrSeaGreen<br>#property indicator_color2 clrIndianRed<br>#property indicator_color3 clrMediumAquamarine<br>#property indicator_color4 clrLightCoral<br><br>input int    AverageRangeBars  = 10;<br>input double MinBodyFraction   = 0.65;<br>input double BullCloseLocation = 0.80;<br>input double BearCloseLocation = 0.20;<br>input double MinRangeMultiple  = 1.15;<br>input double ArrowOffsetPart   = 0.18;<br>input bool   ShowLivePreview   = true;<br>input bool   PopupOnNewBar     = false;<br><br>double BullConfirmed[];<br>double BearConfirmed[];<br>double BullPreview[];<br>double BearPreview[];<br>datetime LastClosedTime = 0;<br><br>int OnInit()<br>{<br>\u00a0\u00a0\u00a0if(AverageRangeBars &lt; 2 || MinBodyFraction &lt; 0.0 ||<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0MinBodyFraction &gt; 1.0 || BullCloseLocation &lt; 0.0 ||<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BullCloseLocation &gt; 1.0 || BearCloseLocation &lt; 0.0 ||<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BearCloseLocation &gt; 1.0 || MinRangeMultiple &lt;= 0.0 ||<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrowOffsetPart &lt; 0.0)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return(INIT_PARAMETERS_INCORRECT);<br><br>\u00a0\u00a0\u00a0SetIndexBuffer(0, BullConfirmed);<br>\u00a0\u00a0\u00a0SetIndexBuffer(1, BearConfirmed);<br>\u00a0\u00a0\u00a0SetIndexBuffer(2, BullPreview);<br>\u00a0\u00a0\u00a0SetIndexBuffer(3, BearPreview);<br>\u00a0\u00a0\u00a0\/\/ Binding a buffer can reset its indexing direction.<br>\u00a0\u00a0\u00a0ArraySetAsSeries(BullConfirmed, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(BearConfirmed, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(BullPreview, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(BearPreview, true);<br><br>\u00a0\u00a0\u00a0SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, 2);<br>\u00a0\u00a0\u00a0SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, 2);<br>\u00a0\u00a0\u00a0SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, 1);<br>\u00a0\u00a0\u00a0SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, 1);<br>\u00a0\u00a0\u00a0SetIndexArrow(0, 233);<br>\u00a0\u00a0\u00a0SetIndexArrow(1, 234);<br>\u00a0\u00a0\u00a0SetIndexArrow(2, 159);  \/\/ preview dot, not a confirmed arrow<br>\u00a0\u00a0\u00a0SetIndexArrow(3, 159);<br><br>\u00a0\u00a0\u00a0for(int p = 0; p &lt; 4; p++)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SetIndexEmptyValue(p, EMPTY_VALUE);<br>\u00a0\u00a0\u00a0SetIndexLabel(0, \"Bullish confirmed\");<br>\u00a0\u00a0\u00a0SetIndexLabel(1, \"Bearish confirmed\");<br>\u00a0\u00a0\u00a0SetIndexLabel(2, \"Bullish LIVE preview\");<br>\u00a0\u00a0\u00a0SetIndexLabel(3, \"Bearish LIVE preview\");<br>\u00a0\u00a0\u00a0IndicatorShortName(\"PS Closed-Bar State Audit (MT4)\");<br>\u00a0\u00a0\u00a0return(INIT_SUCCEEDED);<br>}<br><br>\/\/ Evaluate candle at shift using only OLDER candles (shift+1, ...).<br>int EvaluateCandle(const int shift, const int total,<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const double &amp;o[], const double &amp;h[],<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const double &amp;l[], const double &amp;c[])<br>{<br>\u00a0\u00a0\u00a0if(shift + AverageRangeBars &gt;= total)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 0;<br>\u00a0\u00a0\u00a0double range = h[shift] - l[shift];<br>\u00a0\u00a0\u00a0if(range &lt;= 0.0)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 0;<br><br>\u00a0\u00a0\u00a0double priorSum = 0.0;<br>\u00a0\u00a0\u00a0for(int k = 1; k &lt;= AverageRangeBars; k++)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0priorSum += MathMax(0.0, h[shift+k] - l[shift+k]);<br>\u00a0\u00a0\u00a0double priorAverage = priorSum \/ AverageRangeBars;<br>\u00a0\u00a0\u00a0if(priorAverage &lt;= 0.0 || range &lt; MinRangeMultiple * priorAverage)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 0;<br><br>\u00a0\u00a0\u00a0double bodyRatio = MathAbs(c[shift] - o[shift]) \/ range;<br>\u00a0\u00a0\u00a0double closeLocation = (c[shift] - l[shift]) \/ range;<br>\u00a0\u00a0\u00a0if(bodyRatio &lt; MinBodyFraction)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 0;<br>\u00a0\u00a0\u00a0if(c[shift] &gt; o[shift] &amp;&amp; closeLocation &gt;= BullCloseLocation)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 1;<br>\u00a0\u00a0\u00a0if(c[shift] &lt; o[shift] &amp;&amp; closeLocation &lt;= BearCloseLocation)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return -1;<br>\u00a0\u00a0\u00a0return 0;<br>}<br><br>int OnCalculate(const int rates_total, const int prev_calculated,<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const datetime &amp;time[], const double &amp;open[],<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const double &amp;high[], const double &amp;low[],<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const double &amp;close[], const long &amp;tick_volume[],<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const long &amp;volume[], const int &amp;spread[])<br>{<br>\u00a0\u00a0\u00a0if(rates_total &lt;= AverageRangeBars + 2)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 0;<br>\u00a0\u00a0\u00a0\/\/ Make the meaning of shift 0 \/ shift 1 explicit.<br>\u00a0\u00a0\u00a0ArraySetAsSeries(time, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(open, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(high, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(low, true);<br>\u00a0\u00a0\u00a0ArraySetAsSeries(close, true);<br><br>\u00a0\u00a0\u00a0if(prev_calculated == 0 || prev_calculated &gt; rates_total)<br>\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayInitialize(BullConfirmed, EMPTY_VALUE);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayInitialize(BearConfirmed, EMPTY_VALUE);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayInitialize(BullPreview, EMPTY_VALUE);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayInitialize(BearPreview, EMPTY_VALUE);<br>\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0int maxShift = rates_total - AverageRangeBars - 1;<br>\u00a0\u00a0\u00a0int recalc = (prev_calculated == 0 || prev_calculated &gt; rates_total)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0? maxShift : MathMin(maxShift, rates_total-prev_calculated+1);<br>\u00a0\u00a0\u00a0for(int i = recalc; i &gt;= 1; i--)<br>\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BullConfirmed[i] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BearConfirmed[i] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0int direction = EvaluateCandle(i, rates_total, open, high, low, close);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0double offset = (high[i] - low[i]) * ArrowOffsetPart;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(direction == 1)  BullConfirmed[i] = low[i]  - offset;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(direction == -1) BearConfirmed[i] = high[i] + offset;<br>\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0\/\/ Never publish a confirmed arrow on the unfinished candle.<br>\u00a0\u00a0\u00a0BullConfirmed[0] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0BearConfirmed[0] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0BullPreview[0] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0BearPreview[0] = EMPTY_VALUE;<br>\u00a0\u00a0\u00a0if(ShowLivePreview)<br>\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0int live = EvaluateCandle(0, rates_total, open, high, low, close);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0double liveOffset = (high[0] - low[0]) * ArrowOffsetPart;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(live == 1)  BullPreview[0] = low[0]  - liveOffset;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(live == -1) BearPreview[0] = high[0] + liveOffset;<br>\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0\/\/ New-bar boundary: alert at most once per newly closed candle.<br>\u00a0\u00a0\u00a0\/\/ First attachment is silent; historical arrows never trigger popups.<br>\u00a0\u00a0\u00a0if(LastClosedTime == 0)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LastClosedTime = time[1];<br>\u00a0\u00a0\u00a0else if(time[1] != LastClosedTime)<br>\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LastClosedTime = time[1];<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(PopupOnNewBar &amp;&amp; BullConfirmed[1] != EMPTY_VALUE)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Alert(Symbol(), \" MT4 bullish candle confirmed at \",<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TimeToString(time[1], TIME_DATE|TIME_MINUTES));<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(PopupOnNewBar &amp;&amp; BearConfirmed[1] != EMPTY_VALUE)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Alert(Symbol(), \" MT4 bearish candle confirmed at \",<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TimeToString(time[1], TIME_DATE|TIME_MINUTES));<br>\u00a0\u00a0\u00a0}<br>\u00a0\u00a0\u00a0return(rates_total);<br>}<br><\/code><\/pre>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u5b89\u88c5\u6b65\u9aa4\u4e0e\u53ef\u590d\u73b0\u7684\u9a8c\u6536\u6d4b\u8bd5<\/h2>\n<ul style=\"padding-left:24px;line-height:1.72;margin:8px 0 20px\">\n<li style=\"margin-bottom:8px\">\u5728 MT4 \u70b9\u51fb <strong>File \u2192 Open Data Folder<\/strong>\uff0c\u628a\u6e90\u7801\u653e\u5165 <code>MQL4\/Indicators<\/code>\u3002\u4f7f\u7528 MetaEditor \u6253\u5f00\u5e76\u7f16\u8bd1\uff0c\u5237\u65b0\u5bfc\u822a\u5668\u6216\u91cd\u542f\u5e73\u53f0\uff0c\u518d\u628a <strong>PS Closed-Bar State Audit<\/strong> \u62d6\u653e\u5230\u56fe\u8868\u3002\u6e90\u7801\u4ecd\u9700\u5728\u5b9e\u9645 MT4 \u7ec8\u7aef\u7f16\u8bd1\u6838\u5bf9\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u5efa\u8bae\u5148\u4f7f\u7528\u9ed8\u8ba4\u53c2\u6570\uff1a<strong>AverageRangeBars=10<\/strong>\u3001<strong>MinBodyFraction=0.65<\/strong>\u3001<strong>BullCloseLocation=0.80<\/strong>\u3001<strong>BearCloseLocation=0.20<\/strong> \u548c <strong>MinRangeMultiple=1.15<\/strong>\u3002\u9a8c\u8bc1\u671f\u95f4\u5148\u5173\u95ed\u5f39\u7a97\u63d0\u9192\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u8bbe\u5b9a <strong>ShowLivePreview=true<\/strong>\uff0c\u89c2\u5bdf\u6700\u65b0 K \u7ebf\u4e0a\u7684\u5c0f\u5706\u70b9\u3002\u5b83\u53ef\u80fd\u968f\u7740 tick \u66f4\u65b0\u800c\u6d88\u5931\uff0c\u8fd9\u662f\u672a\u6536\u76d8\u6570\u636e\u7684\u6b63\u5e38\u53d8\u5316\uff0c\u4e0d\u7b49\u4e8e\u5df2\u7ecf\u786e\u8ba4\u7684\u5386\u53f2\u7bad\u5934\u53d1\u751f\u91cd\u7ed8\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u7b49\u5f85\u65b0 K \u7ebf\u51fa\u73b0\uff0c\u8bb0\u5f55\u4e0a\u4e00\u6839\u7684\u5f00\u9ad8\u4f4e\u6536\u53ca\u4e4b\u524d\u5341\u6839\u7684\u5e73\u5747\u6ce2\u5e45\uff0c\u4f7f\u7528\u4e0a\u8868\u516c\u5f0f\u72ec\u7acb\u590d\u7b97\u4fe1\u53f7\u65b9\u5411\u3002\u82e5\u4ea7\u751f\u6b63\u5f0f\u7bad\u5934\uff0c\u786e\u8ba4\u5b83\u7559\u5728\u6b63\u786e\u7684\u5df2\u6536\u76d8 K \u7ebf\u4e0a\uff0c\u800c\u4e0d\u662f\u79fb\u5230\u5f53\u524d K \u7ebf\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u5c06 <strong>ShowLivePreview=false<\/strong>\uff0c\u786e\u8ba4\u53ea\u5269\u6536\u76d8\u7bad\u5934\u3002\u6700\u540e\u53ef\u5f00\u542f <strong>PopupOnNewBar<\/strong>\uff0c\u68c0\u67e5\u540c\u4e00\u6b21\u65b0 K \u7ebf\u5207\u6362\u662f\u5426\u53ea\u89e6\u53d1\u4e00\u6b21\u63d0\u9192\uff0c\u800c\u975e\u6bcf\u7b14\u62a5\u4ef7\u53cd\u590d\u5f39\u7a97\u3002<\/li>\n<\/ul>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u53c2\u6570\u7075\u654f\u5ea6\uff1a\u8c03\u4f4e\u4e0e\u8c03\u9ad8\u7a76\u7adf\u6539\u53d8\u4e86\u4ec0\u4e48\uff1f<\/h2>\n<table style=\"width:100%;border-collapse:collapse;font-size:15px;margin:16px 0 24px\">\n<tr>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u53c2\u6570<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u8f83\u4f4e\uff0f\u8f83\u77ed\u8bbe\u7f6e<\/th>\n<th style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#f1f5f4;color:#173553;font-weight:700\">\u8f83\u9ad8\uff0f\u8f83\u957f\u8bbe\u7f6e<\/th>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">MinBodyFraction<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u8f83\u5c0f\u5b9e\u4f53\u4e5f\u80fd\u901a\u8fc7\uff0c\u5f31\u65b9\u5411 K \u7ebf\u589e\u52a0\u3002<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u8981\u6c42\u5b9e\u4f53\u5360\u6bd4\u66f4\u9ad8\uff0c\u65b9\u5411\u6027\u66f4\u660e\u786e\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">BullCloseLocation<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u5141\u8bb8\u770b\u6da8 K \u7ebf\u6536\u76d8\u79bb\u6700\u9ad8\u4ef7\u66f4\u8fdc\u3002<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u8981\u6c42\u6536\u76d8\u66f4\u8d34\u8fd1\u6700\u9ad8\u4ef7\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">BearCloseLocation<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u8981\u6c42\u770b\u8dcc K \u7ebf\u6536\u76d8\u66f4\u8d34\u8fd1\u6700\u4f4e\u4ef7\u3002<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u5141\u8bb8\u6536\u76d8\u79bb\u6700\u4f4e\u4ef7\u66f4\u8fdc\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">MinRangeMultiple<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u666e\u901a\u6ce2\u5e45 K \u7ebf\u66f4\u5bb9\u6613\u901a\u8fc7\uff0c\u4fe1\u53f7\u53ef\u80fd\u589e\u52a0\u3002<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top;background:#fbfcfa\">\u4ec5\u63a5\u53d7\u6269\u5f20\u66f4\u660e\u663e\u7684 K \u7ebf\uff0c\u4fe1\u53f7\u53ef\u80fd\u51cf\u5c11\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">AverageRangeBars<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u8f83\u5feb\u8ddf\u968f\u6ce2\u52a8\u72b6\u6001\u6539\u53d8\uff0c\u4f46\u566a\u58f0\u4e5f\u53ef\u80fd\u589e\u5927\u3002<\/td>\n<td style=\"1px solid #e2e9e8;padding:12px 11px;vertical-align:top\">\u5e73\u5747\u57fa\u51c6\u8f83\u5e73\u7a33\uff0c\u4f46\u53ef\u80fd\u6ede\u540e\u4e8e\u7a81\u53d1\u6ce2\u52a8\u3002<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u4e0a\u8ff0\u53d8\u5316\u662f\u7b5b\u9009\u95e8\u69db\u4e4b\u95f4\u7684\u53d6\u820d\uff0c\u800c\u4e0d\u662f\u80fd\u4fdd\u8bc1\u76c8\u5229\u7684\u53c2\u6570\u4f18\u5316\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5c06 <code>MinRangeMultiple<\/code> \u4ece 1.15 \u964d\u5230 1.00\uff0c\u610f\u5473\u7740\u6ce2\u5e45\u53ea\u8981\u8fbe\u5230\u524d\u5341\u6839\u7684\u5e73\u5747\u503c\uff0c\u5c31\u53ef\u80fd\u901a\u8fc7\u6269\u5f20\u6761\u4ef6\uff1b\u4f46\u4ecd\u5fc5\u987b\u540c\u65f6\u6ee1\u8db3\u5b9e\u4f53\u5360\u6bd4\u4e0e\u6536\u76d8\u4f4d\u7f6e\u7684\u8981\u6c42\u3002\u53cd\u4e4b\uff0c\u63d0\u9ad8\u5230 1.50 \u4f1a\u6392\u9664\u524d\u8ff0\u793a\u4f8b\uff0c\u56e0\u4e3a\u5176\u6269\u5f20\u500d\u6570\u53ea\u6709 1.333\u3002<code>BearCloseLocation<\/code> \u7684\u65b9\u5411\u5c24\u5176\u5bb9\u6613\u8bbe\u7f6e\u53cd\uff1a\u95e8\u69db\u8d8a\u4f4e\uff0c\u8981\u6c42\u7a7a\u5934\u6536\u76d8\u8d8a\u63a5\u8fd1\u6700\u4f4e\u4ef7\uff0c\u5b9e\u9645\u4e0a\u662f\u66f4\u4e25\u683c\u800c\u975e\u66f4\u5bbd\u677e\u3002\u5bf9\u4e8e\u4e0d\u540c\u54c1\u79cd\u548c\u5468\u671f\uff0c\u5e94\u5148\u7528\u5df2\u6536\u76d8 K \u7ebf\u505a\u654f\u611f\u6027\u5206\u6790\uff0c\u518d\u8003\u8651\u662f\u5426\u503c\u5f97\u8c03\u6574\u3002<\/p>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u5b9e\u9645\u5c40\u9650\u4e0e\u5bb9\u6613\u5ffd\u89c6\u7684\u5931\u8d25\u60c5\u5f62<\/h2>\n<ul style=\"padding-left:24px;line-height:1.72;margin:8px 0 20px\">\n<li style=\"margin-bottom:8px\">\u6307\u6807\u57fa\u4e8e\u7ecf\u7eaa\u5546\u63d0\u4f9b\u7684 OHLC\u3002\u4e0d\u540c\u6570\u636e\u6e90\u3001\u7f3a\u5931\u62a5\u4ef7\u3001\u5468\u672b K \u7ebf\u6216\u5408\u6210\u4ea7\u54c1\u53ef\u80fd\u5f62\u6210\u4e0d\u540c\u7684\u5b9e\u4f53\u4e0e\u4e0a\u4e0b\u5f71\u7ebf\u3002\u65b9\u5411\u6e05\u6670\u7684 K \u7ebf\u4e5f\u4e0d\u4ee3\u8868\u4e0b\u4e00\u6839\u4e00\u5b9a\u5ef6\u7eed\u8d8b\u52bf\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u5728\u5386\u53f2 OHLC \u4e0d\u53d8\u7684\u524d\u63d0\u4e0b\uff0c\u786e\u8ba4\u7bad\u5934\u4e0d\u4f9d\u8d56\u4e4b\u540e\u7684 K \u7ebf\u3002\u4f46\u662f\u7ecf\u7eaa\u5546\u5982\u679c\u4fee\u8ba2\u4e86\u65e7\u884c\u60c5\uff0c\u5386\u53f2\u7ed3\u679c\u53ef\u4ee5\u5408\u6cd5\u5730\u91cd\u65b0\u8ba1\u7b97\uff0c\u56e0\u6b64\u4e0d\u80fd\u5c06\u201c\u4e0d\u4f7f\u7528\u672a\u6765\u6570\u636e\u201d\u8bef\u5199\u4e3a\u201c\u7edd\u5bf9\u4e0d\u4f1a\u53d7\u5230\u6570\u636e\u4fee\u8ba2\u5f71\u54cd\u201d\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u9996\u6b21\u6302\u8f7d\u6307\u6807\u65f6\u6545\u610f\u4e0d\u5bf9\u5386\u53f2\u4fe1\u53f7\u62a5\u8b66\u3002\u82e5\u5728\u4e00\u6839 K \u7ebf\u4e2d\u9014\u6302\u8f7d\uff0c\u4e5f\u4e0d\u4f1a\u8ffd\u6eaf\u8865\u53d1\u5148\u524d\u7684\u5f39\u7a97\uff1b\u4e0b\u4e00\u6b21\u771f\u6b63\u68c0\u6d4b\u5230\u65b0 K \u7ebf\u8fb9\u754c\u65f6\u624d\u8bc4\u4f30\u63d0\u9192\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u867d\u7136\u4fe1\u53f7\u6765\u81ea\u6536\u76d8\u6570\u636e\uff0c\u4f46\u771f\u6b63\u4e0b\u5355\u8fd8\u6d89\u53ca\u70b9\u5dee\u3001\u64ae\u5408\u5ef6\u8fdf\u3001\u6ed1\u70b9\u3001\u624b\u7eed\u8d39\u3001\u6d41\u52a8\u6027\u548c\u4ed3\u4f4d\u7ba1\u7406\u3002\u8fd9\u4e2a\u56fe\u8868\u6307\u6807\u5e76\u672a\u6a21\u62df\u4efb\u4f55\u4ea4\u6613\u6267\u884c\u6761\u4ef6\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u5b9e\u65f6\u9884\u89c8\u53ea\u4f5c\u4e3a\u6559\u5b66\u4e0e\u8c03\u8bd5\u4fe1\u606f\u3002\u4e0d\u8981\u62ff\u76d8\u4e2d\u9884\u89c8\u5706\u70b9\u7684\u622a\u56fe\u4e0e\u6536\u76d8\u7bad\u5934\u7684\u4e8b\u540e\u56de\u6d4b\u6bd4\u8f83\uff0c\u7136\u540e\u8bef\u8ba4\u4e3a\u4e24\u8005\u8bb0\u5f55\u7684\u662f\u76f8\u540c\u7684\u4e8b\u4ef6\u6d41\u3002<\/li>\n<\/ul>\n<h2 style=\"color:#173553;font-size:25px;line-height:1.3;margin:34px 0 15px;border-bottom:1px solid #e4ebea;padding-bottom:9px\">\u51c6\u5907\u5b9e\u76d8\u7814\u7a76\u524d\u7684\u9010\u9879\u9a8c\u8bc1\u6e05\u5355<\/h2>\n<ul style=\"padding-left:24px;line-height:1.72;margin:8px 0 20px\">\n<li style=\"margin-bottom:8px\">\u786e\u8ba4\u7a0b\u5e8f\u5728 MetaTrader 4 \u4e2d\u4f5c\u4e3a <strong>\u81ea\u5b9a\u4e49\u6307\u6807<\/strong> \u7f16\u8bd1\uff0c\u4e0d\u662f MT5 \u6307\u6807\uff0c\u4e5f\u4e0d\u662f\u81ea\u52a8\u4ea4\u6613 EA\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u9010 tick \u68c0\u67e5 Bar 0\uff1a\u4e24\u6761 Confirmed \u7f13\u51b2\u533a\u5fc5\u987b\u4e3a\u7a7a\uff0cPreview \u7f13\u51b2\u533a\u53ea\u80fd\u5728\u5f53\u524d K \u7ebf\u4e0a\u663e\u793a\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u81f3\u5c11\u624b\u5de5\u590d\u6838\u4e24\u6839\u5019\u9009 K \u7ebf\u7684\u524d\u5341\u6839\u5e73\u5747\u6ce2\u5e45\uff0c\u5305\u62ec\u4e00\u6839\u5e94\u56e0\u6ce2\u5e45\u4e0d\u8db3\u800c\u88ab\u8fc7\u6ee4\u7684\u6837\u672c\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u540c\u65f6\u6d4b\u8bd5\u770b\u6da8\u3001\u770b\u8dcc\u3001\u96f6\u6ce2\u5e45\u3001\u5386\u53f2\u6570\u636e\u4e0d\u8db3\u3001\u91cd\u65b0\u8f7d\u5165\u5386\u53f2\uff0c\u4ee5\u53ca\u65b0 K \u7ebf\u5230\u6765\u7684\u8fb9\u754c\u60c5\u5f62\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u91cd\u542f MT4 \u6216\u91cd\u65b0\u6302\u8f7d\u6307\u6807\uff0c\u786e\u8ba4\u4e0d\u4f1a\u5bf9\u5386\u53f2\u884c\u60c5\u8fde\u7eed\u5f39\u7a97\uff0c\u5e76\u68c0\u67e5\u6bcf\u6839\u65b0\u6536\u76d8\u4e14\u5408\u683c\u7684 K \u7ebf\u6700\u591a\u63d0\u9192\u4e00\u6b21\u3002<\/li>\n<li style=\"margin-bottom:8px\">\u7528\u4e0d\u540c\u7ecf\u7eaa\u5546\u6570\u636e\u548c\u56fe\u8868\u5468\u671f\u505a\u4ea4\u53c9\u5bf9\u7167\uff0c\u4f46\u4e0d\u8981\u628a\u4fe1\u53f7\u6570\u91cf\u5dee\u5f02\u5f53\u4f5c\u7b56\u7565\u6536\u76ca\u7387\u6216\u4ea4\u6613\u4f18\u52bf\u7684\u8bc1\u636e\u3002<\/li>\n<\/ul>\n<p style=\"margin:0 0 17px;line-height:1.75\">\u5982\u679c\u8fd9\u4e2a\u514d\u8d39 MT4 \u6307\u6807\u6e90\u7801\u5bf9\u4f60\u7684\u7814\u7a76\u6709\u6240\u5e2e\u52a9\uff0c\u800c\u4f60\u5e0c\u671b\u52a0\u5165\u4fe1\u53f7\u65e5\u5fd7\u3001\u63a8\u9001\u901a\u77e5\u3001\u591a\u54c1\u79cd\u540c\u6b65\u68c0\u67e5\u6216\u5176\u4ed6\u9002\u914d\u529f\u80fd\uff0c\u6b22\u8fce\u4e86\u89e3\u6211\u4eec\u7684 <a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">\u4ea4\u6613\u8f6f\u4ef6\u5b9a\u5236\u5f00\u53d1\u670d\u52a1<\/a>\uff0c\u5c31\u5177\u4f53\u9700\u6c42\u548c\u4fee\u6539\u65b9\u6848\u8fdb\u884c\u4ea4\u6d41\u3002<\/p>\n<p style=\"margin:0 0 17px;line-height:1.75\"><strong>\u98ce\u9669\u63d0\u793a\uff1a<\/strong>\u672c\u6587\u63d0\u4f9b\u7684\u662f\u6559\u80b2\u7528\u9014\u7684\u4fe1\u53f7\u8bca\u65ad\u7a0b\u5e8f\uff0c\u4e0d\u6784\u6210\u6295\u8d44\u5efa\u8bae\uff0c\u4e5f\u4e0d\u662f\u5df2\u7ecf\u9a8c\u8bc1\u76c8\u5229\u80fd\u529b\u7684\u81ea\u52a8\u4ea4\u6613\u7cfb\u7edf\u3002\u672c\u6587\u6ca1\u6709\u58f0\u79f0\u4efb\u4f55\u6536\u76ca\u7387\u3001\u80dc\u7387\u6216\u56de\u6d4b\u8868\u73b0\u3002\u4f7f\u7528\u524d\u5e94\u5728\u76ee\u6807 MT4 \u73af\u5883\u5185\u7f16\u8bd1\u3001\u4eba\u5de5\u590d\u6838\u5173\u952e\u6761\u4ef6\uff0c\u5e76\u901a\u8fc7\u6a21\u62df\u548c\u524d\u77bb\u89c2\u5bdf\u68c0\u9a8c\u3002\u5982\u679c\u57fa\u4e8e\u6b64\u6307\u6807\u5f00\u53d1\u5b9e\u76d8\u7b56\u7565\uff0c\u8fd8\u5fc5\u987b\u5355\u72ec\u8bc4\u4f30\u6267\u884c\u6210\u672c\u3001\u98ce\u63a7\u548c\u5f02\u5e38\u884c\u60c5\u3002<\/p>\n<p style=\"border-top:1px solid #dfe8e8;padding-top:18px;margin-top:25px;color:#5b7387;font-size:14px\">\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PATTERNSMART \/ MQL4 \u6280\u672f\u7814\u7a76\u4e0e\u5b9e\u7528\u6280\u5de7 MT4 \u4e0d\u91cd\u7ed8 K \u7ebf\u4fe1\u53f7\uff1aMQL4 \u6536\u76d8\u72b6\u6001\u5ba1\u8ba1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2475,"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":[167,233,217],"tags":[315,487,425],"class_list":["post-2474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mt4","category-233","category-217","tag-k","tag-487","tag-mt4"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/11\/MT4-\u6536\u76d8\u786e\u8ba4\u4fe1\u53f7\u903b\u8f91\u56fe\uff1a\u7b2c0\u6839K\u7ebf\u7684\u52a8\u6001\u9884\u89c8\uff0c\u65b0K\u7ebf\u542f\u52a8\u540e\u7684\u7d22\u5f15\u53d8\u5316\uff0c\u4ee5\u53ca\u7b2c1\u6839\u5df2\u6536\u76d8K\u7ebf\u7684\u786e\u8ba4\u7bad\u5934\uff1b\u4e0b\u65b9\u9644\u6709\u793a\u610f\u8ba1\u7b97.png","_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2474","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=2474"}],"version-history":[{"count":0,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/2475"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}