{"id":41335,"date":"2019-03-11T17:44:49","date_gmt":"2019-03-11T09:44:49","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/41335.html"},"modified":"2019-03-11T17:44:49","modified_gmt":"2019-03-11T09:44:49","slug":"%e5%90%8c%e8%8a%b1%e9%a1%ba%e5%ae%9a%e9%87%8f%e7%bb%93%e6%9e%84macd%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f_%e7%90%86%e6%83%b3%e8%82%a1%e7%a5%a8%e6%8a%80%e6%9c%af%e8%ae%ba%e5%9d%9b","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=41335","title":{"rendered":"\u540c\u82b1\u987a\u5b9a\u91cf\u7ed3\u6784MACD\u6307\u6807\u516c\u5f0f_\u7406\u60f3\u80a1\u7968\u6280\u672f\u8bba\u575b"},"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;\">\u540c\u82b1\u987a\u8109\u51b2\u7cfb\u7edf\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u540c\u82b1\u987a\u8109\u51b2\u7cfb\u7edf\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/www.lixiangluntan.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u7092\u80a1\u6559\u7a0b<\/a><\/p>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26));<br \/> DEA:EMA(DIF,9);<br \/> MACD:(DIF-DEA)*2,COLORSTICK;<br \/> \u6b7b\u53c9:=CROSS(DEA,DIF);<br \/> N1:=BARSLAST(\u6b7b\u53c9);<br \/> N2:=REF(BARSLAST(\u6b7b\u53c9),N1+1);<br \/> N3:=REF(BARSLAST(\u6b7b\u53c9),N2+N1+2);<br \/> CL1:=LLV(C,N1+1);<br \/> DIFL1:=LLV(DIF,N1+1);<br \/> CL2:=REF(CL1,N1+1);<br \/> DIFL2:=REF(DIFL1,N1+1);<br \/> CL3:=REF(CL2,N1+1);<br \/> DIFL3:=REF(DIFL2,N1+1);<br \/> PDIFL2:=IF(DIFL2&gt;0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1);<br \/> MDIFL2:=INTPART(DIFL2\/POW(10,PDIFL2));<br \/> PDIFL3:=IF(DIFL3&gt;0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1);<br \/> MDIFL3:=INTPART(DIFL3\/POW(10,PDIFL3));<br \/> MDIFB2:=INTPART(DIF\/POW(10,PDIFL2));<br \/> MDIFB3:=INTPART(DIF\/POW(10,PDIFL3));<br \/> \u76f4\u63a5\u5e95\u80cc\u79bb:=(CL1&lt;CL2 ) AND (MDIFB2&gt;MDIFL2) AND (MACD&lt;0 AND REF(MACD,1)&lt;0) AND MDIFB2&lt;=REF(MDIFB2,1);<br \/> \u9694\u5cf0\u5e95\u80cc\u79bb:=(CL1&lt;CL3 AND CL3&lt;CL2 ) AND (MDIFB3&gt;MDIFL3) AND (MACD&lt;0 AND REF(MACD,1)&lt;0) AND MDIFB3&lt;=REF(MDIFB3,1);<br \/> B:=(\u76f4\u63a5\u5e95\u80cc\u79bb OR \u9694\u5cf0\u5e95\u80cc\u79bb);<br \/> BG:=((MDIFB2&gt;REF(MDIFB2,1))*REF(\u76f4\u63a5\u5e95\u80cc\u79bb,1)) OR ((MDIFB3&gt;REF(MDIFB3,1))*REF(\u9694\u5cf0\u5e95\u80cc\u79bb,1));<br \/> \u5e95\u80cc\u79bb\u6d88\u5931:=(REF(\u76f4\u63a5\u5e95\u80cc\u79bb,1) AND DIFL1&lt;=DIFL2 ) OR (REF(\u9694\u5cf0\u5e95\u80cc\u79bb,1) AND DIFL1&lt;=DIFL3);<br \/> STICKLINE(B OR BG,DIF,DEA,8,0),colorred;<br \/> DRAWTEXT((B AND COUNT(B,2)=1),(DIF*1.5),'\u949d\u5316'),coloryellow;<br \/> DRAWTEXT(FILTER(BG,10),(DIF*1.5),'\u7ed3\u6784\u5f62\u6210'),colormagenta;<br \/> DRAWTEXT(FILTER(\u5e95\u80cc\u79bb\u6d88\u5931,10),(DIF+MACD),'\u6d88\u5931'),colorgreen;<br \/> STICKLINE(BG,0,(DIF+DEA),5,0), colorred;<br \/> \u91d1\u53c9:=CROSS(DIF,DEA);<br \/> M1:=BARSLAST(\u91d1\u53c9);<br \/> M2:=REF(BARSLAST(\u91d1\u53c9),M1+1);<br \/> M3:=REF(BARSLAST(\u91d1\u53c9),M2+M1+2);<br \/> CH1:=HHV(C,M1+1);<br \/> DIFH1:=HHV(DIF,M1+1);<br \/> CH2:=REF(CH1,M1+1);<br \/> DIFH2:=REF(DIFH1,M1+1);<br \/> CH3:=REF(CH2,M1+1);<br \/> DIFH3:=REF(DIFH2,M1+1);<br \/> PDIFH2:=IF(DIFH2&gt;0,INTPART(LOG(DIFH2))-1,INTPART(LOG(-DIFH2))-1);<br \/> MDIFH2:=INTPART(DIFH2\/POW(10,PDIFH2));<br \/> PDIFH3:=IF(DIFH3&gt;0,INTPART(LOG(DIFH3))-1,INTPART(LOG(-DIFH3))-1);<br \/> MDIFH3:=INTPART(DIFH3\/POW(10,PDIFH3));<br \/> MDIFT2:=INTPART(DIF\/POW(10,PDIFH2));<br \/> MDIFT3:=INTPART(DIF\/POW(10,PDIFH3));<br \/> \u76f4\u63a5\u9876\u80cc\u79bb:=(CH1&gt;CH2 ) AND (MDIFT2&lt;MDIFH2) AND (MACD&gt;0 AND REF(MACD,1)&gt;0) AND MDIFT2&gt;=REF(MDIFT2,1);<br \/> \u9694\u5cf0\u9876\u80cc\u79bb:=(CH1&gt;CH3 AND CH3&gt;CH2 ) AND (MDIFT3&lt;MDIFH3) AND (MACD&gt;0 AND REF(MACD,1)&gt;0) AND MDIFT3&gt;=REF(MDIFT3,1);<br \/> T:=(\u76f4\u63a5\u9876\u80cc\u79bb OR \u9694\u5cf0\u9876\u80cc\u79bb);<br \/> TG:=((MDIFT2&lt;REF(MDIFT2,1))*REF(\u76f4\u63a5\u9876\u80cc\u79bb,1)) OR ((MDIFT3&lt;REF(MDIFT3,1))*REF(\u9694\u5cf0\u9876\u80cc\u79bb,1));<br \/> \u9876\u80cc\u79bb\u6d88\u5931:=(REF(\u76f4\u63a5\u9876\u80cc\u79bb,1) AND DIFH1&gt;=DIFH2 ) OR (REF(\u9694\u5cf0\u9876\u80cc\u79bb,1) AND DIFH1&gt;=DIFH3);<br \/> STICKLINE(TG,0,(DIF+DEA),5,0), colorgreen;<br \/> STICKLINE(T OR TG,DIF,DEA,8,0),colorgreen;<br \/> DRAWTEXT(FILTER(TG,20),(DIF*1.4),'\u7ed3\u6784\u5f62\u6210'),colormagenta;<br \/> DRAWTEXT(FILTER(\u9876\u80cc\u79bb\u6d88\u5931,20),(DIF+MACD),'\u6d88\u5931'),colorgreen;<\/p>\n<p><img decoding=\"async\" width=\"569\" height=\"459\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/191114\/1_191114193841_1.jpg')\" style=\"cursor:pointer\" alt=\"\u540c\u82b1\u987a\u5b9a\u91cf\u7ed3\u6784MACD\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/n2qM7b.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\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<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;\">\u540c\u82b1\u987a\u4e3b\u529b\u53c2\u4e0e\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u540c\u82b1\u987a\u4e3b\u529b\u53c2\u4e0e\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u82b1\u987a\u5b9a\u91cf\u7ed3\u6784MACD\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":41337,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129],"tags":[130],"class_list":["post-41335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thsgs","tag-130"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/41335","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=41335"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/41335\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/41337"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}