VAR1:=7;
VAR2:=5;
VAR3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR4:=SMA(VAR3,VAR1,1);
VAR5:=SMA(VAR4,VAR2,1);
STICKLINE(VAR4 VAR5,VAR4,VAR5,0.8,1),COLORRED;
STICKLINE(VAR4 VAR5,VAR4,VAR5,0.8,1),COLORGREEN;
VAR6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR7:=LLV(LOW,34);
VAR8:=HHV(HIGH,34);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);
VAR10:=EMA(VAR9,3);
STICKLINE(VAR9 VAR10,VAR9,VAR10,0.8,0),COLORCYAN;
STICKLINE(VAR9 VAR10,VAR9,VAR10,0.8,0),COLORLIRED;
中趋:VAR4,NODRAW,COLORRED;
小趋:VAR9,NODRAW,COLORLIRED;
STICKLINE(VAR9 =90 OR VAR4 =90,96,101,4,1),COLORYELLOW;
STICKLINE(VAR4 =90 AND VAR9 =90,96,101,4,0),COLORYELLOW;
STICKLINE(VAR9 =10 OR VAR4 =10,(-1),4,4,1),COLORBLUE;
STICKLINE(VAR4 =10 AND VAR9 =10,(-1),4,4,0),COLORBLUE;
STICKLINE(VAR9 =10 OR VAR4 =10 AND VAR4 REF(VAR4,1) AND VAR9 REF(VAR9,1),(-1),4,4,1),COLOR7F00FF;
STICKLINE(VAR4 =10 AND VAR9 =10 AND VAR4 REF(VAR4,1) AND VAR9 REF(VAR9,1),(-1),4,4,0),COLOR7F00FF;
STICKLINE(VAR9 =90 OR VAR4 =90 AND VAR4 REF(VAR4,1) AND VAR9 REF(VAR9,1),96,101,4,1),COLORWHITE;
STICKLINE(VAR4 =90 AND VAR9 =90 AND VAR4 REF(VAR4,1) AND VAR9 REF(VAR9,1),96,101,4,0),COLORWHITE;
小均值:EMA(VAR9,5),COLORGRAY;
IF(小均值 =REF(小均值,1),小均值,DRAWNULL),COLORMAGENTA;
中均值:EMA(VAR4,5),COLORCYAN;
IF(中均值 =REF(中均值,1),中均值,DRAWNULL),COLORRED;
XG:=中均值 REF(中均值,1) AND 中均值 REF(中均值,3) ;
短高:90,DOTLINE,COLORGREEN;
高抛:80,DOTLINE,COLORYELLOW;
低吸:20,DOTLINE,COLORYELLOW;
短底:10,DOTLINE,COLORRED;
逃顶:=CROSS(82,);
STICKLINE( 逃顶,逃顶,20,3,0),COLORFF5500;