VAR11:=EMA(CLOSE,8);
VAR1:=INDEXC;
X1:=(3*C+H+L+O)/6;
X2:=ema(X1,10);
X3:=REF(X2,1);
短买:IF(crOSS((VAR11-LLV(VAR1,4))/(HHV(VAR11,4)-LLV
(VAR11,4))*4*25,87.5) AND
VAR1<40,87,0) AND X2>X3;
VAR11:=EMA(CLOSE,8);
VAR1:=INDEXC;
X1:=(3*C+H+L+O)/6;
X2:=ema(X1,10);
X3:=REF(X2,1);
短买:IF(crOSS((VAR11-LLV(VAR1,4))/(HHV(VAR11,4)-LLV
(VAR11,4))*4*25,87.5) AND
VAR1<40,87,0) AND X2>X3;