{"id":270,"date":"2021-01-24T00:51:54","date_gmt":"2021-01-23T16:51:54","guid":{"rendered":"https:\/\/www.quant.bsiot.cn\/?p=270"},"modified":"2021-02-19T00:00:32","modified_gmt":"2021-02-18T16:00:32","slug":"%e7%bc%a0%e8%ae%ba%e7%94%bb%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/www.quant.bsiot.cn\/?p=270","title":{"rendered":"\u7f20\u8bba\u753b\u7ebf"},"content":{"rendered":"<div>\u7b56\u7565\u539f\u7406\uff1a<\/div>\n<div><\/div>\n<div>\u521bM\u5468\u671f\u65b0\u9ad8\uff0c\u5e76\u4e14M\u5747\u7ebf\u9ad8\u4e8e10\u5747\u7ebf\uff0c\u786e\u5b9a\u5b9a\u4f4d\u70b9\uff1b<\/div>\n<div>\u521bM\u5468\u671f\u65b0\u4f4e\uff0c\u5e76\u4e14M\u5747\u7ebf\u4f4e\u4e8e10\u5747\u7ebf\uff0c\u786e\u5b9a\u5b9a\u4f4d\u70b9\uff1b<\/div>\n<div>\u5b9a\u4f4d\u70b9\u4e4b\u95f4\u53d6\u9ad8\u70b9\u548c\u4f4e\u70b9\u8fdb\u884c\u8fde\u7ebf<\/div>\n<div><\/div>\n<div><\/div>\n<div>\u6e90\u7801\uff1a<\/div>\n<div><\/div>\n<div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">M:=5;\/\/M\u503c\u9700\u8981\u5927\u4e8e\u7b49\u4e8e5\r\nG:=MA(C,5);\r\nD:=MA(C,10);\r\nNNH:=BARSLAST(H=HHV(H,M)) ,NODRAW;\r\nNNL:=BARSLAST(L=LLV(L,M)) ,NODRAW;\r\nNN:=IF(REF(G,NNH)&gt;REF(D,NNH) AND NNH&lt;=M-3,NNH,IF(REF(G,NNL)&lt;REF(D,NNL) AND NNL&lt;=M-3,NNL,M-2)) ,NODRAW;\r\nNNN:=IF(ISLASTBAR AND NN&gt;0,NN,M-2) ,NODRAW;\r\nH1:=REF(H,NNN)=HHV(H,M-1);\r\nL1:=REF(L,NNN)=LLV(L,M-1);\r\nFG01:=BACKSET(H1,NNN+1)&gt;BACKSET(H1,NNN),NODRAW;\/\/\u53ea\u8bbe\u7f6e\u524d\u9762\u7b2cM-1\u4e2a\r\nFD01:=BACKSET(L1,NNN+1)&gt;BACKSET(L1,NNN) ,NODRAW;\r\nFG02:=FG01=FD01 AND G&gt;D,NODRAW;\r\nFD02:=FG01=FD01 AND G&lt;D,NODRAW;\r\nTTTT:=BARSLAST(FD01),NODRAW;\r\nFG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,M))&gt;=M-2,M-2,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;\r\nFD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,M))&gt;=M-2,M-2,BARSLAST(FG01))))\u00a0 AND FG02=0 ,NODRAW;\r\n\/\/\u9ad8\u4f4e\u70b9\u95f4\u5468\u671f\r\nGT:=BARSLAST(FG0),NODRAW;\r\nDT:=BARSLAST(FD0),NODRAW;\r\n\/\/\u7b2c\u4e00\u6b21\u5904\u7406\u9ad8\u4f4e\u70b9\u95f4\u591a\u4f59\u7684\u70b9\r\nLLLL:=DT=0 AND REF(DT,1)&lt;GT AND L&gt;REF(L,REF(DT,1)+1),NODRAW;\r\nFG1:=BACKSET(REFX(GT,1)=0 AND GT&lt;DT AND REFX(H,1)&gt;=REF(H,GT),GT+1),NODRAW;\r\nFD1:=BACKSET(REFX(DT,1)=0 AND DT&lt;GT AND REFX(L,1)&lt;=REF(L,DT),DT+1),NODRAW;\r\nFG11:=IF(GT=0 AND REF(GT,1)&lt;DT AND IF(REF(G,BARSLAST(L=LLV(L,M)))&gt;REF(D,BARSLAST(L=LLV(L,M))),BARSLAST(L=LLV(L,M))&lt;M-2,1) AND\u00a0 H&lt;REF(H,REF(GT,1)+1),1,0),NODRAW;\r\nFD11:=IF(DT=0 AND REF(DT,1)&lt;GT AND IF(REF(G,BARSLAST(H=HHV(H,M)))&lt;REF(D,BARSLAST(H=HHV(H,M))),BARSLAST(H=HHV(H,M))&lt;M-2,1) AND L&gt;REF(L,REF(DT,1)+1),1,0),NODRAW;\r\n\/\/\u518d\u6b21\u5468\u671f\r\nGT1:=BARSLAST(FG11&lt;&gt;1 AND FG1&lt;&gt;1 AND FG0),NODRAW;\r\nDT1:=BARSLAST(FD11&lt;&gt;1 AND FD1&lt;&gt;1 AND FD0),NODRAW;\r\nFD2:=BACKSET(REFX(GT1,1)=0 AND DT1&lt;3 AND GT1-DT1&lt;4 AND REF(L,DT1)&gt;LLV(L,GT1+M-2),DT1+1),NODRAW;\r\nFG2A:=BACKSET(REFX(GT1,1)=0 AND DT1&lt;3 AND GT1-DT1&lt;4 AND REF(L,DT1)&lt;=LLV(L,GT1+M-2) AND REF(H,GT1)&gt;HHV(H,GT1+M-2),GT1+1),NODRAW;\r\nFG2B:=IF(GT1=0 AND DT1&lt;4 AND REF(GT1,1)-DT1&lt;4 AND REF(L,DT1)&lt;=LLV(L,REF(GT1,1)+M-1) AND H&gt;HHV(H,REF(GT1,1)+M-1),1,0),NODRAW;\r\nFG2:=BACKSET(REFX(DT1,1)=0 AND GT1&lt;3 AND DT1-GT1&lt;4 AND REF(H,GT1)&lt;HHV(H,DT1+M-2),GT1+1),NODRAW;\r\nFD2A:=BACKSET(REFX(DT1,1)=0 AND GT1&lt;3 AND DT1-GT1&lt;4 AND REF(H,GT1)&gt;=HHV(L,DT1+M-2) AND REF(L,DT1)&gt;LLV(L,DT1+M-2),DT1+1),NODRAW;\r\nFD2B:=IF(DT1=0 AND GT1&lt;4 AND REF(DT1,1)-GT1&lt;4 AND REF(H,GT1)&gt;=HHV(H,REF(DT1,1)+6) AND L&gt;LLV(L,REF(DT1,1)+M-1),1,0),NODRAW;\r\nTTTTTT:= H&lt;REF(H,REF(GT1,1)+1) AND DT1&lt;4,NODRAW;\r\nHHHHHH:=REF(LLV(L,10),DT1),NODRAW;\r\n\/\/\u524d\u957f\u540e\u77ed;\r\nFG21:=IF(GT1=0 AND DT1&lt;4 AND H&lt;=REF(H,REF(GT1,1)+1)\u00a0 ,1,0),NODRAW;\r\nFD21:=IF(DT1=0 AND GT1&lt;4\u00a0 AND L&gt;=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;\r\n\/\/\u524d\u77ed\u540e\u957f,\u524d\u4f4e\u540e\u9ad8\uff08\u53bb\u4f4e\uff09;\r\nFD231:=BACKSET(REFX(GT1,1)=0 AND DT1&gt;3 AND GT1&gt;DT1 AND GT1-DT1&lt;4 AND REFX(H,1)&gt;REF(H,GT1) AND REF(L,DT1)&gt;REF(LLV(L,10),DT1),DT1+1),NODRAW;\r\nFG23:=BACKSET(REFX(GT1,1)=0 AND DT1&gt;3 AND GT1&gt;DT1 AND\u00a0 GT1-DT1&lt;4 AND REFX(H,1)&gt;REF(H,GT1) AND (REF(H,GT1)&lt;REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;\r\n\/\/\u524d\u77ed\u540e\u957f\uff0c\u53bb2;\r\nFG231:=BACKSET(REFX(DT1,1)=0 AND GT1&gt;3\u00a0 AND DT1&gt;GT1 AND DT1-GT1&lt;4 AND REFX(L,1)&lt;REF(L,DT1) AND REF(H,GT1)&lt;REF(HHV(H,10),GT1) ,GT1+1),NODRAW;\r\nFD23:=BACKSET(REFX(DT1,1)=0 AND GT1&gt;3\u00a0 AND DT1&gt;GT1 AND DT1-GT1&lt;4 AND REFX(L,1)&lt;REF(L,DT1) AND ( REF(L,DT1)&gt;REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;\r\n\/\/\u524d\u77ed\u540e\u957f\uff0c\u53bb3;\r\nFDD23:=REF(H,GT1)&lt;REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;\r\nFD24:=BACKSET(REFX(GT1,1)=0 AND DT1&gt;3 AND GT1&gt;DT1 AND GT1-DT1&lt;4 AND REFX(H,1)&lt;HHV(H,GT1+3) AND REF(L,DT1)&gt;LLV(L,DT1+5),DT1+1),NODRAW;\r\nFG24:=BACKSET(REFX(DT1,1)=0 AND GT1&gt;3\u00a0 AND DT1&gt;GT1 AND DT1-GT1&lt;4 AND REFX(L,1)&gt;LLV(L,DT1+3) AND REF(H,GT1)&lt;HHV(H,GT1+5),GT1+1),NODRAW;\r\n\/\/\u505a\u4e24\u6b21\u9ad8\u4f4e\u70b9\u95f4\u591a\u4f59\u7684\u70b9\r\nGT2:=BARSLAST(FG21&lt;&gt;1 AND FG23&lt;&gt;1 AND FG231&lt;&gt;1 AND FG24&lt;&gt;1\u00a0 \u00a0AND FG2&lt;&gt;1 AND FG2A&lt;&gt;1 AND FG2B&lt;&gt;1 AND GT1=0),NODRAW;\r\nDT2:=BARSLAST(FD21&lt;&gt;1 AND FD23&lt;&gt;1 AND FD231&lt;&gt;1 AND FD24&lt;&gt;1\u00a0 AND FD2&lt;&gt;1 AND FD2A&lt;&gt;1 AND FD2B&lt;&gt;1 AND DT1=0),NODRAW;\r\nFG3:=BACKSET(REFX(GT2,1)=0 AND GT2&lt;DT2 AND REFX(H,1)&gt;=REF(H,GT2),GT2+1),NODRAW;\r\nFD3:=BACKSET(REFX(DT2,1)=0 AND DT2&lt;GT2 AND REFX(L,1)&lt;=REF(L,DT2),DT2+1),NODRAW;\r\nFG31:=IF(GT2=0 AND REF(GT2,1)&lt;DT2 AND H&lt;REF(H,REF(GT2,1)+1),1,0),NODRAW;\r\nFD31:=IF(DT2=0 AND REF(DT2,1)&lt;GT2 AND L&gt;REF(L,REF(DT2,1)+1),1,0),NODRAW;\r\nGT3:=BARSLAST(GT2=0 AND FG3&lt;&gt;1 AND FG31&lt;&gt;1 ),NODRAW;\r\nDT3:=BARSLAST(DT2=0 AND\u00a0 FD3&lt;&gt;1 AND FD31&lt;&gt;1),NODRAW;\r\nFG4:=BACKSET(REFX(GT3,1)=0 AND GT3&lt;DT3 AND REFX(H,1)&gt;=REF(H,GT3),GT3+1),NODRAW;\r\nFD4:=BACKSET(REFX(DT3,1)=0 AND DT3&lt;GT3 AND REFX(L,1)&lt;=REF(L,DT3),DT3+1),NODRAW;\r\nFG41:=IF(GT3=0 AND REF(GT3,1)&lt;DT3 AND H&lt;REF(H,REF(GT3,1)+1),1,0),NODRAW;\r\nFD41:=IF(DT3=0 AND REF(DT3,1)&lt;GT3 AND L&gt;REF(L,REF(DT3,1)+1),1,0),NODRAW;\r\nHHH:=GT3=0 AND FG31&lt;&gt;1 AND\u00a0 FG3&lt;&gt;1,NODRAW;\r\nLLL:=DT3=0 AND FD31&lt;&gt;1 AND\u00a0 FD3&lt;&gt;1,NODRAW;\r\nDRAWLINE1(HHH ,H,LLL,L,0),COLORGREEN,LINETHICK3;\/\/\u7eff\u8272\r\nDRAWLINE1(LLL,L,HHH ,H,0),COLORRED,LINETHICK3;\/\/\u7ea2\u8272\r\n\/\/\u6700\u540e\u4e00\u6bb5\u753b\u7ebf\r\nN1:=BARSLAST(HHH)+1;\r\nN2:=BARSLAST(LLL)+1;\r\nDRAWLINE3(ISLASTBAR&amp;&amp;MIN(N1,N2)=N2&amp;&amp;L&gt;REF(L,N2-1),REF(L,N2-1),N2-1,ISLASTBAR,H,0,0),COLORRED,LINETHICK3;\/\/\u7ea2\u8272\r\nDRAWLINE3(ISLASTBAR&amp;&amp;MIN(N1,N2)=N1&amp;&amp;H&lt;REF(H,N1-1),REF(H,N1-1),N1-1,ISLASTBAR,L,0,0),COLORGREEN,LINETHICK3;\/\/\u7eff\u8272<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\u8f6c\u81ea\u6587\u534e\u8bba\u575b<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7b56\u7565\u539f\u7406\uff1a \u521bM\u5468\u671f\u65b0\u9ad8\uff0c\u5e76\u4e14M\u5747\u7ebf\u9ad8\u4e8e10\u5747\u7ebf\uff0c\u786e\u5b9a\u5b9a\u4f4d\u70b9\uff1b \u521bM\u5468\u671f\u65b0\u4f4e\uff0c\u5e76\u4e14M\u5747\u7ebf\u4f4e\u4e8e10\u5747\u7ebf\uff0c\u786e\u5b9a\u5b9a\u4f4d [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[304],"tags":[],"topic":[],"pingtai":[233],"shiyong":[],"zhonglei":[],"pinzhong":[291],"pinlv":[],"mima":[],"zhibiao":[299],"shoufei":[294],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/posts\/270"}],"collection":[{"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":2,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":710,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/710"}],"wp:attachment":[{"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=270"},{"taxonomy":"pingtai","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fpingtai&post=270"},{"taxonomy":"shiyong","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fshiyong&post=270"},{"taxonomy":"zhonglei","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fzhonglei&post=270"},{"taxonomy":"pinzhong","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fpinzhong&post=270"},{"taxonomy":"pinlv","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fpinlv&post=270"},{"taxonomy":"mima","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmima&post=270"},{"taxonomy":"zhibiao","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fzhibiao&post=270"},{"taxonomy":"shoufei","embeddable":true,"href":"https:\/\/www.quant.bsiot.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fshoufei&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}