{"id":43707,"date":"2019-01-23T16:43:27","date_gmt":"2019-01-23T08:43:27","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/43707.html"},"modified":"2019-01-23T16:43:27","modified_gmt":"2019-01-23T08:43:27","slug":"%e5%90%8c%e8%8a%b1%e9%a1%bamacd%e8%83%bd%e9%87%8f%e5%88%86%e6%9e%90%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f_%e5%90%8c%e8%8a%b1%e9%a1%ba%e8%b4%a2%e5%af%8c%e4%b8%bb%e5%8a%9b%e7%a0%b4%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=43707","title":{"rendered":"\u540c\u82b1\u987aMACD\u80fd\u91cf\u5206\u6790\u6307\u6807\u516c\u5f0f_\u540c\u82b1\u987a\u8d22\u5bcc\u4e3b\u529b\u7834\u89e3"},"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\u5c0f\u4e91\u8d8b\u52bf\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u540c\u82b1\u987a\u5c0f\u4e91\u8d8b\u52bf\u4e3b\u56fe\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/www.lixiangluntan.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u80a1\u7968\u516c\u5f0f\u5927\u5168<\/a><\/p>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>SHORT:=12;<br \/> LONG:=26;<br \/> M:=9;<br \/> DIFF:EMA(CLOSE,Short) - EMA(CLOSE,Long);<br \/> DEA:EMA(DIFF,M);<br \/> MACD:2*(DIFF-DEA),COLORSTICK;<br \/> MACDHS:=IF(MACD&gt;0 AND MACD&gt;REF(MACD,1),MACD,0);<br \/> MACDHX:=IF(MACD&gt;0 AND MACD&lt;REF(MACD,1),MACD,0);<br \/> MACDLX:=IF(MACD&lt;0 AND MACD&lt;REF(MACD,1),MACD,0);<br \/> MACDLS:=IF(MACD&lt;0 AND MACD&gt;REF(MACD,1),MACD,0);<br \/> \u7ea2\u67f1\u9762\u79ef:=IF(MACD&gt;0,SUM(MACD,BARSLAST(MACD&lt;0)),0),PRECIS2,COLOR0000FF;<br \/> \u7eff\u67f1\u9762\u79ef:=IF(MACD&lt;0,SUM(MACD,BARSLAST(MACD&gt;0)),0),PRECIS2,COLOR006000;<br \/> \/\/MACD\u9762\u79ef:IF(MACD&lt;0,ABS(\u7eff\u67f1\u9762\u79ef),ABS(\u7ea2\u67f1\u9762\u79ef)),NODRAW;<br \/> DRAWTEXT(REF(MACD,1)&gt;0 AND MACD&lt;=0 ,HHV(MACD,4),TOSTRING(REF(\u7ea2\u67f1\u9762\u79ef,1),3)),colorred;<br \/> DRAWTEXT(REF(MACD,1)&lt;0 AND MACD&gt;=0 ,LLV(MACD,4),TOSTRING(REF(ABS(\u7eff\u67f1\u9762\u79ef),1),3)),Color00ff00;<br \/> DRAWTEXT(ISNULL(REFX(&amp;CLOSE,1))=1 AND MACD&lt;0,LLV(MACD,4),TOSTRING(ABS(\u7eff\u67f1\u9762\u79ef),3)),Color004A00;<br \/> DRAWTEXT(ISNULL(REFX(&amp;CLOSE,1))=1 AND MACD&gt;0,HHV(MACD,4),TOSTRING(ABS(\u7ea2\u67f1\u9762\u79ef),3)),colorred;<br \/> DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);<br \/> DEA : EMA(DIFF,M);<br \/> MACD : 2*(DIFF-DEA);<br \/> gj:=MAX(C,O);<br \/> STICKLINE(MACD&gt;0 AND MACD&gt;=REF(MACD,1),0,MACD,2,0),color0000ff;<br \/> STICKLINE(MACD&gt;0 AND MACD&lt;REF(MACD,1),0,MACD,2,0),colorffff00;<br \/> STICKLINE(MACD&lt;0 AND MACD&gt;=REF(MACD,1),0,MACD,2,0),colorff00ff;<br \/> STICKLINE(MACD&lt;0 AND MACD&lt;REF(MACD,1),0,MACD,2,0),color00ff00;<br \/> L4:=LLV(gj,4);<br \/> jl:=(HHV(diff,55)-LLV(diff,55))\/5;<br \/> gt:=dea&gt;REF(dea,1) AND REF(dea,1)&lt;REF(dea,2);<br \/> A1:=BARSLAST(REF(gt,1));<br \/> \u5e95\u80cc\u79bb:=REF(L4,A1+1)&gt;CLOSE AND diff&gt;REF(diff,A1+1) AND gt;<br \/> DRAWLINE(A1=0,DEA,\u5e95\u80cc\u79bb,REF(DEA,A1),0),colorred,LINETHICK2;<br \/> DRAWLINE(\u5e95\u80cc\u79bb,DEA,\u5e95\u80cc\u79bb,REF(DEA,A1),0),colorred,LINETHICK2;<br \/> DRAWTEXT(\u5e95\u80cc\u79bb,REF(DEA,A1)*1.18,' \u5e95\u80cc\u79bb'),COLORFF00FF;<br \/> H4:=HHV(gj,4);<br \/> gt2:=dea&lt;REF(dea,1) AND REF(dea,1)&gt;REF(dea,2);<br \/> A2:=BARSLAST(REF(gt2,1));<br \/> \u9876\u80cc\u79bb:= REF(H4,A2+1)&lt;H4 AND diff&lt;REF(diff,A2+1) AND gt2;<br \/> DRAWLINE(A2=0 ,DEA,\u9876\u80cc\u79bb,REF(DEA,A2),0),colorgreen,LINETHICK2;<br \/> DRAWLINE(\u9876\u80cc\u79bb,DEA,\u9876\u80cc\u79bb,REF(DEA,A2),0),colorgreen,LINETHICK2;<br \/> DRAWTEXT(\u9876\u80cc\u79bb,REF(DEA,A2)*1.18,' \u9876\u80cc\u79bb'),colorgreen;<br \/> TT:=(2*CLOSE+OPEN+HIGH+LOW);<br \/> \u4e3b\u5bfc\u52a8\u80fd:TT\/EMA(TT,4)-1,COLORSTICK;<br \/> FF:=\u4e3b\u5bfc\u52a8\u80fd;<br \/> STICKLINE(FF&gt;0,0,FF,8,0),COLOR33CFDD;<br \/> STICKLINE(FF&gt;0 AND FF&gt;REF(FF,1),0,FF,8,0),COLOR0000CC;<br \/> STICKLINE(FF&lt;=0,0,FF,8,0),COLOR00CC00;<br \/> STICKLINE(FF&lt;=0 AND FF&gt;REF(FF,1),0,FF,8,0),COLORFF9900;<br \/> \u505a\u591a\u4e3b\u5bfc:IFF(FF&gt;0 AND FF&gt;REF(FF,1),FF,0),NODRAW,COLOR0000CC;<br \/> \u83b7\u5229\u56de\u5410:IFF(FF&gt;0 AND FF&lt;=REF(FF,1),FF,0),NODRAW,COLOR33CFDD;<br \/> \u505a\u7a7a\u4e3b\u5bfc:IFF(FF&lt;=0 AND FF&lt;=REF(FF,1),FF,0),NODRAW,COLOR00CC00;<br \/> \u7a7a\u5934\u56de\u8865:IFF(FF&lt;=0 AND FF&gt;REF(FF,1),FF,0),NODRAW,COLORFF9900;<br \/> DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;<br \/> DEA :=EMA(DIFF,9),coloryellow;<br \/> MACD:=2*(DIFF-DEA);<br \/> Zero :0;<br \/> gj:=MAX(C,O);<br \/> STICKLINE(MACD&gt;0 AND MACD&gt;=REF(MACD,1),0,MACD,10,0),color0000ff;<br \/> STICKLINE(MACD&gt;0 AND MACD&lt;REF(MACD,1),0,MACD,10,0),colorffff00;<br \/> STICKLINE(MACD&lt;0 AND MACD&gt;=REF(MACD,1),0,MACD,10,0),colorff00ff;<br \/> STICKLINE(MACD&lt;0 AND MACD&lt;REF(MACD,1),0,MACD,10,0),color00ff00;<\/p>\n<p><img decoding=\"async\" width=\"556\" height=\"445\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/170815\/1_170815191259_1.jpg')\" style=\"cursor:pointer\" alt=\"\u540c\u82b1\u987aMACD\u80fd\u91cf\u5206\u6790\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/JvaqU3.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.lixiangluntan.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u7092\u80a1\u6559\u7a0b<\/a><\/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;\">\u540c\u82b1\u987aMACD\u884c\u60c5\u5224\u65ad\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u540c\u82b1\u987aMACD\u884c\u60c5\u5224\u65ad\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u82b1\u987aMACD\u80fd\u91cf\u5206\u6790\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":43709,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129],"tags":[130],"class_list":["post-43707","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\/43707","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=43707"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/43707\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/43709"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}