以下是通达信多空超短线副图指标源码
通达信多空超短线副图指标 源码 贴图
{多空}
顶:90,COLORRED,LINETHICK1;
强:80,COLORRED,LINETHICK1;
弱:05,COLORGREEN,LINETHICK1;
走强线: 20,COLORCYAN;
DRAWTEXT(ISLASTBAR, 顶,’ 顶’),COLORYELLOW;
DRAWTEXT(ISLASTBAR, 强,’强’),COLORRED;
DRAWTEXT(ISLASTBAR, 走强线,’走强’),COLORLIRED;
DRAWTEXT(ISLASTBAR, 弱,’ 弱’),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
RSV1:=(C-MA(C,4))/MA(C,4)*100;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力:=EMA(J,6),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
吸筹:STICKLINE(VAR9>-120,50,50+(VAR9/2),3,1),COLORRED;
特快:(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK1,COLORFF00FF;
{主力线:主力,COLORMAGENTA,LINETHICK2 ;
拉升线:走势,COLORYELLOW,LINETHICK2;}
DRAWICON(CROSS(90,特快),90,15);
{超短线}
R1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
R2:=SMA(R1,3,1);
R3:=SMA(R2,3,1);
R4:=3*R2-2*R3;
R5:=LLV(LOW,5);
R6:=HHV(HIGH,5);
R7:=EMA((CLOSE-R5)/(R6-R5)*100,4)*2;
R8:=EMA(0.667*REF(R7,1)+0.333*R7,2);
R9:=3*R7-2*R8;
RA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
RB:=POW(MA(LOW,5),2)+MA(LOW,5);
RC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
RD:=(RA-LLV(RB,64))/(HHV(RC,64)-LLV(RB,64))*150+65-10;
RE:=SMA(RD,3,1)*1.5-100;
RF:=SMA(RE,3,1);
R10:=3*RE-2*RF;
R11:=(HIGH+LOW+CLOSE*2)/4;
R12:=EMA(R11,13);
R13:=STD(R11,13);
R14:=(R11-R12)*100/R13;
R15:=EMA(R14,5);
R17:=EMA(R15,13)+200-100;
R18:=EMA(R17,10);
R19:=3*R17-2*R18;
R1A:=R2+R7+RE+R17;
R1B:=R3+R8+RF+R18;
R1C:=R4+R9+R10+R19;
R1D:=(HIGH+LOW+CLOSE)/3;
R20:=(R1D-MA(R1D,34))/(0.015*AVEDEV(R1D,34));
R22:=(HIGH+LOW+CLOSE+R1D)/4;
R23:=EMA(R22,24);
R24:=STD(R22,24);
R25:=(R22-R23)/R24*100;
R26:=(R1D-MA(R1D,24))/(0.015*AVEDEV(R1D,24));
R27:=EMA(R25,5);
R2A:=((R27+R26+R20)/3+165)/4;
R2C:=(R1A+R1B+R1C*30)/32/5-15;
R2E:=(R2A+R2C)/2/1.1*0.6+20;{为了压缩显示彩带高度*0.6+20,LMH}
超短:EMA(R2E,3),COLORRED,LINETHICK4;
短线:EMA(超短,5);
{财神敲门的吸}
吸:=XLPL.NOTEXT吸,COLORMAGENTA,CIRCLEDOT,LINETHICK3;
{吸筹:=吸!=DRAWNULL;}{判断“吸”是否无效值,LMH}
{STICKLINE(吸,9,10,4,0),COLORYELLOW;}
{洗盘}
VA1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VA2:=SMA(ABS(LOW-VA1),13,1)/SMA(MAX(LOW-VA1,0),10,1);
VA3:=EMA(VA2,10);
VA4:=LLV(LOW,33);
VA5:=EMA(IF(LOW<=VA4,VA3,0),3);
资金建仓:=IF(VA5>REF(VA5,1),1,0),COLORRED,NODRAW;
洗盘:=IF(VA5<REF(VA5,1),1,0),COLORCYAN,NODRAW;
建仓洗盘:资金建仓 OR 洗盘;
{STICKLINE(VA5<REF(VA5,1),50,VA5+50,3,0),COLORYELLOW;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,3,0 ),COLOR000055;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,2.6,0 ),COLOR000077;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,2.1,0 ),COLOR000099;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,1.5,0 ),COLOR0000BB;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,0.9,0 ),COLOR0000DD;
STICKLINE(VA5>REF(VA5,1),50,VA5+50,0.3,0 ),COLOR0000FF;}
{至尊筹码}
X_1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_2:=(X_1-LLV(X_1,27))/(HHV(X_1,27)-LLV(X_1,27))*4*25;
X_3:=(X_1-LLV(X_1,9))/(HHV(X_1,9)-LLV(X_1,9))*4*25;
X_11:=EMA(WINNER(CLOSE)*70,3);
X_12:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_14:=X_11/(X_11+X_12)*100;
{暂不要黄金坑}
{STICKLINE(X_14>REF(X_14,1) AND X_14<20,X_14,0,0.1,0),COLORRED;
STICKLINE(X_14<=REF(X_14,1) AND X_14<20,X_14,0,2.5,0),COLORAA0000;
STICKLINE(X_14<=REF(X_14,1) AND X_14<20,X_14,0,1.5,0),COLORCC0000;
STICKLINE(X_14<=REF(X_14,1) AND X_14<20,X_14,0,0.5,0),COLORBLUE;
STICKLINE(X_14<=10,X_14,0,5,0),COLORYELLOW;}
慢线:X_2,COLORFFFF00,LINETHICK2;
快线:X_3,LINETHICK1,COLORWHITE;
多:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,COLORGREEN;
选股:吸 AND 建仓洗盘 AND 多<30 {AND 快线<25 AND 短线<25};
STICKLINE(选股,5,50,3,0),COLORYELLOW;
DRAWBAND(短线,RGB(0,255,255),超短,RGB(240,128,128));
DRAWICON(CROSS(90,快线),90,9);
评论(0)