MACD精准判别买卖点的超神指标——内附源码,免费领取
<h2 data-first-child>大家好,欢迎来到本期分享,今天和大家分享的就是我们通达信的MACD指标,那么大家平时用到的就是我们系统自带的指标,今天就和大家分享一组好用并且把源码无偿和大家分享!</h2><p >首先我们还是给大家讲一下我们这个MACD的一个特别之处!我们这个指标首先我们可以看到他的颜色相比于系统自带的我们首先有个明显的颜色的一个区分!共振型号及时!买卖点清晰明了!</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><blockquote >那么想要拿去操作的朋友呢,我在这里把源码发给大家:DIFF:EMA(CLOSE,7) - EMA(CLOSE,19);<br/>DEA:EMA(DIFF,9);<br/>DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));<br/>MACD:2*(DIFF-DEA),COLORSTICK;<br/>A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));<br/>B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);<br/>A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));<br/>B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));<br/>A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));<br/>B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));<br/>C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));<br/>D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);<br/>C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));<br/>D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));<br/>C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));<br/>D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));<br/>STICKLINE(B1>0,-0.1,0,1,0),COLORRED;<br/>STICKLINE(B2>0,-0.1,0,1,0),COLORFF00FF;<br/>STICKLINE(B3>0,-0.1,0,1,0),COLORYELLOW;<br/>STICKLINE(D1>0,0.1,0,1,0),COLOR00FF00;<br/>STICKLINE(D2>0,0.1,0,1,0),COLORFFCC66;<br/>STICKLINE(D3>0,0.1,0,1,0),COLORWHITE;<br/>STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;<br/>STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;<br/>STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN;<br/>STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;<br/>STICKLINE(C>0,0,0,50,1),COLORBLUE;<br/>MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;<br/>KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;<br/>RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;<br/>MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;<br/>KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;<br/>RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;<br/>强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK2;<br/>弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;<br/>DRAWICON(CROSS(DIFF,DEA),DEA,5);<br/>DRAWICON(CROSS(DEA,DIFF),DEA,27);<br/>A:=REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,2)<REF(DIFF,3) AND DIFF>REF(DIFF,1);<br/>B:=REF(DIFF,1)>REF(DIFF,2) AND REF(DIFF,2)>REF(DIFF,3) AND DIFF<REF(DIFF,1);<br/>DRAWICON(A,DIFF,1);<br/>DRAWICON(B,DIFF,2);<br/>STICKLINE((MACD > 0),0,MACD,0.1,0),COLOR0000CC;<br/>STICKLINE((MACD > 0),0,MACD*0.9,0.1,0),COLOR0000EE;<br/>STICKLINE((MACD > 0),0,MACD*0.8,0.1,0),COLOR0011FF;<br/>STICKLINE((MACD > 0),0,MACD*0.7,0.1,0),COLOR0033FF;<br/>STICKLINE((MACD > 0),0,MACD*0.6,0.1,0),COLOR0055FF;<br/>STICKLINE((MACD > 0),0,MACD*0.5,0.1,0),COLOR0077FF;<br/>STICKLINE((MACD > 0),0,MACD*0.4,0.1,0),COLOR0099FF;<br/>STICKLINE((MACD > 0),0,MACD*0.3,0.1,0),COLOR00BBFF;<br/>STICKLINE((MACD > 0),0,MACD*0.2,0.1,0),COLOR00DDFF;<br/>STICKLINE((MACD > 0),0,MACD*0.1,0.1,0),COLOR00FFFF;<br/>STICKLINE((MACD < 0),0,MACD,0.1,0),COLORCC0033;<br/>STICKLINE((MACD < 0),0,MACD*0.9,0.1,0),COLOREE0033;<br/>STICKLINE((MACD < 0),0,MACD*0.8,0.1,0),COLORFF1133;<br/>STICKLINE((MACD < 0),0,MACD*0.7,0.1,0),COLORFF3333;<br/>STICKLINE((MACD < 0),0,MACD*0.6,0.1,0),COLORFF5533;<br/>STICKLINE((MACD < 0),0,MACD*0.5,0.1,0),COLORFF7733;<br/>STICKLINE((MACD < 0),0,MACD*0.4,0.1,0),COLORFF9933;<br/>STICKLINE((MACD < 0),0,MACD*0.3,0.1,0),COLORFFBB33;<br/>STICKLINE((MACD < 0),0,MACD*0.2,0.1,0),COLORFFDD33;<br/>STICKLINE((MACD < 0),0,MACD*0.1,0.1,0),COLORFFFF33;</blockquote><p ><b>①:公式代码复制过来难免造成部分格式错误。如出现公式导入错误,请及时私信留言笔者领取nt6文件可直接导入!如果对于指标感兴趣或者有疑问的可以与我一起交流学习!指标源码导入就可以使用。</b></p><p ><b>②:创作不易,希望大家对于我的文章能够关注和转发,后期也会给大家分享更多好用的指标以及其他股票知识的!</b></p>
页:
[1]