M1:=EMA(CLOSE,3);
M2:=EMA(CLOSE,8);
M3:=EMA(M2,13);
M4:=EMA(M2,55);
VAR1:=EMA(M3,55);
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
A7:=(2*C+H+L)/4;
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
买进:IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND vol>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0);