{"id":37342,"date":"2020-02-01T23:28:54","date_gmt":"2020-02-01T15:28:54","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/37342.html"},"modified":"2020-02-01T23:28:54","modified_gmt":"2020-02-01T15:28:54","slug":"%e9%a3%9e%e7%8b%90macd%e8%bd%ac%e6%8a%98%e4%bb%b7%e4%bd%8d%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f_%e5%a4%a7%e6%99%ba%e6%85%a7gde%e7%a0%b4%e8%a7%a3%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=37342","title":{"rendered":"\u98de\u72d0MACD\u8f6c\u6298\u4ef7\u4f4d\u6307\u6807\u516c\u5f0f_\u5927\u667a\u6167gde\u7834\u89e3\u7248"},"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;\">\u98de\u72d0\u91d1\u53e3\u7389\u8a00\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u98de\u72d0\u91d1\u53e3\u7389\u8a00\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/www.lixiangluntan.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u9ed1\u9a6c\u80a1\u7968<\/a><\/p>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<div class=\"gsdxg\">\n<\/div>\n<p>input: P(19,15,100), S(7,5,140), M(9,2,80);<br \/> {-----------------------\u529f\u80fd\u5f00\u5173------------------------}<br \/> {\u8d44\u91d1}<br \/> ZJ1:=DMA((H+L+C*2)\/4,0.9); ZJ2:=V\/((H-L)*2-ABS(C-O));<br \/> ZJ3:=IF(C&gt;O,ZJ2*(H-L),IF(C&lt;O,ZJ2*(H-O+(C-L)),V\/2))+IF(C&gt;O,0-ZJ2*(H-C+(O-L)),IF(C&lt;O,0-ZJ2*(H-L),0-V\/2));<br \/> ZJ4:=ZJ3\/20\/1.15; ZJ5:=ZJ4*0.55+REF(ZJ4,1)*0.33+REF(ZJ4,2)*0.22; ZJ6:=EMA(ZJ5,3);<br \/> {macd}<br \/> MJ_1 := EMA(CLOSE,S) - EMA(CLOSE,P);<br \/> MJ_2 := EMA(MJ_1,M);<br \/> MJ_3 := 2*(MJ_1-MJ_2);<br \/> MJ_4:=REVERSE(MJ_3)+2*WMA(WMA(MJ_3,1),5);<br \/> MJ_5:=3*MJ_4-2*SMA(MJ_4,2,1);<br \/> {\u5f62\u6001}<br \/> \u4f4e\u91d1:=CROSS(MJ_1,MJ_2) AND MJ_1&lt;-0.1;{\u4f4e\u91d1}<br \/> SA0:=COUNT(CROSS(MJ_1,MJ_2) AND MJ_2&lt;0,21)=3;<br \/> \u96f6\u4e0b\u4e8c\u6b21\u91d1\u53c9:=CROSS(MJ_3,0) and SA0;{\u96f6\u4e0b\u4e8c\u6b21\u91d1\u53c9}<br \/> SA1:=COUNT(CROSS(MJ_1,MJ_2),BARSLAST(MJ_2&gt;=0));<br \/> \u4e8c\u91d1:=(CROSS(MJ_1,MJ_2) AND MJ_2&lt;0 AND COUNT(SA1=2,21)=1)*2;{\u4e8c\u6b21\u91d1\u53c9}<br \/> SA2:=BARSLAST(REF(CROSS(MJ_1,MJ_2),1));<br \/> \u5e95\u80cc:=(REF(C,SA2+1)&gt;C AND MJ_1&gt;REF(MJ_1,SA2+1) AND CROSS(MJ_1,MJ_2))*3;{\u5e95\u80cc}<br \/> \u4e09\u5168:=\u4f4e\u91d1 AND \u4e8c\u91d1 AND \u5e95\u80cc;<br \/> SA3:=BARSLAST(REF(CROSS(MJ_2,MJ_1),1));<br \/> \u9876\u80cc:=REF(C,SA3+1)&lt;C AND REF(MJ_1,SA3+1)&gt;MJ_1 AND CROSS(MJ_2,MJ_1);{\u9876\u80cc}<br \/> {\u4fe1\u53f7}<br \/> M_C1:=EMA(C,5)\/EMA(EMA(C,9),16)&lt;=0.85 and c\/ref(c,1)&lt;1.05 and c\/ref(c,1)&gt;0.905 and V\/CAPITAL*100&lt;5;<br \/> M_C2:=MIN(ref(C,2)*0.865,ref(c,13)*0.772); M_C3:=(C-M_C2)\/C&lt;0.03; \u6ee1\u4ed3:=M_C1 and M_C3;<br \/> {\u4f30\u6d4b\u8f6c\u6298\u80a1\u4ef7--\u672a\u6765}<br \/> X:=BarsLast(Backset(ISLASTBAR,1)=1)+1;<br \/> Z_1:=REF(MJ_2,1)+((M+1)\/(2*(M-1)))*REF(MJ_3,1);<br \/> Z_2:=((P-1)*(S+1)*REF(EMA(C,P),1)-(P+1)*(S-1)*REF(EMA(C,S),1)+(S+1)*(P+1)*REF(MJ_1,1))\/(2*P-2*S);<br \/> Z_3:=((P-1)*(S+1)*REF(EMA(C,P),1)-(P+1)*(S-1)*REF(EMA(C,S),1)+(S+1)*(P+1)*REF(MJ_2,1))\/(2*P-2*S);<br \/> Z_4:=((P-1)*(S+1)*REF(EMA(C,P),1)-(P+1)*(S-1)*REF(EMA(C,S),1)+(S+1)*(P+1)*Z_1)\/(2*P-2*S);<br \/> Y_1:=(MJ_2*X+((M+1)\/(2*(M-1)))*MJ_3*X);<br \/> Y_2:=((P-1)*(S+1)*EMA(C,P)*X-(P+1)*(S-1)*EMA(C,S)*X+(S+1)*(P+1)*MJ_1*X)\/(2*P-2*S);<br \/> Y_3:=((P-1)*(S+1)*EMA(C,P)*X-(P+1)*(S-1)*EMA(C,S)*X+(S+1)*(P+1)*MJ_2*X)\/(2*P-2*S);<br \/> Y_4:=((P-1)*(S+1)*EMA(C,P)*X-(P+1)*(S-1)*EMA(C,S)*X+(S+1)*(P+1)*Y_1)\/(2*P-2*S);<br \/> {-----------------\u3010\u56fe\u89e3\u6a21\u677f\u3011---------------------}<br \/> {MACD}<br \/> FILLRGN(MJ_1&gt;=MJ_2,MJ_1,MJ_2),Color689AFF;<br \/> FILLRGN(MJ_1&lt;MJ_2,MJ_2,MJ_1),ColorFFC000;<br \/> FILLRGN(MJ_3&gt;MJ_5,MJ_5,MJ_3),ColorFFB7FF;<br \/> FILLRGN(MJ_3&lt;MJ_5,MJ_5,MJ_3),Color003E00;<br \/> STICKLINE(MJ_3&lt;ref(MJ_3,1) and MJ_3&lt;0,0,MJ_3,0,0),ColorFFCF78;{\u84dd}<br \/> STICKLINE(MJ_3&lt;ref(MJ_3,1) and MJ_3&gt;0,0,MJ_3,0,0),COLORYELLOW;{\u9ec4}<br \/> STICKLINE(MJ_3&gt;ref(MJ_3,1) and MJ_3&lt;0,0,MJ_3,0,0),ColorAF00AF;{\u7d2b}<br \/> STICKLINE(MJ_3&gt;ref(MJ_3,1) and MJ_3&gt;0,0,MJ_3,0,0),COLORRED;{\u7ea2}<br \/> DIFF: MJ_1,PRECISION2,COLORWHITE;<br \/> DEA: MJ_2,PRECISION2,COLORYELLOW;<br \/> \u52a0\u901f:2.8*(MJ_2-MJ_1),LINETHICK,PRECISION2,COLORGREEN;<br \/> PARTLINE(RANGE(BARPOS,SYSPARAM(3)-34,SYSPARAM(3)+1),\u52a0\u901f),LINEDOT,COLORGREEN;<br \/> {www.lixiangluntan.com \u80a1\u7968\u8d44\u6e90\u9986_\u98de\u72d0\u80a1\u7968\u6307\u6807\u516c\u5f0f}<br \/> \u591a\u5934: MJ_3,LINETHICK2,PRECISION2,COLORRED;<br \/> \u9884\u8b66:MJ_5,PRECISION2,ColorFF8900,ColorFFB500;<br \/> PARTLINE(MJ_1&gt;=REF(MJ_1,1) AND MJ_2&lt;REF(MJ_2,1),MJ_1),LINETHICK2,COLORMAGENTA;\/\/\u7c89<br \/> PARTLINE(MJ_1&lt;REF(MJ_1,1) AND MJ_2&gt;REF(MJ_2,1),MJ_1),LINETHICK2,COLORBLUE;\/\/\u84dd<br \/> {\u8d44\u91d1}<br \/> PARTLINE(1,0),LINETHICK2,COLORWHITE;\/\/\u8d1f<br \/> PARTLINE(ZJ6&gt;=0,0),LINETHICK2,COLORRED;\/\/\u6b63<br \/> {\u5f62\u6001}<br \/> DRAWTEXT(\u4f4e\u91d1,DEA*1,'\u4f4e\u91d1'),PXDN8,COLORYELLOW;<br \/> DRAWTEXT(\u96f6\u4e0b\u4e8c\u6b21\u91d1\u53c9,DEA*0.95,'\u96f6\u4e0b\u4e8c\u91d1'),PXDN8,COLORYELLOW;<br \/> DRAWTEXT(\u4e8c\u91d1,DEA*0.85,'\u4e8c\u91d1'),PXDN8,COLORYELLOW;<br \/> DRAWTEXT(\u5e95\u80cc,DEA*0.80,'\u5e95\u80cc'),PXDN8,COLORYELLOW;<br \/> DRAWTEXT(\u4e09\u5168,DEA*0.75,'\u4e09\u5168'),PXDN8,COLORRED;<br \/> DRAWTEXT(\u9876\u80cc,DEA,'\u9876\u80cc'),PXUP60,ColorFF5B00;<br \/> {\u4fe1\u53f7}<br \/> VERTLINE(\u6ee1\u4ed3),LINEDOT,COLORGRAY;<br \/> DRAWTEXT(\u6ee1\u4ed3,\u52a0\u901f,' \u7b2c \\n \u4e8c \\n \u5929 \\n \u4e70 \\n'),ALIGN,COLORYELLOW;<br \/> DRAWICON(\u6ee1\u4ed3,MJ_1*0.96,1),ALIGN,PXDN10;\/\/\u591a\u7a7a\u5dee\uff1a34.47 \u6210\u529f\u7387\uff1a83.08%<br \/> {\u4f30\u6d4b\u8f6c\u6298\u80a1\u4ef7--\u672a\u6765}<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,6,2,'\u4eca\u65e5DIFF\u8f6c\u6298\uff1a '+NUMTOSTR(Z_2,2)),COLORGREEN;<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,6,20,'\u4eca\u65e5DEA\u8f6c\u6298\uff1a '+NUMTOSTR(Z_3,2)),COLORGREEN;<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,6,38,'\u4eca\u65e5MACD\u8f6c\u6298\uff1a'+NUMTOSTR(Z_4,2)),COLORGREEN;<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,135,2,'\u660e\u65e5DIFF\u8f6c\u6298\uff1a '+NUMTOSTR(Y_2,2)),COLORYELLOW;<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,135,20,'\u660e\u65e5DEA\u8f6c\u6298\uff1a '+NUMTOSTR(Y_3,2)),COLORYELLOW;<br \/> DRAWTEXTEX(sysparam(3)=BARPOS,0,135,38,'\u660e\u65e5MACD\u8f6c\u6298\uff1a '+NUMTOSTR(Y_4,2)),COLORYELLOW;<br \/> \u6362\u624b:if(capital=0,v\/sum(v,100)*100,v\/FINANCE(7)),PRECISION2,LINETHICK,COLORGRAY;<br \/> \u6da8\u8dcc\u5e45:(C-REF(C,1))\/REF(C,1)*100,PRECISION2,LINETHICK,COLORGRAY;<br \/> {\u53d6\u53c2\u6570}<br \/> GDT2:=FINANCE(0);\/\/\u62a5\u8868\u6700\u65b0\u65e5\u671f<br \/> XXx:=STRTONUM(STRRIGHT(NUMTOSTR(FINANCE(0),0),2));\/\/\u53d6\u53f3\u4e24\u4f4d\u6570<br \/> Nn:=IF(XXx&gt;11 OR XXx&lt;3,1,IF(BETWEEN(XXx,2.9,6),4,IF(BETWEEN(XXx,5.9,9),2,4\/3))),LINETHICK;<br \/> \u5e02\u8d62\u7387:C\/(FINANCE(33)*Nn),PRECISION2,LINETHICK,COLORGRAY;<br \/> \u5e02\u51c0\u7387:C\/FINANCE(34),PRECISION2,LINETHICK,COLORGRAY;<\/p>\n<p><img decoding=\"async\" width=\"494\" height=\"392\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/120205\/1_120205182724_1.jpg')\" style=\"cursor:pointer\" alt=\"\u98de\u72d0MACD\u8f6c\u6298\u4ef7\u4f4d\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/jMzMf2.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n<div class=\"yuansheng1\">\n<div class=\"_1a77a5b7w7ei\"><\/div>\n<p> <script type=\"text\/javascript\">\n    (window.slotbydup = window.slotbydup || []).push({\n        id: \"u6133514\",\n        container: \"_1a77a5b7w7ei\",\n        async: true\n    });\n<\/script>\n<\/div>\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<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;\">\u98de\u72d0\u6218\u65e0\u4e0d\u80dc\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u98de\u72d0\u6218\u65e0\u4e0d\u80dc\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u98de\u72d0MACD\u8f6c\u6298\u4ef7\u4f4d\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":37343,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176],"tags":[177],"class_list":["post-37342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fhgs","tag-177"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/37342","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=37342"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/37342\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/37343"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}