{"id":80397,"date":"2019-09-11T14:01:51","date_gmt":"2019-09-11T06:01:51","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/80397.html"},"modified":"2019-09-11T14:01:51","modified_gmt":"2019-09-11T06:01:51","slug":"%e6%8a%8a%e5%87%86%e7%a1%ae%e6%97%a0%e6%9c%aa%e6%9d%a5macd%e5%85%ac%e5%bc%8f%e6%94%b9%e7%bc%96%e6%88%90%e5%a4%a7%e6%99%ba%e6%85%a7%e4%bd%bf%e7%94%a8_%e7%82%92%e8%82%a1%e4%b9%a6%e7%b1%8d","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=80397","title":{"rendered":"\u628a\u51c6\u786e\u65e0\u672a\u6765MACD\u516c\u5f0f\u6539\u7f16\u6210\u5927\u667a\u6167\u4f7f\u7528_\u7092\u80a1\u4e66\u7c4d"},"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;\">macd\u96f6\u8f74\u4e0a\u91d1\u53c9\u9009\u80a1\u516c\u5f0f<\/p>\n<p>macd\u96f6\u8f74\u4e0a\u91d1\u53c9\u9009\u80a1\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 style=\"color:red\">\u7f16\u5199\u6761\u4ef6\uff1a<\/p>\n<\/p>\n<p style=\"color:red\">\u7f16\u5199\u65b9\u6cd5\uff1a<\/p>\n<p><span style=\"color: rgb(255, 0, 0); \">&nbsp;\u7f51\u53cb\u6c42\u52a9\uff1a<\/span><\/p>\n<div>\n DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);<br \/>\n <br \/> DEAEA1:=EMA(DIFIF1,9);<br \/>\n <br \/> MACD1:=2*(DIFIF1-DEAEA1),STICK;<br \/>\n <br \/> MACD2:=EMA(MACD1,3);<br \/>\n <br \/> STICKLINE(MACD1&gt;MACD2 AND MACD1&gt;0,0,MACD1,1,0),COLORRED;<br \/>\n <br \/> STICKLINE(MACD1&gt;MACD2 AND MACD1&lt;0,0,MACD1,1,0),COLORGREEN;<br \/>\n <br \/> STICKLINE(MACD1&lt;MACD2,0,MACD1,1,0),COLORCBCBC0;<br \/>\n <br \/> STICKLINE(MACD1&gt;=0 OR MACD1&lt;=0,0,0,50,1),COLORWHITE;<br \/>\n <br \/> DIFIF1,COLOR33FF33,LINETHICK2;<br \/>\n <br \/> DEAEA1,COLORYELLOW,LINETHICK2;<br \/>\n <br \/> MACD:MACD1,NODRAW,COLORMAGENTA;<br \/>\n <br \/> \u5f3a:IF(DIFIF1&gt;=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;<br \/>\n <br \/> \u5f31:=IF(DEAEA1&gt;=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;<br \/>\n <br \/> DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);<br \/>\n <br \/> DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);<br \/>\n <br \/> A1:=BARSLAST(REF(CROSS(\"MACD.DIF\",\"MACD.DEA\"),1));<br \/>\n <br \/> B1:=REF(C,A1+1)&gt;C AND REF(\"MACD.DIF\",A1+1)&lt;\"MACD.DIF\" AND CROSS(\"MACD.DIF\",\"MACD.DEA\");<br \/>\n <br \/> DRAWTEXT(B1&gt;0,-0.8,'MACD\u5e95\u80cc'),COLORFF00FF;<br \/>\n <br \/> A2:=BARSLAST(REF(CROSS(\"KDJ.K\",\"KDJ.D\"),1));<br \/>\n <br \/> B2:=REF(C,A2+1)&gt;C AND REF(\"KDJ.K\",A2+1)&lt;\"KDJ.K\" AND CROSS(\"KDJ.K\",\"KDJ.D\");<br \/>\n <br \/> DRAWTEXT(B2,-0.6,'KDJ\u5e95\u79bb'),COLORYELLOW;{KDJ\u5e95\u80cc\u79bb};<br \/>\n <br \/> A3:=BARSLAST(REF(CROSS(\"RSI.RSI1\",\"RSI.RSI2\"),1));<br \/>\n <br \/> B3:=REF(C,A3+1)&gt;C AND REF(\"RSI.RSI1\",A3+1)&lt;\"RSI.RSI1\" AND CROSS(\"RSI.RSI1\",\"RSI.RSI2\");<br \/>\n <br \/> DRAWTEXT(B3&gt;0,-0.3,'RSI\u5e95\u79bb'),COLORCYAN;{RSI\u5e95\u80cc\u79bb};<br \/>\n <br \/> C1:=BARSLAST(REF(CROSS(\"MACD.DEA\",\"MACD.DIF\"),1));<br \/>\n <br \/> D1:=REF(C,C1+1)&lt;C AND REF(\"MACD.DIF\",C1+1)&gt;\"MACD.DIF\" AND CROSS(\"MACD.DEA\",\"MACD.DIF\");<br \/>\n <br \/> DRAWTEXT(D1&gt;0,0.4,'MACD\u9876\u79bb'),COLORBLUE;{MACD\u9876\u80cc\u79bb}<br \/>\n <br \/> C2:=BARSLAST(REF(CROSS(\"KDJ.D\",\"KDJ.K\"),1));<br \/>\n <br \/> D2:=REF(C,C2+1)&lt;C AND REF(\"KDJ.K\",C2+1)&gt;\"KDJ.K\" AND CROSS(\"KDJ.D\",\"KDJ.K\");<br \/>\n <br \/> DRAWTEXT(D2&gt;0,0.6,'KDJ\u9876\u79bb'),COLORLIGRAY;{KDJ\u9876\u80cc\u79bb}<br \/>\n <br \/> C3:=BARSLAST(REF(CROSS(\"RSI.RSI2\",\"RSI.RSI1\"),1));<br \/>\n <br \/> D3:=REF(C,C3+1)&lt;C AND REF(\"RSI.RSI1\",C3+1)&gt;\"RSI.RSI1\" AND CROSS(\"RSI.RSI2\",\"RSI.RSI1\"); DRAWTEXT(D3&gt;0,0.8,'RSI\u9876\u79bb'),COLORGREEN;{RSI\u9876\u80cc\u79bb}; <\/p>\n<p>&nbsp;<\/p>\n<p>\u53e6\u5916\u8bf7\u6c42\u8001\u5e08\u63d0\u53d6\u7ea2\u8272\u7bad\u5934\u51fa\u73b0\u65f6\u7684\u9009\u80a1\u548c\u9884\u8b66\u516c\u5f0f\u3002\u591a\u8c22\u4e86\uff01\uff01\uff01\uff01\uff01<\/p>\n<\/div>\n<div>\n &nbsp;\n<\/div>\n<div>\n <span style=\"color: rgb(255, 0, 0); \">\u89e3\u7b54\u5982\u4e0b\uff1a<\/span>\n<\/div>\n<div>\n DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);<br \/>\n <br \/> DEAEA1:=EMA(DIFIF1,9);<br \/>\n <br \/> MACD1:=2*(DIFIF1-DEAEA1);<br \/>\n <br \/> MACD2:=EMA(MACD1,3);<br \/>\n <br \/> STICKLINE(MACD1&gt;MACD2 AND MACD1&gt;0,0,MACD1,1,0),COLORRED;<br \/>\n <br \/> STICKLINE(MACD1&gt;MACD2 AND MACD1&lt;0,0,MACD1,1,0),COLORGREEN;<br \/>\n <br \/> STICKLINE(MACD1&lt;MACD2,0,MACD1,1,0),COLORCBCBC0;<br \/>\n <br \/> STICKLINE(MACD1&gt;=0 OR MACD1&lt;=0,0,0,50,1),COLORWHITE;<br \/>\n <br \/> DIFIF1,COLOR33FF33,LINETHICK2;<br \/>\n <br \/> DEAEA1,COLORYELLOW,LINETHICK2;<br \/>\n <br \/> MACD:MACD1,linethick0,COLORMAGENTA;<br \/>\n <br \/> DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);<br \/>\n <br \/> DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);<br \/>\n <br \/> A1:=BARSLAST(REF(CROSS(\"MACD.DIF\",\"MACD.DEA\"),1));<br \/>\n <br \/> B1:=REF(C,A1+1)&gt;C AND REF(\"MACD.DIF\",A1+1)&lt;\"MACD.DIF\" AND CROSS(\"MACD.DIF\",\"MACD.DEA\");<br \/>\n <br \/> DRAWTEXT(B1&gt;0,-0.8,'MACD\u5e95\u80cc'),COLORFF00FF;<br \/>\n <br \/> A2:=BARSLAST(REF(CROSS(\"KDJ.K\",\"KDJ.D\"),1));<br \/>\n <br \/> B2:=REF(C,A2+1)&gt;C AND REF(\"KDJ.K\",A2+1)&lt;\"KDJ.K\" AND CROSS(\"KDJ.K\",\"KDJ.D\");<br \/>\n <br \/> DRAWTEXT(B2,-0.6,'KDJ\u5e95\u79bb'),COLORYELLOW;{KDJ\u5e95\u80cc\u79bb};<br \/>\n <br \/> A3:=BARSLAST(REF(CROSS(\"RSI.RSI1\",\"RSI.RSI2\"),1));<br \/>\n <br \/> B3:=REF(C,A3+1)&gt;C AND REF(\"RSI.RSI1\",A3+1)&lt;\"RSI.RSI1\" AND CROSS(\"RSI.RSI1\",\"RSI.RSI2\");<br \/>\n <br \/> DRAWTEXT(B3&gt;0,-0.3,'RSI\u5e95\u79bb'),COLORCYAN;{RSI\u5e95\u80cc\u79bb};<br \/>\n <br \/> C1:=BARSLAST(REF(CROSS(\"MACD.DEA\",\"MACD.DIF\"),1));<br \/>\n <br \/> D1:=REF(C,C1+1)&lt;C AND REF(\"MACD.DIF\",C1+1)&gt;\"MACD.DIF\" AND CROSS(\"MACD.DEA\",\"MACD.DIF\");<br \/>\n <br \/> DRAWTEXT(D1&gt;0,0.4,'MACD\u9876\u79bb'),COLORBLUE;{MACD\u9876\u80cc\u79bb}<br \/>\n <br \/> C2:=BARSLAST(REF(CROSS(\"KDJ.D\",\"KDJ.K\"),1));<br \/>\n <br \/> D2:=REF(C,C2+1)&lt;C AND REF(\"KDJ.K\",C2+1)&gt;\"KDJ.K\" AND CROSS(\"KDJ.D\",\"KDJ.K\");<br \/>\n <br \/> DRAWTEXT(D2&gt;0,0.6,'KDJ\u9876\u79bb'),COLORGRAY;{KDJ\u9876\u80cc\u79bb}<br \/>\n <br \/> C3:=BARSLAST(REF(CROSS(\"RSI.RSI2\",\"RSI.RSI1\"),1));<br \/>\n <br \/> D3:=REF(C,C3+1)&lt;C AND REF(\"RSI.RSI1\",C3+1)&gt;\"RSI.RSI1\" AND CROSS(\"RSI.RSI2\",\"RSI.RSI1\"); DRAWTEXT(D3&gt;0,0.8,'RSI\u9876\u79bb'),COLORGREEN;{RSI\u9876\u80cc\u79bb}; <\/p>\n<p>\u5927\u667a\u6167\u6539\u4e86\u901a\u8fc7\u4e86 \u8bd5\u8bd5\u770b<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>{\u80a1\u7968\u8d44\u6e90\u9986:www.lixiangluntan.com\u4e13\u4e1a\u548c\u8c10\u9ad8\u7aef\u7092\u80a1\u8f6f\u4ef6--\u516c\u5f0f\u7f16\u5199\u4ea4\u6d41--\u52a0QQ751161480--}<\/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\u7092\u80a1\u6559\u7a0b\u3001\u9ed1\u9a6c\u80a1\u7968\u3001\u80a1\u7968\u8d44\u8baf\u3001\u671f\u8d27\u5916\u6c47\uff0c\u5927\u667a\u6167\u6caa\u6df110\u6863\u7834\u89e3,\u9ad8\u6210\u529f\u7387\u80a1\u7968\u6307\u6807,\u7b56\u7565\u6295\u8d44\u7834\u89e3,\u8d22\u7ecf\u80a1\u7968\u8bba\u575b,\u4e1c\u65b9\u8d22\u5bcc\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u4e13\u4e1a\u7834\u89e3\u7248\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;\">\u5c06\u5343\u94a7\u8001\u5e08\u7684\u201c\u5343\u94a7DDX\u201d\u201c\u5343\u94a7DDY\u201d\u6539\u5199\u4e3a\u9009\u80a1\u516c\u5f0f<\/p>\n<p>\u5c06\u5343\u94a7\u8001\u5e08\u7684\u201c\u5343\u94a7DDX\u201d\u201c\u5343\u94a7DDY\u201d\u6539\u5199\u4e3a\u9009\u80a1\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u628a\u51c6\u786e\u65e0\u672a\u6765MACD\u516c\u5f0f\u6539\u7f16\u6210\u5927\u667a\u6167\u4f7f\u7528<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[180],"class_list":["post-80397","post","type-post","status-publish","format-standard","hentry","category-gsbxdy","tag-180"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/80397","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=80397"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/80397\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}