{"id":57714,"date":"2019-09-07T00:39:56","date_gmt":"2019-09-06T16:39:56","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/57714.html"},"modified":"2019-09-07T00:39:56","modified_gmt":"2019-09-06T16:39:56","slug":"%e5%a4%a7%e6%99%ba%e6%85%a7%e9%98%9f%e9%95%bfmacd%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=57714","title":{"rendered":"\u5927\u667a\u6167\u961f\u957fMACD\u6307\u6807\u516c\u5f0f"},"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;\">\u5927\u667a\u6167\u5e84\u5bb6\u5175\u529b\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u5e84\u5bb6\u5175\u529b\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n<p> \u7092\u80a1\u8f6f\u4ef6 <\/p>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>input:p(12,1,100),s(26,1,100),m(9,1,50),N(0,0,1);<br \/> \u5468MACD:=\"MACD.MACD#WEEK\";<br \/> STICKLINE(\u5468MACD&gt;=0 AND DATATYPE=8,0,\u5468MACD,11,0),Color000055;<br \/> STICKLINE(\u5468MACD&lt;0 AND DATATYPE=8,0,\u5468MACD,11,0),Color515100;<br \/> DIFF:(EMA(CLOSE,P) - EMA(CLOSE,S)),LINETHICK1;<br \/> DEA :EMA(DIFF,M),Color1AFFFF,LINETHICK1,LAYER0;<br \/> macd:(diff-dea)*2,COLORRED,LINETHICK0;<br \/> PARTLINE(DIFF,DIFF&gt;=REF(DIFF,1),RGB(200,0,200),DIFF&lt;REF(DIFF,1),RGB(0,200,200)),LAYER0;;<br \/> STICKLINE(macd&gt;0 and macd&gt;=REF(macd,1),macd,0,4,0),Color0000F2;<br \/> STICKLINE(macd&gt;0 and macd&lt;REF(macd,1),macd,0,4,1),Color0000F2;<br \/> STICKLINE(macd&lt;0 and macd&lt;REF(macd,1),macd,0,4,0),Color008000;<br \/> STICKLINE(macd&lt;0 and macd&gt;=REF(macd,1),macd,0,4,1),Color008000;<br \/> ES:=IF(N=0,REF(EMA(C,S),1),EMA(C,S));<br \/> EP:=IF(N=0,REF(EMA(C,P),1),EMA(C,P));<br \/> DI:=IF(N=0,REF(DIFF,1),DIFF);<br \/> \u96f6\u5ea6\u4ef7:=((P+1)*(S-1)*ES-(S+1)*(P-1)*EP)\/(2*(S+1)-2*(P+1));<br \/> IF N=0 AND REF(DIFF,1)&lt;0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF\u4e0a\u7a7f\u96f6\u5ea6\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u96f6\u5ea6\u4ef7,2)+'\u5143'),COLOR00D0D0;END;<br \/> IF N=1 AND DIFF&lt;0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF\u4e0a\u7a7f\u96f6\u5ea6\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u96f6\u5ea6\u4ef7,2)+'\u5143'),COLOR00D0D0;END;<br \/> IF N=0 AND REF(DIFF,1)&gt;0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF\u4e0b\u7a7f\u96f6\u5ea6\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u96f6\u5ea6\u4ef7,2)+'\u5143'),COLORD0D0D0;END;<br \/> IF N=1 AND DIFF&gt;0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF\u4e0b\u7a7f\u96f6\u5ea6\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u96f6\u5ea6\u4ef7,2)+'\u5143'),COLORD0D0D0;END;<br \/> \u62d0\u70b9\u4ef7:=((P-1)*EP\/(P+1)-(S-1)*ES\/(S+1)-DI)*(S+1)*(P+1)\/(2*(P+1)-2*(S+1));<br \/> IF N=0 AND REF(DIFF,1)&lt;REF(DIFF,2) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF\u5411\u4e0a\u62d0\u70b9\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u62d0\u70b9\u4ef7,2)+'\u5143'),COLOR00D0D0;END;<br \/> IF N=1 AND DIFF&lt;REF(DIFF,1) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF\u5411\u4e0a\u62d0\u70b9\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u62d0\u70b9\u4ef7,2)+'\u5143'),COLOR00D0D0;END;<br \/> IF N=0 AND REF(DIFF,1)&gt;REF(DIFF,2) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF\u5411\u4e0b\u62d0\u70b9\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u62d0\u70b9\u4ef7,2)+'\u5143'),COLORD0D0D0;END;<br \/> IF N=1 AND DIFF&gt;REF(DIFF,1) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF\u5411\u4e0b\u62d0\u70b9\u5bf9\u5e94\u7684\u80a1\u4ef7:'+NUMTOSTRN(\u62d0\u70b9\u4ef7,2)+'\u5143'),COLORD0D0D0;END;<\/p>\n<p><img decoding=\"async\" width=\"615\" height=\"460\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/141116\/1_141116184106_1.jpg')\" style=\"cursor:pointer\" alt=\"\u5927\u667a\u6167\u961f\u957fMACD\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/feYBjq.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n<p> \u80a1\u7968\u516c\u5f0f\u7f51 <\/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;\">\u5927\u667a\u6167\u5e84\u5bb6\u4ed3\u4f4d\u6307\u6807\u516c\u5f0f<\/p>\n<p>\u5927\u667a\u6167\u5e84\u5bb6\u4ed3\u4f4d\u6307\u6807\u516c\u5f0f<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u667a\u6167\u961f\u957fMACD\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":57716,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[132],"class_list":["post-57714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dzhgs","tag-132"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/57714","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=57714"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/57714\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/57716"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}