DRAWICON(CROSS(趋势,8)AND SLOPE(CLOSE,7)< -0.03,LOW,1);
DRAWICON(CROSS(85,趋势*1.03),HIGH*1.05,2);
VAR1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
DRAWTEXT(VAR1 AND VAR2,LOW,'买'),COLORYELLOW ;
VAR3:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(80,VAR3),HIGH*1.02,'卖'),COLORYELLOW ;
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD (CLOSE,20)),HIGH*1.03,'卖'),COLORF00FF0 ;