VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
短期线:= VAR3;
长期线:= VAR4;
STICKLINE(VAR3>VAR4,VAR3,VAR4,3,0),COLORRED;
STICKLINE(VAR4>VAR3,VAR3,VAR4,3,0),COLORGREEN;
VAR6:=CROSS(VAR3,VAR4) AND VAR4<20;
DRAWTEXT(FILTER(VAR6,10)=1,20,'抄底'),LINETHICK3;
STICKLINE(FILTER(VAR6,10)=1,0,15,3,0),COLORRED;
VAR7:=CROSS(VAR4,VAR3) AND VAR4>80;
STICKLINE(FILTER(VAR7,5)=1,85,100,3,0),COLORGREEN;
DRAWTEXT(FILTER(VAR7,5)=1,80,'逃顶'),LINETHICK3;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>75 AND VAR3>VAR4;
STICKLINE(VAR8,90,100,3,0),COLORBLUE;
底部:=20,COLORRED,LINETHICK1;
顶部:=80,COLORGREEN,LINETHICK1;
B:=短期线 ;
S:=长期线 ;
I:=底部;
F:=顶部;
DRAWICON(CROSS(B,S),B-5,1),COLORLIRED;
DRAWICON(CROSS(S,B),B-5,2),COLORLIGREEN;