{"id":56525,"date":"2019-11-15T16:22:27","date_gmt":"2019-11-15T08:22:27","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/56525.html"},"modified":"2019-11-15T16:22:27","modified_gmt":"2019-11-15T08:22:27","slug":"%e5%a4%a7%e6%99%ba%e6%85%a7%e6%bc%82%e4%ba%ae%e7%9a%84macd%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=56525","title":{"rendered":"\u5927\u667a\u6167\u6f02\u4eae\u7684MACD\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\u52a0\u4ed3\u7a7a\u4ed3\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u52a0\u4ed3\u7a7a\u4ed3\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<p> \u7092\u80a1\u8f6f\u4ef6 <\/p>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>long:=26;<br \/> short:=12;<br \/> m:=9;<br \/> OBV:=MA(SUM(IF(CLOSE&gt;REF(CLOSE,1),VOL,IF(CLOSE&lt;REF(CLOSE,1),-VOL,0)),0)\/25000,1);<br \/> DIFF:EMA(obv,SHORT) - EMA(obv,LONG);<br \/> bbDIFF:DIFF-ref(DIFF,1);<br \/> DEA : EMA(DIFF,M);<br \/> bbDEA:DEA-ref(DEA,1);<br \/> MACD : 2*(DIFF-DEA), COLORSTICK;<br \/> \u67f1: 2*(DIFF-DEA);<br \/> \uff22\uff22\u67f1:\u67f1-ref(\u67f1,1);<br \/> stickLINE(bbDIFF&gt;0,DIFF,DEA,6,0),colorcc00ff,LINETHICK2;<br \/> STICKLINE(bbDIFF&lt;=0,DIFF,DEA,6,0),colorff9999,LINETHICK2;<br \/> STICKLINE(bbDEA&gt;0,DIFF,DEA,6,0),color0066ff,LINETHICK2;<br \/> STICKLINE(bbDEA&lt;=0,DIFF,DEA,6,0),color00ff33,LINETHICK2;<br \/> STICKLINE(\uff22\uff22\u67f1&gt;0,\u67f1,\uff22\uff22\u67f1,6,0),colorcc00ff,LINETHICK1;<br \/> STICKLINE(\uff22\uff22\u67f1&lt;=0,\u67f1,\uff22\uff22\u67f1,6,0),colorff9999,LINETHICK1;<br \/> A1:=BARSLAST(ref(cross(\"macd.diff\"(12,26,9),\"macd.dea\"(12,26,9)),1));<br \/> B1:=ref(c,A1+1)&gt;c and ref(\"macd.diff\"(12,26,9),A1+1)&lt;\"macd.diff\"(12,26,9) and cross(\"macd.diff\"(12,26,9),\"macd.dea\"(12,26,9));<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(\"macd.dea\"(12,26,9),\"macd.diff\"(12,26,9)),1));<br \/> D1:=ref(c,C1+1)&lt;c and ref(\"macd.diff\"(12,26,9),C1+1)&gt;\"macd.diff\"(12,26,9) and cross(\"macd.dea\"(12,26,9),\"macd.diff\"(12,26,9));<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 \/> TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);<br \/> HD := HIGH-REF(HIGH,1);<br \/> LD := REF(LOW,1)-LOW;<br \/> PDM:= SUM(IF(HD&gt;0 AND HD&gt;LD,HD,0),14);<br \/> MDM:= SUM(IF(LD&gt;0 AND LD&gt;HD,LD,0),14);<br \/> PDI:= PDM*100\/TR;<br \/> MDI:= MDM*100\/TR;<br \/> C4:=BARSLAST(ref(cross(mdi,pdi),1));<br \/> D4:=ref(c,C+1)&lt;c and ref(mdi,C4+1)&gt;mdi and cross(mdi,pdi);<br \/> A4:=BARSLAST(ref(cross(PDI,MDI),1));<br \/> B4:=ref(c,A4+1)&gt;c and ref(pdi,A4+1)&lt;pdi and cross(pdi,mdi);<br \/> DMI\u5e95\u80cc:IF(B4&gt;0,-0.1,0),COLOR0099FF,POINTDOT;<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 \/> DMI\u9876\u80cc:IF(D4&gt;0,0.1,0),COLORBLUE,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),colorgray,pointdot;<br \/> DRAWTEXT(B1&gt;0,BBDIFF,'MACD\u5e95\u80cc'),colorred;<br \/> DRAWTEXT(B2&gt;0,BBDIFF,'KDJ\u5e95\u80cc'),colorff00ff;<br \/> DRAWTEXT(B3&gt;0,BBDIFF,'RSI\u5e95\u80cc'),coloryellow;<br \/> DRAWTEXT(d1&gt;0,DIFF,'MACD\u9876\u80cc'),color00ff00;<br \/> DRAWTEXT(d2&gt;0,DIFF,'KDJ\u9876\u80cc'),colorffcc66;<br \/> DRAWTEXT(d3&gt;0,DIFF,'RSI\u9876\u80cc'),colorwhite;<br \/> DRAWTEXT(B4&gt;0,BBDIFF,'DMI\u9876\u80cc'),color0099ff;<br \/> DRAWTEXT(D4&gt;0,BBDIFF,'DMI\u9876\u80cc'),colorblue;<\/p>\n<p><img decoding=\"async\" width=\"608\" height=\"394\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/160414\/1_160414183822_1.jpg')\" style=\"cursor:pointer\" alt=\"\u5927\u667a\u6167\u6f02\u4eae\u7684MACD\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/Yziqya.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\u4e1c\u65b9\u8d22\u5bccL2\u51b3\u7b56\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u7f51,\u4e1c\u65b9\u8d22\u5bcc\u6295\u8d44\u5927\u5e08\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u5148\u950b\u7248\u7834\u89e3,\u4e1c\u65b9\u8d22\u5bcc\u9886\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8fdc\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u5148\u950b\u7834\u89e3,\u540c\u82b1\u987aL2\u7834\u89e3\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\u81ea\u52a8\u8d8b\u52bf\u7ebf\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u81ea\u52a8\u8d8b\u52bf\u7ebf\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u667a\u6167\u6f02\u4eae\u7684MACD\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":56527,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[132],"class_list":["post-56525","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\/56525","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=56525"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/56525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/56527"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}