VAR1:=((LLV(LOW,5) = LLV(LOW,45)) AND (CLOSE >= (OPEN * 1.04)));
VAR2:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));
VAR3:=REF(CLOSE,1);
VAR4:=((SMA(MAX((CLOSE - VAR3),0),6,1) / SMA(ABS((CLOSE - VAR3)),6,1)) * 100);
买入:(VAR1 AND VAR2),STICK,COLORYELLOW,LINETHICK2;
卖出:CROSS(80,VAR4),STICK,COLORGREEN,LINETHICK2;
DRAWICON(买入,0,23);
DRAWICON(卖出,1.5,2);