{"id":2511,"date":"2026-11-22T20:47:41","date_gmt":"2026-11-23T02:47:41","guid":{"rendered":"https:\/\/www.patternsmart.com\/cn\/?p=2511"},"modified":"2026-11-23T02:57:26","modified_gmt":"2026-11-23T02:57:26","slug":"sierra-chart-%e6%95%88%e7%8e%87%e6%af%94%e7%8e%87%e8%bf%9f%e6%bb%9e%e7%8a%b6%e6%80%81%e6%8c%87%e6%a0%87%ef%bc%9aacsil-%e6%94%b6%e7%9b%98%e7%a1%ae%e8%ae%a4%e8%b6%8b%e5%8a%bf%e4%b8%8e%e9%9c%87%e8%8d%a1","status":"publish","type":"post","link":"https:\/\/www.patternsmart.com\/cn\/sierra-chart-%e6%95%88%e7%8e%87%e6%af%94%e7%8e%87%e8%bf%9f%e6%bb%9e%e7%8a%b6%e6%80%81%e6%8c%87%e6%a0%87%ef%bc%9aacsil-%e6%94%b6%e7%9b%98%e7%a1%ae%e8%ae%a4%e8%b6%8b%e5%8a%bf%e4%b8%8e%e9%9c%87%e8%8d%a1\/","title":{"rendered":"Sierra Chart \u6548\u7387\u6bd4\u7387\u8fdf\u6ede\u72b6\u6001\u6307\u6807\uff1aACSIL \u6536\u76d8\u786e\u8ba4\u8d8b\u52bf\u4e0e\u9707\u8361\u5207\u6362"},"content":{"rendered":"<div class=\"postie-post\">\n<div>\n<article style=\"max-width:1030px;margin:auto\">\n<p style=\"margin:11px 0 15px\"><strong style=\"color:#215fd4;font-size:13px\">PATTERNSMART \/ SIERRA CHART ACSIL ENGINEERING NOTE<\/strong><\/p>\n<h1 style=\"color:#142d47;font-size:34px;line-height:1.19;margin:8px 0 15px\">Sierra Chart \u6548\u7387\u6bd4\u7387\u8fdf\u6ede\u72b6\u6001\u6307\u6807\uff1aACSIL \u6536\u76d8\u786e\u8ba4\u8d8b\u52bf\u4e0e\u9707\u8361\u5207\u6362<\/h1>\n<p style=\"margin:11px 0 15px\"><span style=\"display:block;background:#ebf3fb;padding:10px 15px;color:#245174\">\u96be\u5ea6\uff1a\u4ea4\u6613\u6280\u5de7\uff08Trading Tips\uff09\uff5cACSIL C++ \u5b8c\u6574\u81ea\u5b9a\u4e49\u6307\u6807\uff5c\u65e0\u81ea\u52a8\u4ea4\u6613<\/span><\/p>\n<p style=\"margin:11px 0 15px\">\u5f53\u4e00\u6bb5\u884c\u60c5\u7565\u5fae\u63a5\u8fd1\u67d0\u4e2a\u6307\u6807\u9608\u503c\u65f6\uff0c\u4ea4\u6613\u8005\u5f80\u5f80\u628a\u5e02\u573a\u72b6\u6001\u5728\u201c\u8d8b\u52bf\u201d\u548c\u201c\u9707\u8361\u201d\u4e4b\u95f4\u6765\u56de\u5207\u6362\u3002\u82e5\u7a0b\u5e8f\u53ea\u6709\u5355\u4e00\u95e8\u69db\uff0c\u4f8b\u5982 Efficiency Ratio\uff08ER\uff09\u5927\u4e8e 0.50 \u4e3a\u8d8b\u52bf\uff0c\u5c0f\u4e8e 0.50 \u4e3a\u9707\u8361\uff0c\u90a3\u4e48 0.49\u30010.51\u30010.48\u30010.52 \u4e00\u4e32\u8bfb\u6570\u5c31\u53ef\u80fd\u5236\u9020\u591a\u6b21\u65e0\u610f\u4e49\u7684\u72b6\u6001\u53cd\u590d\u3002\u672c\u7bc7\u7ed9\u51fa Sierra Chart \u539f\u751f ACSIL C++ \u6307\u6807\uff0c\u4f7f\u7528\u201c\u53cc\u9608\u503c\u8fdf\u6ede\u201d\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff1a\u8fdb\u5165\u8d8b\u52bf\u9700\u8981\u66f4\u9ad8\u7684 ER\uff0c\u800c\u9000\u51fa\u8d8b\u52bf\u53ea\u9700\u8dcc\u7834\u66f4\u4f4e\u7684 ER\u3002\u4e0e\u6b64\u540c\u65f6\uff0c\u53ea\u5728\u5b8c\u6574 K \u7ebf\u6536\u76d8\u540e\u66f4\u65b0\u72b6\u6001\uff0c\u907f\u514d\u672a\u5b8c\u6210 K \u7ebf\u53cd\u590d\u53d8\u5316\u9020\u6210\u7684\u4e34\u65f6\u5207\u6362\u3002<\/p>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u4ece\u6548\u7387\u6bd4\u7387\u7406\u89e3\u201c\u65b9\u5411\u6027\u201d\u4e0e\u201c\u8def\u5f84\u566a\u58f0\u201d<\/h2>\n<p style=\"margin:11px 0 15px\">\u6548\u7387\u6bd4\u7387\u4e0d\u7b49\u4e8e\u4e0a\u6da8\u6982\u7387\uff0c\u4e5f\u4e0d\u4f1a\u9884\u6d4b\u4e0b\u4e00\u6839 K \u7ebf\u3002\u5b83\u5728 N \u6839 K \u7ebf\u5185\u8861\u91cf<strong>\u51c0\u4f4d\u79fb\u5728\u7d2f\u8ba1\u8def\u5f84\u4e2d\u7684\u5360\u6bd4<\/strong>\u3002\u516c\u5f0f\u4e3a\uff1a<strong>ER = |Close[t] \u2212 Close[t\u2212N]| \/ \u03a3<sub>k=t\u2212N+1\u2026t<\/sub>|Close[k] \u2212 Close[k\u22121]|<\/strong>\u3002\u5206\u5b50\u662f\u8d77\u70b9\u5230\u7ec8\u70b9\u7684\u76f4\u7ebf\u8ddd\u79bb\uff0c\u5206\u6bcd\u662f\u6bcf\u4e00\u6b65\u4ef7\u683c\u53d8\u52a8\u7684\u7edd\u5bf9\u503c\u4e4b\u548c\u3002\u82e5\u4ef7\u683c\u4e00\u8def\u671d\u540c\u4e00\u65b9\u5411\u79fb\u52a8\uff0c\u51c0\u4f4d\u79fb\u63a5\u8fd1\u8def\u5f84\u603b\u957f\uff0cER \u63a5\u8fd1 1\uff1b\u5982\u679c\u4ef7\u683c\u5de6\u53f3\u6765\u56de\u5374\u51e0\u4e4e\u56de\u5230\u539f\u5904\uff0c\u51c0\u4f4d\u79fb\u8f83\u5c0f\uff0cER \u63a5\u8fd1 0\u3002<\/p>\n<p style=\"margin:11px 0 15px\">\u8003\u8651\u4e00\u4e2a\u5b8c\u5168\u5047\u8bbe\u7684 N=10 \u4ef7\u683c\u5e8f\u5217\uff1a\u8d77\u70b9\u4e3a 100\uff0c\u5341\u6b21\u6536\u76d8\u53d8\u52a8\u4f9d\u6b21\u662f +1\u3001\u22120.5\u3001+0.5\u3001+1\u3001\u22120.5\u3001+1\u3001+0.5\u3001\u22120.5\u3001+0.5\u3001+1\u3002\u6700\u7ec8\u6536\u76d8\u4e3a 104\uff0c\u51c0\u53d8\u5316\u7edd\u5bf9\u503c\u4e3a 4\uff1b\u7edd\u5bf9\u53d8\u52a8\u4e4b\u548c\u4e3a 7\u3002\u56e0\u6b64 ER=4\/7\u2248<strong>0.571<\/strong>\u3002\u5982\u679c\u8fdb\u5165\u8d8b\u52bf\u9608\u503c\u4e3a 0.55\uff0c\u800c\u6b64\u524d\u72b6\u6001\u4e3a\u9707\u8361\uff0c\u5219\u6536\u76d8\u786e\u8ba4\u540e\u72b6\u6001\u8f6c\u6362\u4e3a\u8d8b\u52bf\u3002\u8fd9\u4e2a\u7b97\u4f8b\u4ec5\u7528\u6765\u590d\u7b97\u516c\u5f0f\uff0c\u4e0d\u662f\u4efb\u4f55\u771f\u5b9e\u4ea4\u6613\u54c1\u79cd\u7684\u5386\u53f2\u8868\u73b0\u3002<\/p>\n<figure style=\"margin:22px 0\"><img decoding=\"async\" style=\"width:100%;height:auto;border:1px solid #dbe6ef\" src=\"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/11\/Sierra-Chart-ACSIL-\u6548\u7387\u6bd4\u7387-ER-\u7684\u8fdb\u5165\u3001\u9000\u51fa\u53cc\u9608\u503c\u4e0e\u6536\u76d8\u786e\u8ba4\u72b6\u6001\u8f6c\u6362\u793a\u610f\u56fe.png\" alt=\"Sierra Chart ACSIL \u6548\u7387\u6bd4\u7387 ER \u7684\u8fdb\u5165\u3001\u9000\u51fa\u53cc\u9608\u503c\u4e0e\u6536\u76d8\u786e\u8ba4\u72b6\u6001\u8f6c\u6362\u793a\u610f\u56fe\"><figcaption style=\"font-size:13px;color:#58718a\">\u56fe 1. \u5047\u8bbe\u7684 ER \u65f6\u95f4\u5e8f\u5217\uff1a\u9ad8\u4e8e 0.55 \u624d\u8fdb\u5165\u8d8b\u52bf\uff0c\u5904\u4e8e\u8d8b\u52bf\u65f6\u53ea\u6709\u8dcc\u81f3 0.35 \u6216\u4ee5\u4e0b\u624d\u9000\u51fa\uff1b\u4e2d\u95f4\u533a\u95f4\u4fdd\u7559\u539f\u72b6\u6001\u3002<\/figcaption><\/figure>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u72b6\u6001\u673a\uff1a\u4e3a\u4ec0\u4e48\u8fdf\u6ede\u4e0d\u662f\u7b80\u5355\u7684\u5e73\u6ed1\u5e73\u5747\uff1f<\/h2>\n<p style=\"margin:11px 0 15px\">\u8fdf\u6ede\u4f7f\u7528\u4e24\u4e2a\u4e0d\u540c\u7684\u89e6\u53d1\u70b9\uff0c\u5e76\u660e\u786e\u8bb0\u4f4f\u4e0a\u4e00\u6b21\u72b6\u6001\u3002\u9ed8\u8ba4 <strong>EnterTrend=0.55<\/strong>\u3001<strong>ExitTrend=0.35<\/strong>\uff1a\u5f53\u5f53\u524d\u72b6\u6001\u4e3a 0\uff08\u9707\u8361\uff09\u4e14\u5df2\u6536\u76d8 ER \u22650.55 \u65f6\u624d\u5207\u6362\u4e3a 1\uff08\u8d8b\u52bf\uff09\uff1b\u5f53\u5f53\u524d\u72b6\u6001\u4e3a 1\uff08\u8d8b\u52bf\uff09\u4e14\u5df2\u6536\u76d8 ER \u22640.35 \u65f6\u624d\u9000\u56de 0\u3002\u843d\u5728 0.35 \u548c 0.55 \u4e4b\u95f4\u7684 ER\uff0c\u4e0d\u4f1a\u5355\u72ec\u6539\u53d8\u72b6\u6001\u3002\u5b83\u4e0d\u53ea\u662f\u5bf9 ER \u518d\u53d6\u79fb\u52a8\u5e73\u5747\uff0c\u800c\u662f\u5e26\u6709\u8bb0\u5fc6\u548c\u975e\u5bf9\u79f0\u95e8\u69db\u7684\u72b6\u6001\u8f6c\u6362\u3002<\/p>\n<table style=\"border-collapse:collapse;width:100%;font-size:14px;margin:15px 0\">\n<thead>\n<tr>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u5df2\u6536\u76d8 ER<\/th>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u4e4b\u524d\u7684\u72b6\u6001<\/th>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u672c\u6839\u4e4b\u540e\u7684\u72b6\u6001<\/th>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u539f\u56e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.20<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u5c1a\u672a\u8fbe\u5230 0.55 \u8fdb\u5165\u95e8\u69db<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.38<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u5904\u5728\u4e24\u9608\u503c\u4e4b\u95f4\uff0c\u4fdd\u6301\u539f\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.57<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u8d8b\u52bf\uff081\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9996\u6b21\u6ee1\u8db3 ER \u22650.55<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.49 \/ 0.42<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u8d8b\u52bf\uff081\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u8d8b\u52bf\uff081\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u867d\u4f4e\u4e8e\u8fdb\u5165\u95e8\u69db\uff0c\u4f46\u5c1a\u672a\u8dcc\u7834\u9000\u51fa\u95e8\u69db<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.34<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u8d8b\u52bf\uff081\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u6ee1\u8db3 ER \u22640.35<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.46 \/ 0.60<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u9707\u8361\uff080\uff09<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u5148\u9707\u8361\uff0c\u518d\u8d8b\u52bf<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u5fc5\u987b\u518d\u6b21\u8fbe\u5230 0.55 \u624d\u91cd\u542f\u8d8b\u52bf\u72b6\u6001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u8f93\u5165\u53c2\u6570\u548c\u8f93\u51fa\u5951\u7ea6<\/h2>\n<table style=\"border-collapse:collapse;width:100%;font-size:14px;margin:15px 0\">\n<thead>\n<tr>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u8bbe\u7f6e<\/th>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u9ed8\u8ba4\u503c<\/th>\n<th style=\"background:#e7f2fd;color:#173f67;border:1px solid #d8e4ee;text-align:left;padding:9px\">\u4f5c\u7528\u4e0e\u8fb9\u754c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">ER Lookback Bars<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">10<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u4ee5 10 \u6839\u5df2\u5b8c\u6210 K \u7ebf\u8ba1\u7b97\u51c0\u4f4d\u79fb\u548c\u9010\u6839\u7edd\u5bf9\u8def\u5f84\uff1b\u53ef\u5728 2\u2013200 \u4e4b\u95f4\u8c03\u6574<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">Enter Trend when ER &gt;=<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.55<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u4ece\u9707\u8361\u8fdb\u5165\u8d8b\u52bf\u7684\u8f83\u9ad8\u95e8\u69db<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">Exit Trend when ER &lt;=<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.35<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u4ece\u8d8b\u52bf\u9000\u51fa\u5230\u9707\u8361\u7684\u8f83\u4f4e\u95e8\u69db<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">Efficiency Ratio<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0\u20131<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u7ed8\u5236\u8ba1\u7b97\u540e\u7684 ER \u66f2\u7ebf\uff1b\u65e0\u8def\u5f84\u957f\u5ea6\u65f6\u8bb0\u4e3a 0<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">Trend State 0\/1<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0 \u6216 1<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u6536\u76d8\u786e\u8ba4\u7684\u72b6\u6001\u8f93\u51fa\uff1b\u672a\u6536\u76d8\u7684\u6700\u540e K \u7ebf\u7ee7\u627f\u4e0a\u6839\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">Entry\/Exit threshold<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">0.55 \/ 0.35<\/td>\n<td style=\"border:1px solid #d8e4ee;padding:9px;vertical-align:top\">\u663e\u793a\u95e8\u69db\u53c2\u8003\u7ebf\uff1b\u5982\u679c\u7528\u6237\u5c06\u95e8\u69db\u8bbe\u7f6e\u6210\u53cd\u5e8f\u6216\u8d85\u51fa\u6709\u6548\u8303\u56f4\uff0c\u7a0b\u5e8f\u8fd4\u56de\u4e2d\u6027\u72b6\u6001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin:11px 0 15px\">\u628a\u8fdb\u5165\u95e8\u69db\u63d0\u9ad8\u5230 0.65 \u53ef\u4ee5\u51cf\u5c11\u8fdb\u5165\u8d8b\u52bf\u7684\u9891\u7387\uff0c\u4f46\u4f1a\u66f4\u6162\u786e\u8ba4\uff1b\u628a\u9000\u51fa\u95e8\u69db\u63d0\u9ad8\u5230 0.45\uff0c\u8d8b\u52bf\u72b6\u6001\u53ef\u80fd\u8f83\u65e9\u7ed3\u675f\uff1b\u628a\u4e24\u95e8\u69db\u62c9\u5f97\u66f4\u8fdc\uff0c\u53ef\u4ee5\u52a0\u5f3a\u72b6\u6001\u7a33\u5b9a\u6027\uff0c\u5374\u4f1a\u8ba9\u8d8b\u52bf\u9000\u51fa\u6ede\u540e\u3002\u53c2\u6570\u4e0d\u80fd\u53ea\u51ed\u56fe\u5f62\u201c\u770b\u8d77\u6765\u66f4\u597d\u201d\u800c\u786e\u5b9a\uff0c\u5e94\u8bb0\u5f55\u72b6\u6001\u5207\u6362\u6b21\u6570\u3001\u4e0d\u540c\u6ce2\u52a8\u5e02\u573a\u7684\u8bef\u5224\u4ee5\u53ca\u6f5c\u5728\u7b56\u7565\u4e2d\u72b6\u6001\u4e0e\u5b9e\u9645\u4ea4\u6613\u4fe1\u53f7\u7684\u65f6\u95f4\u5bf9\u5e94\u5173\u7cfb\u3002<\/p>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u5b8c\u6574 ACSIL C++ \u6e90\u7801<\/h2>\n<p style=\"margin:11px 0 15px\">\u4ee5\u4e0b\u662f\u5355\u6587\u4ef6\u7684 Sierra Chart \u81ea\u5b9a\u4e49 Study\uff0c\u91c7\u7528 <code>#include \"sierrachart.h\"<\/code>\u3001<code>SCDLLName<\/code>\u3001<code>SCSFExport<\/code>\u3001<code>SCStudyInterfaceRef<\/code> \u548c\u56db\u7ec4 Subgraph\u3002\u542f\u7528\u81ea\u52a8\u5faa\u73af <code>sc.AutoLoop=1<\/code>\uff0c\u901a\u8fc7 <code>sc.GetBarHasClosedStatus()<\/code> \u8df3\u8fc7\u5c1a\u672a\u5b8c\u6210 K \u7ebf\u4e0a\u7684\u72b6\u6001\u5224\u5b9a\u3002\u6e90\u7801\u4e0d\u5305\u542b\u8ba2\u5355 API\uff0c\u6ca1\u6709\u4efb\u4f55\u81ea\u52a8\u4e0b\u5355\u6216\u4ed3\u4f4d\u7ba1\u7406\u529f\u80fd\u3002\u4ee3\u7801\u5c1a\u672a\u5728 Sierra Chart \u4e2d\u5b9e\u9645\u8fdc\u7a0b\u7f16\u8bd1\uff0c\u4f7f\u7528\u524d\u9700\u5728\u76ee\u6807\u8f6f\u4ef6\u7248\u672c\u4e2d\u6784\u5efa\u548c\u68c0\u67e5\u3002<\/p>\n<pre style=\"white-space:pre;font-family:Consolas,Monaco,monospace;background:#f2f6fa;border:1px solid #d9e5ee;border-radius:7px;padding:17px;font-size:13px;line-height:1.5\"><code>\/\/ Sierra Chart ACSIL: closed-bar efficiency-ratio hysteresis<br>\/\/ Standalone study. No orders, fills, or external study IDs.<br>#include \"sierrachart.h\"<br>#include &lt;cmath&gt;<br><br>SCDLLName(\"PatternSmart Efficiency Ratio Regime\")<br><br>SCSFExport scsf_PS_EfficiencyRatioHysteresis(SCStudyInterfaceRef sc)<br>{<br>\u00a0\u00a0\u00a0\u00a0SCSubgraphRef Efficiency = sc.Subgraph[0];<br>\u00a0\u00a0\u00a0\u00a0SCSubgraphRef TrendState = sc.Subgraph[1];<br>\u00a0\u00a0\u00a0\u00a0SCSubgraphRef EnterLevel = sc.Subgraph[2];<br>\u00a0\u00a0\u00a0\u00a0SCSubgraphRef ExitLevel = sc.Subgraph[3];<br>\u00a0\u00a0\u00a0\u00a0SCInputRef Lookback = sc.Input[0];<br>\u00a0\u00a0\u00a0\u00a0SCInputRef EnterTrend = sc.Input[1];<br>\u00a0\u00a0\u00a0\u00a0SCInputRef ExitTrend = sc.Input[2];<br><br>\u00a0\u00a0\u00a0\u00a0if (sc.SetDefaults)<br>\u00a0\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sc.GraphName = \"PS Closed-Bar ER Hysteresis\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sc.StudyDescription = \"Confirmed-bar efficiency ratio and stable regime\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sc.AutoLoop = 1;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sc.GraphRegion = 1;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sc.ValueFormat = 3;<br><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency.Name = \"Efficiency Ratio\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency.DrawStyle = DRAWSTYLE_LINE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency.PrimaryColor = RGB(34, 89, 207);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency.LineWidth = 2;<br><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState.Name = \"Trend State 0\/1\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState.DrawStyle = DRAWSTYLE_LINE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState.PrimaryColor = RGB(18, 135, 83);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState.LineWidth = 2;<br><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EnterLevel.Name = \"Trend Entry Threshold\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EnterLevel.DrawStyle = DRAWSTYLE_LINE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EnterLevel.PrimaryColor = RGB(105, 70, 176);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ExitLevel.Name = \"Trend Exit Threshold\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ExitLevel.DrawStyle = DRAWSTYLE_LINE;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ExitLevel.PrimaryColor = RGB(190, 64, 67);<br><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Lookback.Name = \"ER Lookback Bars\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Lookback.SetInt(10);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Lookback.SetIntLimits(2, 200);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EnterTrend.Name = \"Enter Trend when ER &gt;=\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EnterTrend.SetFloat(0.55f);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ExitTrend.Name = \"Exit Trend when ER &lt;=\";<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ExitTrend.SetFloat(0.35f);<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return;<br>\u00a0\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0\u00a0const int i = sc.Index;<br>\u00a0\u00a0\u00a0\u00a0const int length = Lookback.GetInt();<br>\u00a0\u00a0\u00a0\u00a0const float enter = EnterTrend.GetFloat();<br>\u00a0\u00a0\u00a0\u00a0const float leave = ExitTrend.GetFloat();<br>\u00a0\u00a0\u00a0\u00a0EnterLevel[i] = enter;<br>\u00a0\u00a0\u00a0\u00a0ExitLevel[i] = leave;<br><br>\u00a0\u00a0\u00a0\u00a0\/\/ Require ordered thresholds and a valid ER calculation window.<br>\u00a0\u00a0\u00a0\u00a0if (i &lt; length || enter &lt;= leave || leave &lt; 0.0f || enter &gt; 1.0f)<br>\u00a0\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency[i] = 0.0f;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState[i] = 0.0f;<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return;<br>\u00a0\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0\u00a0\/\/ Last bar can still be forming: hold previous confirmed values.<br>\u00a0\u00a0\u00a0\u00a0\/\/ On the next bar, Sierra Chart processes the newly closed bar.<br>\u00a0\u00a0\u00a0\u00a0if (sc.GetBarHasClosedStatus(i) == BHCS_BAR_HAS_NOT_CLOSED)<br>\u00a0\u00a0\u00a0\u00a0{<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Efficiency[i] = Efficiency[i - 1];<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TrendState[i] = TrendState[i - 1];<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return;<br>\u00a0\u00a0\u00a0\u00a0}<br><br>\u00a0\u00a0\u00a0\u00a0\/\/ ER = absolute net price change \/ sum of stepwise changes.<br>\u00a0\u00a0\u00a0\u00a0const float netChange = fabsf(sc.Close[i] - sc.Close[i - length]);<br>\u00a0\u00a0\u00a0\u00a0float pathLength = 0.0f;<br>\u00a0\u00a0\u00a0\u00a0for (int k = i - length + 1; k &lt;= i; ++k)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0pathLength += fabsf(sc.Close[k] - sc.Close[k - 1]);<br><br>\u00a0\u00a0\u00a0\u00a0float er = pathLength &gt; 0.0f ? netChange \/ pathLength : 0.0f;<br>\u00a0\u00a0\u00a0\u00a0if (er &gt; 1.0f)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0er = 1.0f; \/\/ Floating point rounding guard.<br>\u00a0\u00a0\u00a0\u00a0Efficiency[i] = er;<br><br>\u00a0\u00a0\u00a0\u00a0\/\/ Hysteresis prevents one-threshold flip-flopping.<br>\u00a0\u00a0\u00a0\u00a0const bool wasTrend = TrendState[i - 1] &gt;= 0.5f;<br>\u00a0\u00a0\u00a0\u00a0bool isTrend = wasTrend;<br>\u00a0\u00a0\u00a0\u00a0if (!wasTrend &amp;&amp; er &gt;= enter)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0isTrend = true;<br>\u00a0\u00a0\u00a0\u00a0else if (wasTrend &amp;&amp; er &lt;= leave)<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0isTrend = false;<br><br>\u00a0\u00a0\u00a0\u00a0TrendState[i] = isTrend ? 1.0f : 0.0f;<br>}<br><\/code><\/pre>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u5173\u952e\u4ee3\u7801\u5206\u652f\uff1a\u5386\u53f2\u8ba1\u7b97\u3001\u672a\u5b8c\u6210 K \u7ebf\u4e0e\u65e0\u6548\u8bbe\u7f6e<\/h2>\n<h3 style=\"color:#1765ac;font-size:19px;margin-top:20px\">\u5df2\u5b8c\u6210 K \u7ebf\u4e0e\u6700\u540e\u4e00\u6839\u5b9e\u65f6 K \u7ebf<\/h3>\n<p style=\"margin:11px 0 15px\">\u6307\u6807\u4f7f\u7528 <code>sc.Index<\/code> \u8bfb\u53d6\u5f53\u524d\u81ea\u52a8\u5faa\u73af\u7d22\u5f15\u3002\u5bf9\u4e8e\u5386\u53f2\u5b8c\u6574 K \u7ebf\uff0c\u9010\u6839\u590d\u7b97 ER \u5e76\u4f9d\u636e\u4e0a\u4e00\u6839\u7684 TrendState \u51b3\u5b9a\u672c\u6839\u72b6\u6001\u3002\u5bf9\u4e8e <code>BHCS_BAR_HAS_NOT_CLOSED<\/code>\uff0c\u5219\u6cbf\u7528\u524d\u4e00\u6839\u5df2\u786e\u8ba4\u7684 ER \u548c TrendState\uff0c\u4e0d\u4ece\u4ecd\u5728\u53d8\u5316\u7684\u9ad8\u4f4e\u6536\u76d8\u4e2d\u751f\u6210\u65b0\u7684\u72b6\u6001\u3002\u4e0b\u4e00\u6839 K \u7ebf\u5f62\u6210\u540e\uff0c\u521a\u5b8c\u6210\u7684\u4e0a\u4e00\u6839\u624d\u4f1a\u5728\u6b63\u5e38\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u5f97\u5230\u6700\u7ec8\u5904\u7406\u3002\u56fe\u5f62\u6700\u53f3\u7aef\u7684\u201c\u4fdd\u6301\u201d\u4e0d\u4ee3\u8868\u63d0\u524d\u5224\u65ad\u3002<\/p>\n<h3 style=\"color:#1765ac;font-size:19px;margin-top:20px\">\u96f6\u8def\u5f84\u3001\u6570\u636e\u9884\u70ed\u4e0e\u53c2\u6570\u8bef\u8bbe<\/h3>\n<p style=\"margin:11px 0 15px\">\u82e5\u56de\u6eaf\u7a97\u53e3\u4e0d\u591f\u3001\u9000\u51fa\u95e8\u69db\u4e0d\u4f4e\u4e8e\u8fdb\u5165\u95e8\u69db\u3001\u95e8\u69db\u843d\u5728 0\u20131 \u6709\u6548\u8303\u56f4\u4e4b\u5916\uff0c\u5219\u7a0b\u5e8f\u8fd4\u56de\u4e2d\u6027\u7ed3\u679c\u3002\u5bf9\u5b8c\u5168\u4e0d\u52a8\u7684\u4ef7\u683c\u5e8f\u5217\uff0c\u8def\u5f84\u5206\u6bcd\u4e3a\u96f6\u65f6\u8bbe\u7f6e ER=0\uff0c\u907f\u514d NaN \u6216\u9664\u96f6\u5f02\u5e38\u3002\u6570\u503c\u8ba1\u7b97\u8fd8\u8bbe\u7f6e\u6d6e\u70b9\u4fdd\u62a4\uff0c\u628a\u5fae\u5c0f\u820d\u5165\u8bef\u5dee\u9020\u6210\u7684 ER \u5927\u4e8e 1 \u622a\u65ad\u4e3a 1\u3002\u4e0a\u8ff0\u4fdd\u62a4\u4fdd\u8bc1\u8f93\u5165\u5177\u6709\u660e\u786e\u542b\u4e49\uff0c\u5e76\u4e0d\u610f\u5473\u7740\u6bcf\u79cd\u6570\u636e\u5f02\u5e38\u90fd\u53ef\u4ee5\u81ea\u52a8\u6062\u590d\u3002<\/p>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u5b89\u88c5\u3001\u7f16\u8bd1\u548c\u9a8c\u8bc1\u6b65\u9aa4<\/h2>\n<ol>\n<li>\u5728 Sierra Chart \u7684 Analysis \u2192 Studies \u4e2d\u51c6\u5907\u81ea\u5b9a\u4e49 Study \u6784\u5efa\u73af\u5883\uff0c\u628a C++ \u4ee3\u7801\u53e6\u5b58\u4e3a\u6e90\u6587\u4ef6\uff0c\u4f8b\u5982 <code>PS_ERHysteresis.cpp<\/code>\u3002<\/li>\n<li>\u4f7f\u7528 Build Custom Studies DLL \u6216\u5e73\u53f0\u652f\u6301\u7684\u8fdc\u7a0b\u7f16\u8bd1\u6d41\u7a0b\u6784\u5efa\u3002\u82e5\u7f16\u8bd1\u5668\u62a5\u544a\u5934\u6587\u4ef6\u6216\u63a5\u53e3\u7248\u672c\u95ee\u9898\uff0c\u5148\u4f9d\u636e\u5b9e\u9645\u7248\u672c\u5904\u7406\u3002<\/li>\n<li>\u5c06 <code>PS Closed-Bar ER Hysteresis<\/code> \u6dfb\u52a0\u5230\u4ef7\u683c\u56fe\u8868\u7684\u5355\u72ec\u533a\u57df\uff0c\u786e\u8ba4 ER\u3001Trend State \u548c\u4e24\u4e2a\u95e8\u69db\u66f2\u7ebf\u5747\u53ef\u89c1\u3002<\/li>\n<li>\u5c06\u56de\u6eaf\u8bbe\u4e3a 10\uff0c\u95e8\u69db\u8bbe\u4e3a 0.55\/0.35\uff0c\u9010\u6839\u6784\u9020\u6216\u5bfb\u627e\u5df2\u77e5 ER \u5e8f\u5217\uff0c\u4e0e\u56fe\u793a\u72b6\u6001\u8868\u6bd4\u5bf9\u3002<\/li>\n<li>\u624b\u52a8\u9a8c\u8bc1 100 \u81f3 104\u3001\u603b\u8def\u5f84\u4e3a 7 \u7684\u7b97\u4f8b\uff0c\u5f97\u5230 ER\u22480.571\uff0c\u5e76\u6838\u5b9e\u72b6\u6001\u7531 0 \u8f6c\u4e3a 1\u3002<\/li>\n<li>\u4f7f\u7528\u5b9e\u65f6\u884c\u60c5\u6216 Replay \u89c2\u5bdf\u672a\u5b8c\u6210 K \u7ebf\uff0c\u786e\u8ba4\u5b83\u4e0d\u4f1a\u89e6\u53d1\u65b0\u7684\u8d8b\u52bf\/\u9707\u8361\u5207\u6362\u3002<\/li>\n<li>\u4f9d\u6b21\u6d4b\u8bd5\u96f6\u53d8\u5316\u3001\u7f3a\u5c11\u8db3\u591f\u5386\u53f2\u6570\u636e\u3001\u95e8\u69db\u53cd\u5e8f\u3001\u54c1\u79cd\u8f6c\u6362\u548c\u6570\u636e\u91cd\u65b0\u52a0\u8f7d\u540e\u7684\u91cd\u8ba1\u7b97\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<h2 style=\"color:#183f70;font-size:24px;border-bottom:1px solid #dce6ef;margin-top:32px;padding-bottom:6px\">\u98ce\u9669\u4e0e\u5c40\u9650<\/h2>\n<p style=\"margin:11px 0 15px\">ER \u53ea\u63cf\u8ff0\u6700\u8fd1 N \u6839\u6536\u76d8\u4ef7\u8def\u5f84\u7684\u76f8\u5bf9\u6548\u7387\uff0c\u4e0d\u80fd\u8bc6\u522b\u6210\u4ea4\u91cf\u3001\u8ba2\u5355\u6d41\u5931\u8861\u3001\u771f\u5b9e\u6d41\u52a8\u6027\u6216\u4e0b\u4e00\u6839\u884c\u60c5\u65b9\u5411\uff1b\u6709\u8d8b\u52bf\u65f6\u4e5f\u53ef\u80fd\u8fc5\u901f\u53cd\u8f6c\u3002\u8fdf\u6ede\u80fd\u51cf\u5c11\u9608\u503c\u9644\u8fd1\u7684\u72b6\u6001\u6296\u52a8\uff0c\u5374\u53ef\u80fd\u5ef6\u540e\u786e\u8ba4\u8d8b\u52bf\u7ed3\u675f\u3002\u56de\u6d4b\u65f6\u5fc5\u987b\u533a\u5206\u5386\u53f2\u5b8c\u6574 K \u7ebf\u72b6\u6001\u4e0e\u6b63\u5728\u5f62\u6210\u7684\u6700\u65b0 K \u7ebf\uff0c\u4e0d\u80fd\u5c06\u5c1a\u672a\u6536\u76d8\u7684\u4fe1\u53f7\u5f53\u4f5c\u5df2\u77e5\u7ed3\u679c\u3002\u5bf9 Overnight \u65f6\u6bb5\u3001\u9ad8\u6ce2\u52a8\u53ca\u6570\u636e\u65ad\u6863\u60c5\u51b5\u8fd8\u9700\u8981\u72ec\u7acb\u68c0\u67e5\u3002<\/p>\n<p style=\"margin:11px 0 15px\">\u5982\u679c\u4f60\u5bf9\u8fd9\u4e2a\u514d\u8d39 ACSIL \u6307\u6807\u6216\u4ea4\u6613\u601d\u8def\u611f\u5174\u8da3\uff0c\u5e0c\u671b\u9488\u5bf9\u81ea\u5df1\u7684\u53c2\u6570\u3001\u7b56\u7565\u72b6\u6001\u6216\u63d0\u9192\u9700\u6c42\u8fdb\u884c\u5b9a\u5236\u3001\u6269\u5c55\u6216\u4fee\u6539\uff0c\u6b22\u8fce\u901a\u8fc7 <a href=\"https:\/\/www.patternsmart.com\/cn\/custom\/\">\u4ea4\u6613\u8f6f\u4ef6\u5b9a\u5236\u5f00\u53d1\u670d\u52a1<\/a> \u8054\u7cfb\u6211\u4eec\u8ba8\u8bba\u3002<\/p>\n<p style=\"margin:11px 0 15px\"><strong>\u4ea4\u6613\u98ce\u9669\u63d0\u793a\uff1a<\/strong>\u6240\u6709\u6570\u503c\u548c\u56fe\u793a\u5747\u4e3a\u5047\u8bbe\u6559\u5b66\u6848\u4f8b\uff0c\u672a\u63d0\u4f9b\u6216\u6697\u793a\u4efb\u4f55\u80dc\u7387\u3001\u6536\u76ca\u6216\u56de\u6d4b\u7ed3\u679c\u3002\u6b64 Study \u4e0d\u6267\u884c\u4ea4\u6613\uff0c\u4e0d\u63a7\u5236\u4ed3\u4f4d\u6216\u6b62\u635f\u3002\u4e0a\u7ebf\u524d\u8bf7\u5148\u7f16\u8bd1\u3001\u72ec\u7acb\u9a8c\u8bc1\u548c\u6a21\u62df\u6d4b\u8bd5\u3002<\/p>\n<p style=\"border-top:1px solid #dfe8ef;padding-top:18px;color:#54718a;font-size:14px\">\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PATTERNSMART \/ SIERRA CHART ACSIL ENGINEERING NOTE Sier [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2512,"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":[207,233,217],"tags":[487,457,466,503],"class_list":["post-2511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sierra-chart","category-233","category-217","tag-487","tag-sierra-chart","tag-466","tag-503"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.patternsmart.com\/cn\/wp-content\/uploads\/2026\/11\/Sierra-Chart-ACSIL-\u6548\u7387\u6bd4\u7387-ER-\u7684\u8fdb\u5165\u3001\u9000\u51fa\u53cc\u9608\u503c\u4e0e\u6536\u76d8\u786e\u8ba4\u72b6\u6001\u8f6c\u6362\u793a\u610f\u56fe.png","_links":{"self":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2511","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=2511"}],"version-history":[{"count":0,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/posts\/2511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media\/2512"}],"wp:attachment":[{"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/media?parent=2511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/categories?post=2511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patternsmart.com\/cn\/wp-json\/wp\/v2\/tags?post=2511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}