{"id":55563,"date":"2019-03-05T09:13:38","date_gmt":"2019-03-05T01:13:38","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/55563.html"},"modified":"2019-03-05T09:13:38","modified_gmt":"2019-03-05T01:13:38","slug":"%e9%80%9a%e8%be%be%e4%bf%a1%e6%97%a0%e6%95%8cmacd%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=55563","title":{"rendered":"\u901a\u8fbe\u4fe1\u65e0\u654cMACD\u6307\u6807\u516c\u5f0f"},"content":{"rendered":"<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,27);<br \/> DEA1:=EMA(DIFF1,9);<br \/> MACD:=2*(DIFF1-DEA1),STICK;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,3.2,0),COLORB20000;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,2.7,0),COLOREC0000;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,2.1,0),COLORFF4600;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,1.5,0),COLORFF6300;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,0.9,0),COLORFF8B00;<br \/> STICKLINE(MACD&lt;REF(MACD,1)AND MACD&gt;0,0,MACD,0.3,0),COLORFFAB00;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,3.2,0),COLOR000055;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,2.7,0),COLOR000077;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,2.1,0),COLOR000099;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,1.5,0),COLOR0000BB;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,0.9,0),COLOR0000DD;<br \/> STICKLINE(MACD&gt;=REF(MACD,1)AND MACD&gt;0,0,MACD,0.3,0),COLOR0000FF;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,3.2,0),COLOR555555;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,2.7,0),COLOR777777;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,2.1,0),COLOR999999;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,1.5,0),COLORBBBBBB;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,0.9,0),COLORDDDDDD;<br \/> STICKLINE(MACD&gt;REF(MACD,1)AND MACD&lt;0,0,MACD,0.3,0),COLORFFFFFF;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,3.2,0),COLORB20000;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,2.7,0),COLOREC0000;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,2.1,0),COLORFF4600;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,1.5,0),COLORFF6300;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,0.9,0),COLORFF8B00;<br \/> STICKLINE(MACD&lt;=REF(MACD,1)AND MACD&lt;0,0,MACD,0.3,0),COLORFFAB00;<br \/> STICKLINE(MACD&gt;=0 OR MACD&lt;=0,0,0,50,2),COLORWHITE;<br \/> DIFF:DIFF1,COLOR33FF33;<br \/> DEA:DEA1,COLORYELLOW;<br \/> \u5f3a\u5ea6:IF(DIFF&gt;=DEA,DIFF,DRAWNULL),COLORRED;<br \/> \u4f4e\u4f4d\u91d1\u53c9:=CROSS(DIFF,DEA) AND DIFF&lt;-0.1;<br \/> DRAWTEXT(\u4f4e\u4f4d\u91d1\u53c9,-0.1,'^ \u4f4e\u4f4d\u91d1\u53c9'),COLORYELLOW;<br \/> JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA&gt;=0));<br \/> \u4e8c\u6b21\u91d1\u53c9:=CROSS(DIFF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=2,21)=1;<br \/> DRAWICON(\u4e8c\u6b21\u91d1\u53c9,DEA*1.04,13) ;<br \/> DRAWTEXT(\u4e8c\u6b21\u91d1\u53c9,-0.1,' \u4e8c\u6b21\u91d1\u53c9'),COLORFF00FF;<br \/> A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));<br \/> \u5e95\u80cc\u79bb:=REF(CLOSE,A1+1)&gt;CLOSE AND DIFF&gt;REF(DIFF,A1+1) AND CROSS(DIFF,DEA);<br \/> \u5e95\u80cc:DRAWLINE(A1=0,DEA,\u5e95\u80cc\u79bb,DEA,0),COLORRED,POINTDOT;<br \/> DRAWTEXT(\u5e95\u80cc\u79bb,0.1,'\u5e95\u80cc\u79bb'),COLORMAGENTA;<br \/> A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));<br \/> \u9876\u80cc\u79bb:=REF(CLOSE,A2+1)&lt;CLOSE AND REF(DIFF,A2+1)&gt;DIFF AND CROSS(DEA,DIFF);<br \/> \u9876\u80cc:DRAWLINE(A2=0,DEA,\u9876\u80cc\u79bb,DEA,0),COLORGREEN,POINTDOT;<br \/> DRAWTEXT(\u9876\u80cc\u79bb,DIFF,'\u9876\u80cc\u79bb'),COLORGREEN;<br \/> \u591a\u8f6c\u7a7a:=((((LLV(MACD,4)&gt;0) AND (MACD&lt;REF(MACD,1))) AND (REF(MACD,1)&gt;REF(MACD,2))) AND (REF(MACD,2)&gt;REF(MACD,3)));<br \/> \u7a7a\u8f6c\u591a:=((((HHV(MACD,4)&lt;0) AND (MACD&gt;REF(MACD,1))) AND (REF(MACD,1)&lt;REF(MACD,2))) AND (REF(MACD,2)&lt;REF(MACD,3)));<br \/> DRAWICON(\u591a\u8f6c\u7a7a,MACD,2);<br \/> DRAWICON(\u7a7a\u8f6c\u591a,MACD,1);<br \/> STICKLINE(\u4e8c\u6b21\u91d1\u53c9,0,0.2,2,0),COLORFF00FF;<br \/> DRAWTEXT(\u4e8c\u6b21\u91d1\u53c9,DEA*1.06,'\u4e8c\u6b21\u91d1\u53c9'),COLORRED; <\/p>\n<p><img decoding=\"async\" width=\"546\" height=\"427\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/160725\/1_160725182456_1.jpg')\" style=\"cursor:pointer\" alt=\"\u901a\u8fbe\u4fe1\u65e0\u654cMACD\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/e6Vjeu.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fbe\u4fe1\u65e0\u654cMACD\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":55564,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[140],"class_list":["post-55563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tdxgs","tag-140"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/55563","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=55563"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/55563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/55564"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}