N:=7; P:=5; X:=8; Q:=8;
A7:=(2*C+H+L)/4;
VAR1:=LLV(LOW,34);
VAR2:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,N);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,P);
买进2:IF(COUNT(CLOSE<REF(CLOSE,1),X)/X>Q/10 AND vol>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0);