{"id":57617,"date":"2019-02-05T07:04:03","date_gmt":"2019-02-04T23:04:03","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/57617.html"},"modified":"2019-02-05T07:04:03","modified_gmt":"2019-02-04T23:04:03","slug":"%e5%a4%a7%e6%99%ba%e6%85%a7macd%e6%94%b9%e8%bf%9b%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=57617","title":{"rendered":"\u5927\u667a\u6167MACD\u6539\u8fdb\u6307\u6807\u516c\u5f0f"},"content":{"rendered":"<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u5927\u667a\u6167\u817e\u5929\u901a\u9053\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u817e\u5929\u901a\u9053\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u3010\u80a1\u7968\u8d44\u6e90\u9986\u3011\u8ba9\u6570\u636e\u89e6\u624b\u53ef\u5f97\uff01\u4e13\u4e1a\u548c\u8c10\u7834\u89e3\u9ad8\u7aef\u7092\u80a1\u8f6f\u4ef6\uff01<\/p>\n<p>\u662f\u56fd\u5185\u6700\u597d\u7684\u80a1\u7968\u8f6f\u4ef6\u3001\u80a1\u7968\u516c\u5f0f\u6307\u6807\u3001\u80a1\u7968\u4e66\u7c4d\u4e0b\u8f7d\u7f51\u7ad9\uff1b\u63d0\u4f9b\u6700\u5168\u9762\u7684\u80a1\u7968\u77e5\u8bc6\u3001\u7092\u80a1\u6559\u7a0b\u3001\u9ed1\u9a6c\u80a1\u7968\u3001\u80a1\u7968\u8d44\u8baf\u3001\u671f\u8d27\u5916\u6c47\u7b49\u7ed9\u5927\u5bb6\u5728\u7ebf\u53c2\u8003\u5b66\u4e60\u3002<\/p>\n<\/blockquote>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>SHORT:=5;<br \/> LONG:=25;<br \/> M:=10;<br \/> 0;<br \/> DIFF:=(EMA(CLOSE,SHORT)\/EMA(CLOSE,LONG)-1)*100;<br \/> partline(diff,diff&gt;ref(diff,1),rgb(255,0,0),diff&lt;ref(diff,1),rgb(0,255,0)),linethick2;<br \/> DEA:EMA(DIFF,M),coloryellow;<br \/> MACD:3*(DIFF-DEA), COLORSTICK;<br \/> macdx:macd;<br \/> partline(macdx,macdx&gt;ref(macdx,1),rgb(255,0,0),macdx&lt;ref(macdx,1),rgb(0,255,0));<br \/> Var1:=EMA(CLOSE,35)-EMA(CLOSE,17);<br \/> Var2:=EMA(Var1,5);<br \/> jgdx:TROUGHBARS(3,10,1)&lt;1 AND CROSS(Var1,Var2),colorred;<br \/> {zds:=hhvall(macdx);<br \/> RSV:=((CLOSE-LLV(LOW,9))\/(HHV(HIGH,9)-LLV(LOW,9))*zds)-(zds\/2);<br \/> K:=SMA(RSV,3,1);<br \/> D:=SMA(K,3,1);<br \/> Jb:=3*K-2*D;<br \/> zdjb:=hhvall(jb);<br \/> j:jb*zds\/zdjb;<br \/> DRAWTEXTABS(40,5,'\u56fe\u4e2d\u767d\u8272\u7ebf\u4e3aKDJ\u7684J\u7ebf'),Colorred;}<br \/> {difa:=abs(diff);<br \/> diff\u89d2\u5ea6:=atan((difa\/ref(difa,2)-1)*100)*180\/3.1415926535;<br \/> DRAWTEXTABS(40,10,'\u25a0diff\u89d2\u5ea6:'+NUMTOSTRN(diff\u89d2\u5ea6,2)+''),ColorFFFF00;}<br \/> {drawtextabs(440,10,'\uff01\uff01\u6ce8\u610f\uff1a \u65e5K\u7ebf\u7684bbiday\u7684\u989c\u8272\u53d8\u5316\u548cMACD\u7684\u80cc\u79bb\u4fe1\u53f7\uff01\uff01'),colorred;}<br \/> {diffday:\"macd.diff#day\";}<br \/> jc:=cross(diff,dea);<br \/> sc:=cross(dea,diff);<br \/> djck:=(count(jc,barslast(diff&gt;0)));<br \/> ssjc:=(count(jc,barslast(diff&lt;0)));<br \/> usck:=(count(sc,barslast(diff&lt;0)));<br \/> jcd:=if(jc,dea,0);{\u91d1\u53c9\u70b9}<br \/> scd:=if(sc,dea,0);{\u6b7b\u53c9\u70b9}<br \/> drawtext(jc and diff&lt;0,jcd,numtostr(djck)+'\u91d1\u53c9'),colorred;<br \/> drawtext(jc and diff&gt;0,jcd,numtostr(ssjc)+'\u91d1\u53c9'),colorred;<br \/> drawtext(sc and diff&gt;0,scd,numtostr(usck)+'\u6b7b\u53c9'),colorgreen;<br \/> A1:=BARSLAST(ref(cross(diff,dea) and dea&lt;0,1));<br \/> B1:=ref(c,A1+1)&gt;c and ref(diff,A1+1)&lt;diff and cross(diff,dea) and dea&lt;0;<br \/> DRAWTEXT(FILTER(B1&gt;0,5),diff-0.01,'*MACD\u5e95\u80cc\u79bb'),COLOryellow;<br \/> C1:=BARSLAST(ref(cross(dea,diff),1)) and dea&gt;0;<br \/> D1:=ref(c,C1+1)&lt;c and ref(diff,C1+1)&gt;diff and cross(dea,diff) and dea&gt;0;<br \/> DRAWTEXT(FILTER(D1&gt;0,5),diff+0.01,'*MACD\u9876\u80cc\u79bb'),COLORred;<br \/> {gd:=if(diff&lt;ref(diff,1) and ref(diff,1)&lt;ref(diff,2) and ref(diff,2)&gt;ref(diff,3) and ref(diff,3)&gt;ref(diff,4),ref(diff,2),0);<br \/> gdk:=count(gd&gt;0,barslast(diff&lt;0));<br \/> drawtext(gd&gt;0 and diff&gt;0,ref(diff,2),numtostr(gdk)+'\u62d0\u70b9'),coloryellow;}<br \/> {0007--MACD\u91d1\u6b7b\u53c9\u95f4\u6700\u5927\u3001\u6700\u5c0f\u503c}<br \/> A1:=CROSS(\"MACD.MACD\",0);<br \/> A2:=BARSLAST(A1);<br \/> A3:=HHVBARS(\"MACD.MACD\" ,A2+1);<br \/> A4:=BACKSET(REF(A3&gt;=1,1) AND \"MACD.MACD\"&lt;0,A3);<br \/> A5:=BACKSET(REF(A4=0,1) AND A4=1,2);<br \/> \u9ad8\u503c:IF(FILTER(A5,2),\"MACD.MACD\",0);<br \/> DRAWICON(\u9ad8\u503c&gt;0,\u9ad8\u503c,4);<br \/> B1:=CROSS(0,\"MACD.MACD\");<br \/> B2:=BARSLAST(B1);<br \/> B3:=LLVBARS(\"MACD.MACD\" ,B2+1);<br \/> B4:=BACKSET(REF(B3&gt;=1,1) AND \"MACD.MACD\"&gt;0,B3);<br \/> B5:=BACKSET(REF(B4=0,1) AND B4=1,2);<br \/> \u4f4e\u503c:IF(FILTER(B5,2),\"MACD.MACD\",0);<br \/> DRAWICON(\u4f4e\u503c&lt;0,\u4f4e\u503c,5); <br \/> {A1:=BARSLAST(ref(cross(diff,dea),1));<br \/> B1:=ref(c,A1+1)&gt;c and ref(diff,A1+1)&lt;diff and cross(diff,dea);<br \/> DRAWTEXT(FILTER(B1&gt;0,5),0,'MACD'),COLORGREEN,ALIGN0;;<br \/> Stickline(FILTER(B1&gt;0,5),-1,0,1,0),COLORGREEN;<br \/> {A2:=BARSLAST(ref(cross(\"kdj.k\",\"kdj.d\"),1));<br \/> B2:=ref(c,A2+1)&gt;c and ref(\"kdj.k\",A2+1)&lt;\"kdj.k\" and cross(\"kdj.k\",\"kdj.d\");<br \/> DRAWTEXT(FILTER(B2&gt;0,5),0.5,'KDJ'),COLORYELLOW,ALIGN0;;<br \/> Stickline(FILTER(B2&gt;0,5),0.5,-1,1,0),COLORYELLOW;<br \/> A3:=BARSLAST(ref(cross(\"RSI.RSI1\",\"RSI.RSI2\"),1));<br \/> B3:=ref(c,A3+1)&gt;c and ref(\"RSI.RSI1\",A3+1)&lt;\"RSI.RSI1\" and cross(\"RSI.RSI1\",\"RSI.RSI2\");<br \/> DRAWTEXT(FILTER(B3&gt;0,5),-0.25,'RSI'),COLORCYAN,ALIGN0;;<br \/> Stickline(FILTER(B3&gt;0,5),-1,-0.25,1,0),COLORCYAN;}<br \/> {C1:=BARSLAST(ref(cross(dea,diff),1));<br \/> D1:=ref(c,C1+1)&lt;c and ref(diff,C1+1)&gt;diff and cross(dea,diff);<br \/> DRAWTEXT(FILTER(D1&gt;0,5),-0.5,'MACD'),COLORwhite,ALIGN0;<br \/> Stickline(FILTER(D1&gt;0,5),-0.5,1,1,0),COLORwhite;<br \/> {C2:=BARSLAST(ref(cross(\"kdj.d\",\"kdj.k\"),1));<br \/> D2:=ref(c,C2+1)&lt;c and ref(\"kdj.k\",C2+1)&gt;\"kdj.k\" and cross(\"kdj.d\",\"kdj.k\");<br \/> DRAWTEXT(FILTER(D2&gt;0,5),0,'KDJ'),COLORwhite,ALIGN0;<br \/> Stickline(FILTER(D2&gt;0,5),1,0,1,0),COLORwhite;<br \/> C3:=BARSLAST(ref(cross(\"RSI.RSI2\",\"RSI.RSI1\"),1));<br \/> D3:=ref(c,C3+1)&lt;c and ref(\"RSI.RSI1\",C3+1)&gt;\"RSI.RSI1\" and cross(\"RSI.RSI2\",\"RSI.RSI1\");<br \/> DRAWTEXT(FILTER(D3&gt;0,5),0.25,'RSI'),COLORMAGENTA,ALIGN0;;<br \/> Stickline(FILTER(D3&gt;0,5),1,0.25,1,0),COLORMAGENTA;};<\/p>\n<p><img decoding=\"async\" width=\"619\" height=\"461\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/150203\/1_150203192128_1.jpg')\" style=\"cursor:pointer\" alt=\"\u5927\u667a\u6167MACD\u6539\u8fdb\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/Y7vIja.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u3010\u80a1\u7968\u8d44\u6e90\u9986\u3011\u540c\u82b1\u987a\u5b9e\u65f6\u6e2f\u80a1\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u4e3b\u529b\u7834\u89e3,\u5927\u667a\u6167\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u4e13\u4e1a\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u7814\u7a76\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u8d85\u8d62\u7248\u7834\u89e3,\u80a1\u7968\u516c\u5f0f,\u80a1\u7968\u6307\u6807\u516c\u5f0f,\u80a1\u7968\u516c\u5f0f\u5927\u5168,\u6307\u5357\u9488\u8f6f\u4ef6\u7834\u89e3,\u7092\u80a1\u4e66\u7c4d,k\u7ebf\u56fe\u600e\u4e48\u770b,\u80a1\u7968k\u7ebf\u56fe,\u3002<\/p>\n<\/blockquote>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u5927\u667a\u6167\u4e3b\u4e70\u4e3b\u5356\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u4e3b\u4e70\u4e3b\u5356\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u667a\u6167MACD\u6539\u8fdb\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":57618,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[132],"class_list":["post-57617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dzhgs","tag-132"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/57617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57617"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/57617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/57618"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}