{"id":39915,"date":"2019-10-06T01:48:26","date_gmt":"2019-10-05T17:48:26","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/39915.html"},"modified":"2019-10-06T01:48:26","modified_gmt":"2019-10-05T17:48:26","slug":"%e9%80%9a%e8%be%be%e4%bf%a1%e4%bc%98%e5%8c%96macd%e9%a1%b6%e5%ba%95%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=39915","title":{"rendered":"\u901a\u8fbe\u4fe1\u4f18\u5316MACD\u9876\u5e95\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>DIFF:EMA(CLOSE,7) - EMA(CLOSE,19);<br \/> DEA:EMA(DIFF,9);<br \/> DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));<br \/> MACD:2*(DIFF-DEA),COLORSTICK;<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 \/> A2:=BARSLAST(REF(CROSS(\"KDJ.K\"(9,3,3),\"KDJ.D\"(9,3,3)),1));<br \/> B2:=REF(C,A2+1)&gt;C AND REF(\"KDJ.K\"(9,3,3),A2+1)&lt;\"KDJ.K\"(9,3,3) AND CROSS(\"KDJ.K\"(9,3,3),\"KDJ.D\"(9,3,3));<br \/> A3:=BARSLAST(REF(CROSS(\"RSI.RSI1\"(6,12,24),\"RSI.RSI2\"(6,12,24)),1));<br \/> B3:=REF(C,A3+1)&gt;C AND REF(\"RSI.RSI1\"(6,12,24),A3+1)&lt;\"RSI.RSI1\"(6,12,24) AND CROSS(\"RSI.RSI1\"(6,12,24),\"RSI.RSI2\"(6,12,24));<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 \/> C2:=BARSLAST(REF(CROSS(\"KDJ.D\"(9,3,3),\"KDJ.K\"(9,3,3)),1));<br \/> D2:=REF(C,C2+1)&lt;C AND REF(\"KDJ.K\"(9,3,3),C2+1)&gt;\"KDJ.K\"(9,3,3) AND CROSS(\"KDJ.D\"(9,3,3),\"KDJ.K\"(9,3,3));<br \/> C3:=BARSLAST(REF(CROSS(\"RSI.RSI2\"(6,12,24),\"RSI.RSI1\"(6,12,24)),1));<br \/> D3:=REF(C,C3+1)&lt;C AND REF(\"RSI.RSI1\"(6,12,24),C3+1)&gt;\"RSI.RSI1\"(6,12,24) AND CROSS(\"RSI.RSI2\"(6,12,24),\"RSI.RSI1\"(6,12,24));<br \/> STICKLINE(B1&gt;0,-0.1,0,1,0),COLORRED;<br \/> STICKLINE(B2&gt;0,-0.1,0,1,0),COLORFF00FF;<br \/> STICKLINE(B3&gt;0,-0.1,0,1,0),COLORYELLOW;<br \/> STICKLINE(D1&gt;0,0.1,0,1,0),COLOR00FF00;<br \/> STICKLINE(D2&gt;0,0.1,0,1,0),COLORFFCC66;<br \/> STICKLINE(D3&gt;0,0.1,0,1,0),COLORWHITE;<br \/> STICKLINE(MACD&gt;REF(MACD,1) AND MACD&gt;0,0,MACD,0,0),COLORRED;<br \/> STICKLINE(MACD&lt;=REF(MACD,1) AND MACD&gt;0,0,MACD,0,0),COLORYELLOW;<br \/> STICKLINE(MACD&lt;REF(MACD,1) AND MACD&lt;0,0,MACD,0,0),COLORCYAN;<br \/> STICKLINE(MACD&gt;=REF(MACD,1) AND MACD&lt;0,0,MACD,0,0),COLORMAGENTA;<br \/> STICKLINE(C&gt;0,0,0,50,1),COLORBLUE;<br \/> MACD\u5e95\u80cc:IF(B1&gt;0,-0.1,0),COLORRED,POINTDOT;<br \/> KDJ\u5e95\u80cc:IF(B2&gt;0,-0.1,0),COLORFF00FF,POINTDOT;<br \/> RSI\u5e95\u80cc:IF(B3&gt;0,-0.1,0),COLORYELLOW,POINTDOT;<br \/> MACD\u9876\u80cc:IF(D1&gt;0,0.1,0),COLOR00FF00,POINTDOT;<br \/> KDJ\u9876\u80cc:IF(D2&gt;0,0.1,0),COLORFFCC66,POINTDOT;<br \/> RSI\u9876\u80cc:IF(D3&gt;0,0.1,0),COLORWHITE,POINTDOT;<br \/> \u5f3a:IF(DIFF&gt;MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK2;<br \/> \u5f31:IF(DEA&gt;MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;<br \/> DRAWICON(CROSS(DIFF,DEA),DEA,5);<br \/> DRAWICON(CROSS(DEA,DIFF),DEA,27);<br \/> A:=REF(DIFF,1)&lt;REF(DIFF,2) AND REF(DIFF,2)&lt;REF(DIFF,3) AND DIFF&gt;REF(DIFF,1);<br \/> B:=REF(DIFF,1)&gt;REF(DIFF,2) AND REF(DIFF,2)&gt;REF(DIFF,3) AND DIFF&lt;REF(DIFF,1);<br \/> DRAWICON(A,DIFF,1);<br \/> DRAWICON(B,DIFF,2);<br \/> STICKLINE((MACD &gt; 0),0,MACD,0.1,0),COLOR0000CC;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.9,0.1,0),COLOR0000EE;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.8,0.1,0),COLOR0011FF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.7,0.1,0),COLOR0033FF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.6,0.1,0),COLOR0055FF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.5,0.1,0),COLOR0077FF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.4,0.1,0),COLOR0099FF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.3,0.1,0),COLOR00BBFF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.2,0.1,0),COLOR00DDFF;<br \/> STICKLINE((MACD &gt; 0),0,MACD*0.1,0.1,0),COLOR00FFFF;<br \/> STICKLINE((MACD &lt; 0),0,MACD,0.1,0),COLORCC0033;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.9,0.1,0),COLOREE0033;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.8,0.1,0),COLORFF1133;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.7,0.1,0),COLORFF3333;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.6,0.1,0),COLORFF5533;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.5,0.1,0),COLORFF7733;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.4,0.1,0),COLORFF9933;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.3,0.1,0),COLORFFBB33;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.2,0.1,0),COLORFFDD33;<br \/> STICKLINE((MACD &lt; 0),0,MACD*0.1,0.1,0),COLORFFFF33;<\/p>\n<p><img decoding=\"async\" width=\"479\" height=\"423\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/200420\/1_200420194027_1.jpg')\" style=\"cursor:pointer\" alt=\"\u901a\u8fbe\u4fe1\u4f18\u5316MACD\u9876\u5e95\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/NN3qu2.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fbe\u4fe1\u4f18\u5316MACD\u9876\u5e95\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":39916,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[140],"class_list":["post-39915","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\/39915","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=39915"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/39915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/39916"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}