{"id":145880,"date":"2019-02-22T16:02:22","date_gmt":"2019-02-22T08:02:22","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/145880.html"},"modified":"2019-02-22T16:02:22","modified_gmt":"2019-02-22T08:02:22","slug":"%e9%be%99%e8%99%8e%e6%a6%9cmacd_%e7%82%92%e8%82%a1%e8%ae%ba%e5%9d%9b%e7%a4%be%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=145880","title":{"rendered":"\u9f99\u864e\u699cMACD_\u7092\u80a1\u8bba\u575b\u793e\u533a"},"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;\">\u7ea2\u725b\u8d77\u6b65\u4e3b\u56fe<\/p>\n<p><strong>\u7ea2\u725b\u8d77\u6b65\u4e3b\u56fe <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u8001\u9f20\u4ed3+\u89c1\u5e95\u4e3b\u56fe\u3001\u9ed1\u725b\u6218\u6cd5\u4e3b\u56fe\u53ca\u9009\u80a1\u3001\u4ef7\u683c\u5929\u68af\u4e3b\u56fe\uff0c\u7bb1\u4f53A\u4e3b\u56fe\uff0cENE\u5b63\u6708\u7ebf\u4e3b\u56fe\uff1a\u795e\u5175\u4e94\u5f69\u4e3b\u56fe\u8ffd\u51fb\u6da8\u505c\u4e3b\u56fe\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;\">\u3010\u80a1\u7968\u8d44\u6e90\u9986\u3011\u80a1\u7968\u8f6f\u4ef6\u7834\u89e3,\u5927\u667a\u6167\u8f6f\u4ef6\u7834\u89e3,\u901a\u8fbe\u4fe1\u8f6f\u4ef6\u7834\u89e3,\u6307\u5357\u9488\u8f6f\u4ef6\u7834\u89e3,\u5927\u667a\u6167\u7b56\u7565\u6295\u8d44\u7ec8\u7aef\u7834\u89e3\u7248,\u5927\u667a\u6167\u6caa\u6df110\u6863L2\u6570\u636e,\u7406\u60f3\u8bba\u575b,\u516c\u5f0f\u6307\u6807\u7f16\u5199\u3002<\/p>\n<\/blockquote>\n<p><span class=\"toubu_gg\"><script type=\"text\/javascript\">go23_as(\"s808\");<\/script><\/span> <\/p>\n<p><strong>\u9f99\u864e\u699cMACD <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u7ea2\u8272MACD\u3001\u5b9e\u6218\u578bMACD\u3001MACD\u4e0a\u4e3b\u56fe\uff0cMACD\u96f6\u8f74\u4e3b\u56fe\uff0cMACD\u4ea4\u6613\u4e3b\u56fe\uff1a\u7cbe\u51c6\u7684\u53d8\u5f02MACDMACD\u4ed3\u4f4d\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><strong>\u901a\u8fbe\u4fe1\u9f99\u864e\u699cMACD\u6307\u6807\u516c\u5f0f<\/strong><\/p>\n<p>DIF2:EMA(CLOSE,8) - EMA(CLOSE,57),COLORLICYAN;<br \/>DEA2:EMA(DIF2,8),COLORWHITE;<br \/>MACD:2*(DIF2-DEA2),COLORSTICK;<br \/>IF(DIF2&gt;REF(DIF2,1),DIF2,DRAWNULL),COLORMAGENTA,LINETHICK2;<br \/>IF(DIF2&gt;DEA2,DEA2,DRAWNULL),COLORYELLOW,LINETHICK2;<br \/>{\u80a1\u7968\u516c\u5f0f\u7f51:www.lixiangluntan.com\u4e13\u4e1a\u7834\u89e3\u5b98\u65b9\u9ad8\u7aef\u80a1\u7968\u8f6f\u4ef6--\u516c\u5f0f\u7f16\u5199\u4ea4\u6d41--\u52a0QQ751161480--}<br \/>STICKLINE(MACD&lt;REF(MACD,1) AND MACD&gt;0,0,MACD,0,0),COLORGREEN;<br \/>STICKLINE(MACD&gt;REF(MACD,1) AND MACD&lt;0,0,MACD,0,0),COLORMAGENTA;<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&lt;0,0,MACD,0,0),COLORLIBLUE;<br \/>TYP:=(HIGH+LOW+CLOSE)\/3;<br \/>CCI:(TYP-MA(TYP,14))\/(0.015*AVEDEV(TYP,14)),NODRAW;<br \/>DRAWICON(CROSS(50,CCI),DEA2,2);<br \/>DRAWICON(CCI&gt;150,DEA2,12);<br \/>DRAWTEXT_FIX(1,0.0,0,0,STRCAT('\u5343\u80a1\u5343\u8bc4\uff1a',EXTERNSTR(0,1))),COLORRED;<br \/>DRAWTEXT_FIX(1,0.6,0,0,STRCAT('\u4e1a\u7ee9\u9884\u62a5\uff1a',EXTERNSTR(0,14))),COLORYELLOW;<br \/>DRAWTEXT_FIX(1,0.0,0.2,0,STRCAT('\u5e74\u62a5\u4e1a\u7ee9\uff1a',EXTERNSTR(0,8))),COLORYELLOW;<br \/>DRAWTEXT_FIX(1,0.6,0.2,0,STRCAT('\u89e3\u7981\u65e5\u671f\uff1a',EXTERNSTR(0,15))),COLORBLUE;<br \/>DRAWTEXT_FIX(1,0.0,0.4,0,STRCAT('\u4e2d\u62a5\u4e1a\u7ee9\uff1a',EXTERNSTR(0,9))),COLORBLUE;<br \/>DRAWTEXT_FIX(1,0.6,0.4,0,STRCAT('\u4e3b\u9898\u6295\u8d44\uff1a',EXTERNSTR(0,10))),COLORBROWN;<br \/>DRAWTEXT_FIX(1,0.0,0.6,0,STRCAT('\u673a\u6784\u8bc4\u7ea7\uff1a',EXTERNSTR(0,11))),COLORCYAN;<br \/>DRAWTEXT_FIX(1,0.3,0.6,0,STRCAT('\u667a\u80fd\u8bca\u65ad\uff1a',EXTERNSTR(0,12))),COLORRED;<br \/>DRAWTEXT_FIX(1,0.0,0.8,0,STRCAT('\u6562\u6b7b\u961f\u5e2d\u4f4d\uff1a',EXTERNSTR(0,13))),COLORLIMAGENTA;<\/p>\n<\/p>\n<p><strong>\u901a\u8fbe\u4fe1\u6da8\u8dcc\u8d85\u524dMACD\u6307\u6807\u516c\u5f0f<\/strong><\/p>\n<p>0,COLORGRAY;<br \/>DIF12:=(EMA(CLOSE,12)-EMA(CLOSE,26))\/((EMA(CLOSE,12)+EMA(CLOSE,26))\/2)*1000;<br \/>DEA12:=EMA(DIF12,9);<br \/>KDIF12:=3*(DIF12-DEA12);<br \/>KDEA12:=SMA(KDIF12,5,2);<br \/>\u5fae\u5206DIF:=KDIF12*5,COLORWHITE,LINETHICK1;<br \/>\u5fae\u5206DEA:=KDEA12*5,COLORYELLOW,LINETHICK1;<br \/>MACD2:2*(\u5fae\u5206DIF-\u5fae\u5206DEA),COLORBLACK;<br \/>MAMACD:=MA(MACD2,3),,COLORBLACK;<br \/>STICKLINE(MACD2&gt;REF(MACD2,1) AND MACD2&gt;0,0,MACD2,1,0),COLORRED;<br \/>STICKLINE(MACD2&lt;=REF(MACD2,1) AND MACD2&gt;0,0,MACD2,1,0),COLORYELLOW;<br \/>STICKLINE(MACD2&lt;REF(MACD2,1) AND MACD2&lt;0,0,MACD2,1,0),COLORCYAN;<br \/>STICKLINE(MACD2&gt;=REF(MACD2,1) AND MACD2&lt;0,0,MACD2,1,0),COLORMAGENTA;<br \/>STICKLINE(MAMACD&lt;1*REF(MAMACD,1), MAMACD, MACD2 ,3, 0),COLORBLUE;<br \/>STICKLINE(MAMACD&gt;1*REF(MAMACD,1), MAMACD, MACD2 , 3, 0),COLORLIRED;<br \/>\u5fae\u5206DIF2:KDIF12*5,COLORRED,LINETHICK1;<br \/>\u5fae\u5206DEA2:KDEA12*5,COLORMAGENTA,LINETHICK1;<br \/>NOTEXT\u5f3a:IF(\u5fae\u5206DIF2&lt;MA(\u5fae\u5206DIF2,2),\u5fae\u5206DIF2,DRAWNULL),COLORGREEN;<br \/>NOTEXT\u5f31:IF(\u5fae\u5206DEA2&lt;MAX(\u5fae\u5206DEA2,REF(\u5fae\u5206DEA2,1)),\u5fae\u5206DEA2,DRAWNULL),COLORYELLOW;<br \/>DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*300,COLORWHITE,DOTLINE;<br \/>DEA:=EMA(DIF,9),COLORYELLOW,DOTLINE;<br \/>DIF\u666e:=EMA(CLOSE,12)-EMA(CLOSE,26);<br \/>DEA\u666e:=EMA(DIF,9);<br \/>MACD:=(DIF\u666e-DEA\u666e)*2,COLORSTICK;<br \/>A1:=BARSLAST(REF(CROSS(\"MACD.DIF\",\"MACD.DEA\"),1));<br \/>B1:=REF(C,A1+1)&gt;C AND REF(\"MACD.DIF\",A1+1)&lt;\"MACD.DIF\" AND CROSS(\"MACD.DIF\",\"MACD.DEA\");<br \/>{DRAWTEXT(B1&gt;0,DIF*0.7,'\u2199MACD\u5e95\u80cc'),COLORFF00FF; }<br \/>C1:=BARSLAST(REF(CROSS(\"MACD.DEA\",\"MACD.DIF\"),1));<br \/>D1:=REF(C,C1+1)&lt;C AND REF(\"MACD.DIF\",C1+1)&gt;\"MACD.DIF\" AND CROSS(\"MACD.DEA\",\"MACD.DIF\");<br \/>{DRAWTEXT(D1&gt;0,DIF*1.2,'\u2199MACD\u9876\u79bb'),COLORBLUE;}{MACD\u9876\u80cc\u79bb}<br \/>JC := DEA-DIF;<br \/>\u7eff\u67f1\u9762\u79ef:=IF(MACD&lt;0,SUM(MACD,BARSLAST(JC&lt;0)),0);<br \/>\u7ea2\u67f1\u9762\u79ef:=IF(MACD&gt;0,SUM(MACD,BARSLAST(JC&gt;0)),0);<br \/>\u672c\u6b21\u6700\u4f4e\u4ef7:=LLV(L,BARSLAST(JC&lt;0));<br \/>\u672c\u6b21\u6700\u9ad8\u4ef7:=HHV(H,BARSLAST(JC&gt;0));<br \/>X1:=IF (MACD&lt;0,BARSLAST(CROSS(DIF,DEA)),0);<br \/>\u524d\u6b21\u7eff\u67f1\u9762\u79ef:=REF(\u7eff\u67f1\u9762\u79ef,X1+1);<br \/>\u524d\u6b21\u6700\u4f4e\u4ef7:=REF(\u672c\u6b21\u6700\u4f4e\u4ef7,X1+1);<br \/>Y1:=IF((\u7eff\u67f1\u9762\u79ef&lt;0 AND ABS(\u7eff\u67f1\u9762\u79ef)&lt;ABS(\u524d\u6b21\u7eff\u67f1\u9762\u79ef)<br \/>AND \u672c\u6b21\u6700\u4f4e\u4ef7&lt;\u524d\u6b21\u6700\u4f4e\u4ef7 ),1,0);<br \/>RS1:= MACD&lt;0 AND REF(MACD,1)&lt;0 AND C&lt;\u524d\u6b21\u6700\u4f4e\u4ef7<br \/>AND ABS(\u7eff\u67f1\u9762\u79ef)&lt;ABS(\u524d\u6b21\u7eff\u67f1\u9762\u79ef) AND ABS(MACD)&lt;ABS(REF(MACD,1));<br \/>\u5e95\u80cc\u9a70: IF (CROSS(DIF,DEA),REF(Y1,1),0);<br \/>DRAWTEXT(\u5e95\u80cc\u9a70,DIF*0.8,'\u2199\u79ef\u5e95\u80cc'),COLOR00FFFF;<br \/>X2:=IF (MACD&gt;0,BARSLAST(CROSS(DEA,DIF)),0);<br \/>\u524d\u6b21\u7ea2\u67f1\u9762\u79ef:=REF(\u7ea2\u67f1\u9762\u79ef,X2+1);<br \/>\u524d\u6b21\u6700\u9ad8\u4ef7:=REF(\u672c\u6b21\u6700\u9ad8\u4ef7,X2+1);<br \/>Y2:=IF((\u7ea2\u67f1\u9762\u79ef&gt;0 AND \u7ea2\u67f1\u9762\u79ef&lt;\u524d\u6b21\u7ea2\u67f1\u9762\u79ef AND \u672c\u6b21\u6700\u9ad8\u4ef7&gt;\u524d\u6b21\u6700\u9ad8\u4ef7 ),1,0);<br \/>RS2:= MACD&gt;0 AND REF(MACD,1)&gt;0 AND C&gt;\u524d\u6b21\u6700\u9ad8\u4ef7 AND ABS(\u7ea2\u67f1\u9762\u79ef)&lt;ABS(\u524d\u6b21\u7ea2\u67f1\u9762\u79ef) AND ABS(MACD)&lt;ABS(REF(MACD,1));<br \/>\u9876\u80cc\u9a70:= IF (CROSS(DEA,DIF),REF(Y2,1),0);<br \/>DRAWTEXT(\u9876\u80cc\u9a70,DIF*0.8,'\u2199\u9876\u5e95\u80cc'),COLORGREEN;<br \/>MACD\u9ad8:=HHV(MACD,5);<br \/>E:=REF(C,C1+1)&gt;C AND DEA&gt;0 AND REF(MACD\u9ad8,C1+1)&lt;MACD\u9ad8 AND CROSS(\"MACD.DEA\",\"MACD.DIF\") ;<br \/>{DRAWTEXT(E&gt;0,DIF*1.1,'\u2199\u67f1\u9876\u80cc'),COLORRED;}<br \/>F:=REF(C,A1+1)&gt;C AND DEA&lt;0 AND REF(MACD\u9ad8,A1+1)&lt;MACD\u9ad8 AND CROSS(\"MACD.DIF\",\"MACD.DEA\");<br \/>{DRAWTEXT(F&gt;0,DIF*0.9,'\u2199\u67f1\u5e95\u80cc'),COLORYELLOW;}<\/p>\n<\/p>\n<\/p>\n<p>MACD+\u795e\u5947\u6570\u5b57+\u6316\u5751MACD\u548cKDJ\u7ec4\u5408\uff0c\u91cf\u5316MACD\u4e3b\u56fe\u3001\u65e0\u949d\u5316\u6ede\u540e\u7684MACD\uff0c\u6ce2\u6bb5MACD\u4e3b\u56fe\u590d\u5408MACD\uff0cMACD\u6c34\u4e0b\u4e09\u91d1\u53c9\u80a1\u4ef7\u53cc\u80cc\u79bb\u526f\u56fe\u3002<\/p>\n<p><script type=\"text\/javascript\">go23_as(\"s809\");<\/script> <\/p>\n<div class=\"pages_content\" style=\"width:630px;*margin-top:10px;padding-right:0px\">\n<ul><\/ul>\n<\/div>\n<p>{\u80a1\u7968\u516c\u5f0f\u7f51:www.lixiangluntan.com\u4e13\u4e1a\u7834\u89e3\u5b98\u65b9\u9ad8\u7aef\u80a1\u7968\u8f6f\u4ef6--\u516c\u5f0f\u7f16\u5199\u4ea4\u6d41--\u52a0QQ751161480--}<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;\">\u4f4e\u4f4d\u653e\u6293\u9ed1\u9a6c<\/p>\n<p><strong>\u4f4e\u4f4d\u653e\u6293\u9ed1\u9a6c <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u9ed1\u9a6c\u98d9\u5347\u9009\u80a1\u3001\u9ed1\u9a6c\u8d77\u98de\u9009\u80a1\u3001\u8d85\u7ea7\u5927\u9ed1\u9a6c\uff0c\u5168\u7cfb\u9ed1\u9a6c\u4e3b\u56fe\uff0c\u9ed1\u9a6c\u9884\u9876\uff1a\u9ed1\u9a6c\u663e\u5f62\u53cd\u5f39\u9ed1\u9a6c\u3002<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p><strong>\u9f99\u864e\u699cMACD <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u7ea2\u8272MACD\u3001\u5b9e\u6218\u578bMACD\u3001MACD\u4e0a\u4e3b\u56fe\uff0cMACD\u96f6\u8f74\u4e3b\u56fe\uff0cMACD\u4ea4\u6613\u4e3b\u56fe\uff1a\u7cbe\u51c6\u7684\u53d8\u5f02MACDMACD\u4ed3\u4f4d\u63a7\u5236\u3002<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[191],"tags":[192],"class_list":["post-145880","post","type-post","status-publish","format-standard","hentry","category-wflgsym","tag-192"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/145880","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=145880"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/145880\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}