VAR1:=IF(CLOSE>REF(CLOSE,1),vol,0);
VAR2:=IF(CLOSE<REF(CLOSE,1),VOL,0);
SH:SUM(VAR1,13),NODRAW;
UP:SUM(VAR2,13),NODRAW;
趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORMAGENTA;
见底线: 10,LINETHICK2,COLORYELLOW;
准备抄底: IF(趋势线<=10,50,0),LINETHICK1,COLORRED;
DRAWTEXT(crOSS(准备抄底,8),55,'准备'),COLOR00FF00,COLORRED;
突袭: IF(CROSS(趋势线,见底线),82,0),LINETHICK2,COLORGREEN;
DRAWICON(突袭>0,100,13),COLORYELLOW;
DRAWTEXT(CROSS(突袭,8),89,'突袭'),COLOR00FF00,COLORGREEN;