{"id":56421,"date":"2018-09-17T15:19:13","date_gmt":"2018-09-17T07:19:13","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/56421.html"},"modified":"2018-09-17T15:19:13","modified_gmt":"2018-09-17T07:19:13","slug":"%e9%80%9a%e8%be%be%e4%bf%a1dmimacd-rsi%e8%83%8c%e7%a6%bb%e6%8c%87%e6%a0%87%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=56421","title":{"rendered":"\u901a\u8fbe\u4fe1DMI,MACD.RSI\u80cc\u79bb\u6307\u6807\u516c\u5f0f"},"content":{"rendered":"<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p class=\"description\">\n<p>N:=14;<br \/> MM:=6;<br \/> RSV:=(CLOSE-LLV(LOW,10))\/(HHV(HIGH,10)-LLV(LOW,10))*100;<br \/> K:=SMA(RSV,3,1);<br \/> D:=SMA(K,3,1);<br \/> J:=3*K-2*D;<br \/> DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);<br \/> DEA:=EMA(DIFF,9);<br \/> MACD:=2*(DIFF-DEA), COLORSTICK;<br \/> LC:=REF(CLOSE,1);<br \/> RSI1:=SMA(MAX(CLOSE-LC,0),6,1)\/SMA(ABS(CLOSE-LC),6,1)*100;<br \/> RSI2:=SMA(MAX(CLOSE-LC,0),12,1)\/SMA(ABS(CLOSE-LC),12,1)*100;<br \/> RSI3:=SMA(MAX(CLOSE-LC,0),24,1)\/SMA(ABS(CLOSE-LC),24,1)*100;<br \/> A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));<br \/> B1:=REF(CLOSE,A1+1)&gt;CLOSE AND REF(DIFF,A1+1)&lt;DIFF AND CROSS(DIFF,DEA);<br \/> MACD\u5e95\u80cc\u79bb:FILTER(B1&gt;0,5);<br \/> STICKLINE(FILTER(B1&gt;0,5),0,10,1,0),COLOR00FF00;<br \/> DRAWTEXT(FILTER(B1&gt;0,5),10,'MACD\u5e95\u80cc'),COLOR00FF00;<br \/> A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));<br \/> B3:=REF(CLOSE,A3+1)&gt;CLOSE AND REF(RSI1,A3+1)&lt;RSI1 AND CROSS(RSI1,RSI2);<br \/> RSI\u5e95\u80cc\u79bb:FILTER(B3&gt;0,5),LINETHICK0;<br \/> STICKLINE(FILTER(B3&gt;0,5),0,30,1,0),COLORFFFF00;<br \/> DRAWTEXT(FILTER(B3&gt;0,5),30,'RSI\u5e95\u80cc'),COLORFFFF00;<br \/> C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));<br \/> D1:=REF(CLOSE,C1+1)&lt;CLOSE AND REF(DIFF,C1+1)&gt;DIFF AND CROSS(DEA,DIFF);<br \/> MACD\u9876\u80cc\u79bb:FILTER(D1&gt;0,5),LINETHICK0;<br \/> STICKLINE(FILTER(D1&gt;0,5),100,80,1,0),COLOR0066FF;<br \/> DRAWTEXT(FILTER(D1&gt;0,5),80,'MACD\u9876\u80cc'),COLOR0066FF;<br \/> C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));<br \/> D3:=REF(CLOSE,C3+1)&lt;CLOSE AND REF(RSI1,C3+1)&gt;RSI1 AND CROSS(RSI2,RSI1);<br \/> RSI\u9876\u80cc\u79bb:FILTER(D3&gt;0,5),LINETHICK0;<br \/> STICKLINE(FILTER(D3&gt;0,5),100,80,1,0),COLOR15F70A;<br \/> DRAWTEXT(FILTER(D3&gt;0,5),80,'RSI\u9876\u80cc'),COLOR15F70A;<br \/> {\u4ee5\u4e0a\u4e0d\u52a8}<br \/> TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),21);<br \/> HD :=HIGH-REF(HIGH,1);<br \/> LD :=REF(LOW,1)-LOW;<br \/> DMP:=EMA(IF(HD&gt;0 AND HD&gt;LD,HD,0),21);<br \/> DMM:=EMA(IF(LD&gt;0 AND LD&gt;HD,LD,0),21);<br \/> PDI:= DMP*100\/TR1;<br \/> MDI:= DMM*100\/TR1;<br \/> ADX: EMA((PDI-MDI)\/(MDI+PDI)*100,6)*2;<br \/> ADXR:EMA(ADX,6);<br \/> ADMA:=EMA(ADX,20);<br \/> OMD:(ADX-2*ADMA+ADXR)\/2, COLORSTICK;<br \/> DRAWBAND(ADX,RGB(155,50,50),ADXR,RGB(0,100,50));<br \/> STICKLINE(OMD&gt;REF(OMD,1) AND OMD&gt;0,0,OMD,1,0),COLORRED;<br \/> STICKLINE(OMD&gt;REF(OMD,1) AND OMD&lt;0,0,OMD,1,0),COLORGREEN;<br \/> STICKLINE(OMD&lt;REF(OMD,1),0,OMD,1,0),COLORCBCBC0;<br \/> STICKLINE(OMD&gt;=0 OR OMD&lt;=0,0,0,50,1),COLORWHITE;<br \/> ADX1:ADX,COLORRED;<br \/> ADXR1:ADXR,COLORYELLOW;<br \/> {DMI\u9876\u5e95\u80cc\u79bb}<br \/> DM1:=BARSLAST(REF(CROSS(ADX1,ADXR1),1));<br \/> DM2:=REF(CLOSE,DM1+1)&gt;CLOSE AND REF(ADX1,DM1+1)&lt;ADX1 AND CROSS(ADX1,ADXR1);<br \/> DMI\u5e95\u80cc\u79bb:FILTER(DM2&gt;0,5),LINETHICK0;<br \/> DRAWTEXT(FILTER(DM2&gt;0,5),ADX1,'DMI\u5e95\u80cc'),COLORFFFF00;<br \/> DM3:=BARSLAST(REF(CROSS(ADXR1,ADX1),1));<br \/> DM4:=REF(CLOSE,DM3+1)&lt;CLOSE AND REF(ADX1,DM3+1)&gt;ADX1 AND CROSS(ADXR1,ADX1);<br \/> DMI\u9876\u80cc\u79bb:FILTER(DM4&gt;0,5),LINETHICK0;<br \/> DRAWTEXT(FILTER(DM4&gt;0,5),ADX1,'DMI\u9876\u80cc'),COLORGREEN;<\/p>\n<p><img decoding=\"async\" width=\"546\" height=\"426\" border=\"0\" onclick=\"window.open('\/uploads\/allimg\/160607\/1_160607182728_1.jpg')\" style=\"cursor:pointer\" alt=\"\u901a\u8fbe\u4fe1DMI,MACD.RSI\u80cc\u79bb\u6307\u6807\u516c\u5f0f\" src=\"http:\/\/wmj.lixiangluntan.com\/2020\/8\/b6numu.jpg\" class=\"aligncenter\"><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fbe\u4fe1DMI,MACD.RSI\u80cc\u79bb\u6307\u6807\u516c\u5f0f<\/p>\n","protected":false},"author":7,"featured_media":56424,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[140],"class_list":["post-56421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tdxgs","tag-140"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/56421","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=56421"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/56421\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/media\/56424"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}