SD1:=100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34));
MA1:SMA(SD1,3,1);
SD2:=100*(INDEXC-LLV(INDEXL,64))/(HHV(INDEXH,64)-LLV(INDEXL,64));
MA2:SMA(SD2,3,1);
VAR1:=(2*INDEXC+INDEXH+INDEXL+INDEXO)/5;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
SJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
SD:=MA(SJ,2);
SK:=MA(SJ,1);
卖出:IF(crOSS(90,MA1) OR CROSS(90,MA2) AND CROSS(EMA(CLOSE,3),C),50,90);
买进:IF(CROSS(MA2,19) AND SK>SD AND CROSS(EMA(C,3),EMA(C,8)),50,10);