{"id":85668,"date":"2018-09-12T14:32:24","date_gmt":"2018-09-12T06:32:24","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/85668.html"},"modified":"2018-09-12T14:32:24","modified_gmt":"2018-09-12T06:32:24","slug":"%e5%b0%86macd%e5%8f%82%e6%95%b0%e6%8c%89%e7%85%a7short5-long26-mid50%e4%bf%ae%e6%94%b9_%e5%90%8c%e8%8a%b1%e9%a1%ba%e5%ae%9e%e6%97%b6%e6%b8%af%e8%82%a1%e7%a0%b4%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=85668","title":{"rendered":"\u5c06MACD\u53c2\u6570\u6309\u7167SHORT5 .LONG26 .MID50\u4fee\u6539_\u540c\u82b1\u987a\u5b9e\u65f6\u6e2f\u80a1\u7834\u89e3"},"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;\">\u5c06\u4e0b\u9762\u7684\u516c\u5f0f\u589e\u52a0\u5927\u9ed1\u9a6c\u9009\u80a1<\/p>\n<p>\u5c06\u4e0b\u9762\u7684\u516c\u5f0f\u589e\u52a0\u5927\u9ed1\u9a6c\u9009\u80a1<\/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 style=\"color:red\">\u7f16\u5199\u6761\u4ef6\uff1a<\/p>\n<p>\u6211\u60f3\u5c06MACD\u7684\u53c2\u6570\u6309\u7167SHORT 5 \uff0c LONG 26 \uff0cMID 50\uff0c\u4fee\u6539\u3002\u8bf7\u54ea\u4f4d\u5e2e\u5fd9\uff01\uff01\uff01\uff01 \u6e90\u7801\uff1a W:=1; M:=1; MM:=9*M; SHORT:=MM*4\/3; LONG:=MM*26\/9; DIFF:=(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)); DEA:=EMA(DIFF,MM),COLOR58FF58; MACD:=2*(DIFF-DEA),COLORFFFF00,LINETHICK0; \u7ea2\u67f1:DRAWBAND(MACD,RGB(180,50,50),0,RGB(0,128,0)); \u7eff\u67f1:DRAWBAND(0,RGB(0,128,0),MACD,RGB(180,50,50)); AMACD:=ABS(MACD); {STICKLINE(MACD&gt;=0 AND MACD&gt;=REF(MACD,1),0,MACD,W,1),COLOR6058FF; STICKLINE(MACD&gt;=0 AND MACD&lt; REF(MACD,1),0,MACD,W,0),COLOR6058FF; STICKLINE(MACD&lt;0 AND MACD&gt;=REF(MACD,1),0,MACD,W,1),COLORFFFF00; STICKLINE(MACD&lt;0 AND MACD&lt; REF(MACD,1),0,MACD,W,0),COLORFFFF00;} \u7ea2\u67f1\u9762\u79ef := IF (MACD&gt;0,SUM(AMACD,BARSLAST(MACD&lt;0)),0),LINETHICK0,COLORRED; \u7eff\u67f1\u9762\u79ef := IF (MACD&lt;0,SUM(AMACD,BARSLAST(MACD&gt;0)),0),LINETHICK0,COLORBLUE; BV:=SUM(MACD,0); \u7ea2\u8f6c\u7eff:=CROSS(MACD,0); \u7eff\u8f6c\u7ea2:=CROSS(0,MACD); BC:=BARSLAST(\u7ea2\u8f6c\u7eff OR \u7eff\u8f6c\u7ea2)+1; \u6700\u9ad8\u7ea2\u67f1\u5b50:IF(MACD&gt;0,HHV(MACD,BC),0),NODRAW; \u6700\u4f4e\u7eff\u67f1\u5b50:IF(MACD&lt;0,LLV(MACD,BC),0),NODRAW; DRAWTEXT(\u7eff\u8f6c\u7ea2 ,REF(\u6700\u9ad8\u7ea2\u67f1\u5b50,1),''+REF(INTPART((\u7ea2\u67f1\u9762\u79ef)*10)\/10,1)),COLORRED; DRAWTEXT(\u7ea2\u8f6c\u7eff ,REF(\u6700\u4f4e\u7eff\u67f1\u5b50,1),''+REF(INTPART((\u7eff\u67f1\u9762\u79ef)*10)\/10,1)),COLORRED; CDIFF:DIFF;CDEA:DEA;<\/p>\n<p style=\"color:red\">\u7f16\u5199\u65b9\u6cd5\uff1a<\/p>\n<p>&nbsp;W:=1;<\/p>\n<div>\n M:=1;\n<\/div>\n<div>\n DIFF:=(EMA(CLOSE,5)-EMA(CLOSE,26));\n<\/div>\n<div>\n DEA:=EMA(DIFF,50),COLOR58FF58;\n<\/div>\n<div>\n MACD:=2*(DIFF-DEA),COLORFFFF00,LINETHICK0;\n<\/div>\n<div>\n \u7ea2\u67f1:DRAWBAND(MACD,RGB(180,50,50),0,RGB(0,128,0));\n<\/div>\n<div>\n \u7eff\u67f1:DRAWBAND(0,RGB(0,128,0),MACD,RGB(180,50,50));\n<\/div>\n<div>\n AMACD:=ABS(MACD);\n<\/div>\n<div>\n {STICKLINE(MACD&gt;=0 AND MACD&gt;=REF(MACD,1),0,MACD,W,1),COLOR6058FF;\n<\/div>\n<div>\n STICKLINE(MACD&gt;=0 AND MACD&lt; REF(MACD,1),0,MACD,W,0),COLOR6058FF;\n<\/div>\n<div>\n STICKLINE(MACD&lt;0 AND MACD&gt;=REF(MACD,1),0,MACD,W,1),COLORFFFF00;\n<\/div>\n<div>\n STICKLINE(MACD&lt;0 AND MACD&lt; REF(MACD,1),0,MACD,W,0),COLORFFFF00;}\n<\/div>\n<div>\n &nbsp;\n<\/div>\n<div>\n \u7ea2\u67f1\u9762\u79ef := IF (MACD&gt;0,SUM(AMACD,BARSLAST(MACD&lt;0)),0),LINETHICK0,COLORRED;\n<\/div>\n<div>\n \u7eff\u67f1\u9762\u79ef := IF (MACD&lt;0,SUM(AMACD,BARSLAST(MACD&gt;0)),0),LINETHICK0,COLORBLUE;\n<\/div>\n<div>\n &nbsp;\n<\/div>\n<div>\n BV:=SUM(MACD,0);\n<\/div>\n<div>\n \u7ea2\u8f6c\u7eff:=CROSS(MACD,0);\n<\/div>\n<div>\n \u7eff\u8f6c\u7ea2:=CROSS(0,MACD);\n<\/div>\n<div>\n BC:=BARSLAST(\u7ea2\u8f6c\u7eff OR \u7eff\u8f6c\u7ea2)+1;\n<\/div>\n<div>\n \u6700\u9ad8\u7ea2\u67f1\u5b50:IF(MACD&gt;0,HHV(MACD,BC),0),NODRAW;\n<\/div>\n<div>\n \u6700\u4f4e\u7eff\u67f1\u5b50:IF(MACD&lt;0,LLV(MACD,BC),0),NODRAW;\n<\/div>\n<div>\n &nbsp;\n<\/div>\n<div>\n DRAWTEXT(\u7eff\u8f6c\u7ea2 ,REF(\u6700\u9ad8\u7ea2\u67f1\u5b50,1),''+REF(INTPART((\u7ea2\u67f1\u9762\u79ef)*10)\/10,1)),COLORRED;\n<\/div>\n<div>\n DRAWTEXT(\u7ea2\u8f6c\u7eff ,REF(\u6700\u4f4e\u7eff\u67f1\u5b50,1),''+REF(INTPART((\u7eff\u67f1\u9762\u79ef)*10)\/10,1)),COLORRED;\n<\/div>\n<div>\n CDIFF:DIFF;CDEA:DEA;\n<\/div>\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\u4e1c\u65b9\u8d22\u5bccL2\u51b3\u7b56\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u7f51,\u4e1c\u65b9\u8d22\u5bcc\u6295\u8d44\u5927\u5e08\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u5148\u950b\u7248\u7834\u89e3,\u4e1c\u65b9\u8d22\u5bcc\u9886\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8fdc\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u5148\u950b\u7834\u89e3,\u540c\u82b1\u987aL2\u7834\u89e3\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;\">\u859b\u6c0f\u901a\u9053\u6700\u4f4e\u4ef7\u7b49\u4e8e\u6216\u5c0f\u4e8e\uff08\u901a\u90533\uff09\u9009\u80a1\u6307\u6807<\/p>\n<p>\u859b\u6c0f\u901a\u9053\u6700\u4f4e\u4ef7\u7b49\u4e8e\u6216\u5c0f\u4e8e\uff08\u901a\u90533\uff09\u9009\u80a1\u6307\u6807<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5c06MACD\u53c2\u6570\u6309\u7167SHORT5 .LONG26 .MID50\u4fee\u6539<\/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-85668","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\/85668","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=85668"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/85668\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}