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);
STICKLINE(VAR9>-150,0,VAR9,3,1), ,COLORFF00FF;
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR13A:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR14A:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
VAR15A:=C/MA(C,60)-1;
小顶:IF(CROSS(VAR14A,-95) AND VAR15A<0.35 AND VAR15A>=0.2,50,100),COLORFFFF00,LINETHICK3;
DRAWTEXT (IF(CROSS(VAR14A,-95)AND (VAR15A<0.35) AND (VAR15A>=0.2),1,0),90,'卖'),COLORFFFF00;
大顶:IF(CROSS(VAR14A,-95) AND VAR15A>=0.35,2,100),COLORGREEN,LINETHICK5;
DRAWTEXT (IF(CROSS(VAR14A,-95)AND (VAR15A>=0.35),1,0),80,'卖'),COLORGREEN;
小底:IF(CROSS(-5,VAR14A) AND VAR13A<-0.25 AND VAR13A>-0.4,50,0),COLORYELLOW,LINETHICK3;
大底:IF(CROSS(-5,VAR14A) AND (VAR13A<-0.4),98,0),COLORRED,LINETHICK5;
DRAWTEXT (IF(CROSS(-5,VAR14A)AND (VAR13A<-0.4),1,0),20,'买'),COLORRED;
VA1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
VA2:=HHV(VA1>20,10);
顶:STICKLINE(VA2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VA1+10,98,2,3);