【资料名称】:通达信猎豹出击均线主图指标 源码介绍【资料描述】:
通达信猎豹出击均线主图指标 源码
D:=5;S:=10;W:=20;R1:=7;R2:=14;Z1:=21;Z2:=55;Y1:=79;Y2:=144;
日一:MA(CLOSE,R1),COLORRED,LINETHICK1;
日二:MA(CLOSE,R2),COLORMAGENTA,LINETHICK1;
周一:MA(CLOSE,Z1),COLORWHITE,LINETHICK2;
周二:MA(CLOSE,Z2),COLORCYAN,LINETHICK2;
月一:MA(CLOSE,Y1),COLORWHITE,POINTDOT;
月二:MA(CLOSE,Y2),COLORBLUE,POINTDOT;
年:=1+(BARSLAST(YEAR!=REF(YEAR,1) OR DATETODAY(DATE)=1));
天数:=IF(PERIOD=5,年,DRAWNULL);
高1:=HHV(H,天数);
低1:=LLV(L,天数);
高低:(C-低1)/(高1-低1)*100,,NODRAW,COLORFFFF00;
振幅:(高1-低1)/低1*100,NODRAW,COLORWHITE;
天:CONST(高1),NODRAW,COLORYELLOW;
地:CONST(低1),NODRAW,COLOR00FF00;
H66%:CONST(高1-(高1-低1)*1/3),NODRAW,COLORFFFF00;
中:CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;
H33%:CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;
TT3:=(CURRBARSCOUNT=1{5});
TT4:=(CURRBARSCOUNT=1{5+3});
STICKLINE(C>0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1/4),2,0),COLORFF00FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3/4),2,0),COLORFF00FF;
STICKLINE(C>0,天,天,10,0),COLORYELLOW;
STICKLINE(C>0,地,地,10,0),COLOR00FF00;
STICKLINE(C>0,H66%,H66%,10,0),COLORFFFF00;
STICKLINE(C>0,中,中,10,0),COLORWHITE;
STICKLINE(C>0,H33%,H33%,10,0),COLOR0099FF;
H75%:CONST(高1-(高1-低1)*1/4),NODRAW;
H25%:CONST(高1-(高1-低1)*3/4),NODRAW;
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2.8,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,13)>=1;
STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
A:=SMA(L,4,3);
STICKLINE(A AND REF(PP,1) AND HH ,A*0.9999,A*0.994,5,0),COLORGREEN;
STICKLINE(A AND REF(PP3,1) AND HH ,A*0.9999,A*0.994,5,0),COLORGREEN;
DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043
AND EXPMA(C,12)>EXPMA(C,50),L*0.95,'起爆'),COLORRED;
星板:=ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03&&
CLOSE/OPEN>1.03&&CLOSE>REF(CLOSE,2) AND C/REF(C,1)>1.071;
DRAWTEXT(星板,L*0.950,'星'),COLORMAGENTA;
DRAWICON(星板,L*0.97,1);
gd54510
【下载地址隐藏】: 点:回复可见地址