FO:=REVERSE(OPEN);FL:=REVERSE(HIGH);FH:=REVERSE(LOW);FC:=REVERSE(CLOSE);
VAR2:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
VAR3:=REVERSE(EMA(VAR2,3)-10);
VAR4:=EMA(FC,2);
VAR5:=EMA(SLOPE(FC,21)*20+FC,42);
BU:=crOSS(VAR5,VAR4);
SEL:=CROSS(VAR4,VAR5);
DRAWICON(BU AND VAR3>-20 ,FH*0.98,' 买点'),COLORRED;
DRAWTEXT(BU AND VAR3>-20 ,FH*0.96,1)COLORRED;
DRAWICON(SEL AND VAR3<-70,FL*1.05,' 卖点'),COLORGREEN;
DRAWICON(SEL AND VAR3<-70,FL*1.03,2),COLORGREEN;
FMR:=4*SMA((FC-LLV(FL,5))/(HHV(FH,5)-LLV(FL,5))*100,5,1)-
3*SMA(SMA((FC-LLV(FL,5))/(HHV(FH,5)-LLV(FL,5))*100,5,1),3.2,1);
FCC:=CROSS(FMR,10);
DRAWICON(FCC,FL*1.01,'▼短卖'),COLORCYAN;
短顶:=CROSS(88,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),6,1)*100);
DRAWTEXT(短顶,FL*1.04,'短顶'),COLORCYAN;
翻转1:EMA(-C,3),COLORRED,LINETHICK3;
翻转2:EMA(-C,5),COLORYELLOW;
翻转3:EMA(-C,8),COLORYELLOW;
翻转4:EMA(-C,10),COLORYELLOW;
翻转5:EMA(-C,12),COLORYELLOW;
翻转6:EMA(-C,15),COLORYELLOW;
DRAWKLINE(-LOW, -OPEN, -HIGH, -CLOSE);