杀入做红线
var1:=(HHV(HIGH,8)-LLV(LOW,8));
Var2:=(HHV(HIGH,8)-CLOSE);
Var3:=(CLOSE-LLV(LOW,8));
Var4:=Var2/Var1*100-70 ;
Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var6:=(2*C+H+L)/4;
Var7:=SMA((Var3/Var1*100),3,1);
Var8:=LLV(LOW,30);
Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);
Var10:= IF(Var9>100,Var9-100,0);
VarA:=HHV(HIGH,30);
B:=EMA((Var6-Var8)/(VarA-Var8)*100,8),COLORred;
B1:=EMA(B,5);
STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLORred,linethick3;
STICKLINE(B>0 AND B-B1<0,79,80,6,0),colorblue;
STICKLINE(B>0 AND B-B1>=0,49,50,6,0),COLORred,linethick3;
STICKLINE(B>0 AND B-B1<0,49,50,6,0),COLORff8899;
STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLORred,linethick3;
STICKLINE(B>0 AND B-B1<0,19,20,6,0),colorf0f000;
STICKLINE(B-B1>0,B,B1,8,1),COLORred;
STICKLINE(B-B1<0,B,B1,8,1),COLOR00ff00;
AA:=LLV(LOW,34);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
绝谷:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
杀入:IF(CROSS(绝谷,90) AND (DD<40),70,0),colorff00ff,linethick2;
Var11:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var12:=SMA(Var11,3,1);
Var13:=SMA(Var12,3,1);
Var14:=SMA(Var13,3,1);
Var16:=CROSS(Var13,Var14) AND Var13<20;
DRAWTEXT(FILTER(Var16,10)=1,40,'抄底'),LINETHICK3 ,COLORGREEN ;
STICKLINE(FILTER(Var16,10)=1,0,30,10,0),COLORGREEN , ;
Var17:=CROSS(Var14,Var13) AND Var13>80;
STICKLINE(FILTER(Var17,5)=1,80,100,10,0),COLORYELLOW , ;
DRAWTEXT(FILTER(Var17,5)=1,70,'逃顶'),LINETHICK3 ,COLORYELLOW, ;
Var18:=CROSS(Var12,Var13) AND Var13>80 AND Var13>Var14;
STICKLINE(Var18,85,100,10,0),colorblue ;