{"id":130716,"date":"2019-04-20T11:37:02","date_gmt":"2019-04-20T03:37:02","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/130716.html"},"modified":"2019-04-20T11:37:02","modified_gmt":"2019-04-20T03:37:02","slug":"%e7%bc%a0%e8%ae%bamacd_ace%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=130716","title":{"rendered":"\u7f20\u8bbaMACD_ace\u7b56\u7565"},"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;\">\u91cf\u6bd4\u6f6e<\/p>\n<p><strong>\u91cf\u6bd4\u6f6e <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u91cf\u6bd4\u6362\u624b\u6293\u725b\u3001\u7c7b\u4f3c\u4e8eDDX\u7684\u6d41\u91cf\u6bd4\u3001\u91cf\u6bd4\u5f69\u67f1\uff0c\u9ec4\u5143\u5e05\u4e3b\u56fe\uff0c\u91cf\u6bd4\u7684\u5e94\u7528\uff1a\u91cf\u6bd4\u64d2\u5927\u725b\u4e03\u5f69\u91cf\u6bd4\u7ecf\u5178\u6210\u4ea4\u91cf\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\u7b56\u7565\u6295\u8d44\u7834\u89e3,\u56fe\u7247\u514d\u8d39\u4e0b\u8f7d,\u7406\u60f3\u80a1\u7968\u6280\u672f\u8bba\u575b,\u8d22\u7ecf\u80a1\u7968\u8bba\u575b,\u7092\u80a1\u8bba\u575b\u793e\u533a,\u80a1\u7968\u8f6f\u4ef6,\u80a1\u7968\u516c\u5f0f,\u6e90\u7801\u4ea4\u6d41,\u6307\u6807\u516c\u5f0f,\u7092\u80a1\u4e66\u7c4d,\u5206\u6790\u5bb6\u516c\u5f0f\u7f51,\u80a1\u65c1\u7f51,\u80a1\u7968\u914d\u8d44\u3002<\/p>\n<\/blockquote>\n<p><span class=\"toubu_gg\"><script type=\"text\/javascript\">go23_as(\"s808\");<\/script><\/span> <\/p>\n<p><strong>\u7f20\u8bbaMACD <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u7ea2\u8272MACD\u3001\u5b9e\u6218\u578bMACD\u3001MACD\u4e0a\u4e3b\u56fe\uff0c\u65e0\u949d\u5316\u6ede\u540e\u7684MACD\uff0c\u7f20\u8bba\u5206\u578b\u9009\u80a1\uff1a\u673a\u68b0\u91cf\u5316MACD\u62d0\u70b9MACD\u7ed3\u5408RSI\u548cKDJ\u4e3b\u56fe\u3002<\/p>\n<\/p>\n<p><strong>\u901a\u8fbe\u4fe1\u7f20\u8bbaMACD\u6307\u6807\u516c\u5f0f<\/strong><\/p>\n<p>SHORT:=12;<br \/>LONG:=26;<br \/>MID:=9;<br \/>TSARROW:=1;<br \/>DIFF:=EMA(CLOSE*100,SHORT)-EMA(CLOSE*100,LONG);<br \/>DEA:=EMA(DIFF,MID);<br \/>MACD2:=(DIFF - DEA)*2;<br \/>DIF:DIFF;<br \/>DEF:DEA;<br \/>MACD:MACD2,NODRAW;<br \/>\u83b7\u5229\u6bd4:WINNER(C),NODRAW;<br \/>STICKLINE((MACD2&gt;=0),0,MACD2,0,1),COLORRED;<br \/>STICKLINE(((MACD2&gt;=0) AND (MACD2 &lt; REF(MACD2,1))),0,MACD2,0,0),COLORMAGENTA;<br \/>STICKLINE((MACD2&lt;0),0,MACD2,0,0),COLORGREEN;<br \/>STICKLINE(((MACD2&lt;0) AND (MACD2 &gt; REF(MACD2,1))),0,MACD2,0,1),COLORWHITE;<br \/>DRAWICON(LONGCROSS(CLOSE,MA(CLOSE,5),17),MACD2,1);<br \/>DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);<br \/>\u4f4e\u4f4d\u91d1\u53c9:=CROSS(DIFF,DEA) AND DIFF&lt;-0.1;<br \/>JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA&gt;=0));<br \/>\u4e8c\u6b21\u91d1\u53c9:=CROSS(DIFF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=2,21)=1;<br \/>DRAWTEXT(\u4e8c\u6b21\u91d1\u53c9,0,'\u4e8c\u6b21\u91d1\u53c9');<br \/>\u4e09\u6b21\u91d1\u53c9:=CROSS(DIFF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=3,60)=1;<br \/>DRAWTEXT(\u4e09\u6b21\u91d1\u53c9,0,'\u4e09\u6b21\u91d1\u53c9');<br \/>A1:=IF(MACD2&gt;0,1,-1);<br \/>A2:=REF(A1,1);<br \/>A3:=A1*A2;<br \/>A4:=BARSLAST(A3&lt;0);<br \/>A5:=A4+1;<br \/>\u7d2f\u8ba1\u9762\u79ef:SUM(MACD2,A5),NODRAW;<br \/>\u5e73\u5747\u529b\u5ea6:SUM(MACD2,A5)\/A5,NODRAW;<br \/>0,DOTLINE;<br \/>WK:=\"KD.K#WEEK\"(9,3,3);<br \/>WD:=\"KD.D#WEEK\"(9,3,3);<br \/>DK:=\"KD.K#DAY\"(9,3,3);<br \/>DD:=\"KD.D#DAY\"(9,3,3);<br \/>DRAWICON(CROSS(WK,WD) AND WK&lt;70 AND PERIOD&gt;4,LLV(MACD2,30),9);<br \/>DRAWICON(CROSS(DK,DD) AND DK&lt;70 AND PERIOD&gt;4,LLV(MACD2,10),10);<br \/>TJ:=MACD2&gt;0;T:=MACD2&lt;0;<br \/>A:=LLV(MACD2,50)=MACD2;<br \/>DRAWICON(A AND FILTERX(A,20), MACD2,1);<br \/>DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW;<br \/>DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN;<br \/>DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN;<\/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\u7f20\u8bba\u8d8b\u52bf\uff0cMACD\u96f6\u8f74\u4e3b\u56fe\u673a\u68b0\u91cf\u5316MACD\u8d8b\u52bf\uff0cMACD\u9876\u5e95\u949d\u5316\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--}<\/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\u540c\u82b1\u987a\u5b9e\u65f6\u6e2f\u80a1\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u4e3b\u529b\u7834\u89e3,\u5927\u667a\u6167\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u4e13\u4e1a\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u7814\u7a76\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u8d85\u8d62\u7248\u7834\u89e3,\u80a1\u7968\u516c\u5f0f,\u80a1\u7968\u6307\u6807\u516c\u5f0f,\u80a1\u7968\u516c\u5f0f\u5927\u5168,\u6307\u5357\u9488\u8f6f\u4ef6\u7834\u89e3,\u7092\u80a1\u4e66\u7c4d,k\u7ebf\u56fe\u600e\u4e48\u770b,\u80a1\u7968k\u7ebf\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;\">MA13\u4e3b\u5347\u9009\u80a1<\/p>\n<p><strong>MA13\u4e3b\u5347\u9009\u80a1 <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u82cf\u79e6\u80cc\u5251\u4e3b\u56fe\u53ca\u9009\u80a1\u3001MACD+\u795e\u5947\u6570\u5b57+\u6316\u5751\u3001\u8d62\u5229\u7ffb\u756a\u9009\u80a1\uff0c\u6da8\u505c\u521d\u73b0\u9009\u80a1\uff0cMACD\u98ce\u4e91\uff1a\u542f\u52a8\u4e70\u70b9\u9009\u80a1\u8d85\u725b\u5e95\u90e8\u542f\u52a8\u70b9\u9009\u80a1\u3002<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p><strong>\u7f20\u8bbaMACD <\/strong>\u6307\u6807\u516c\u5f0f\uff1a\u7ea2\u8272MACD\u3001\u5b9e\u6218\u578bMACD\u3001MACD\u4e0a\u4e3b\u56fe\uff0c\u65e0\u949d\u5316\u6ede\u540e\u7684MACD\uff0c\u7f20\u8bba\u5206\u578b\u9009\u80a1\uff1a\u673a\u68b0\u91cf\u5316MACD\u62d0\u70b9MACD\u7ed3\u5408RSI\u548cKDJ\u4e3b\u56fe\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-130716","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\/130716","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=130716"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/130716\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}