通达信DK出击主图指标 源码 贴图 MA2:MA(CLOSE,250)COLORMAGENTA,DOTLINE; 均线3:=MA(CLOSE,30),LINETHICK1; 均线2:=MA(CLOSE,20),LINETHICK0; 均线6:=MA(CLOSE,60); 均线12:=MA(CLOSE,120),COLORBLUE,LINETHICK1; {买线:=MA(CLOSE,4);} 买线:=EMA(CLOSE,2); 卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0; BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT (BU,LOW*0.989,'D'),COLORYELLOW,LINETHICK3; DRAWTEXT(SEL,HIGH*1.0175,'K'),COLORWHITE,LINETHICK3; STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000AA; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORAAAA00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00; STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORFFFF00; STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,5,0),COLORYELLOW; STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,5,0),COLORWHITE; AHC1:=CLOSE*VOL; AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13); 上轨:=1.06*AHC2; 顶:=1.13*AHC2; ZT:=REF(C,1)*1.1-C< 0.01 AND H=C; 启爆:=CROSS(C,上轨) AND ZT; DRAWTEXT(启爆,L*0.85,'启爆'),COLORYELLOW; DRAWICON(启爆,L*0.90,24); DRAWICON(启爆,L*0.92,25); DRAWICON(启爆,L*0.94,26); 超牛:=CROSS(C,顶) AND ZT; STICKLINE(超牛,O,C,2.5,0),COLORRED; BOLL:=MA(C,20); UPPER:=BOLL+2*STD(C,20); LOWER:=BOLL-2*STD(C,20); 黑马:=CROSS(C,UPPER) AND C/REF(C,1)>1.05; DRAWTEXT(黑马,L-1.15,'黑马'),COLORYELLOW; N2:=60; N1:=30; BDDD:=C=LLV(C,2); DDSJ:=BARSLAST(FILTER(CROSS(0.08,BDDD),N1))+1; DRAWICON(DDSJ,L,1); NA:=6; MTM:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTM,NA),NA)/EMA(EMA(ABS(MTM),NA),NA); 买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0); 卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0); DRAWICON(FILTER(卖1=1,1),H*1.06,2),COLORGREEN;
|