CM1:=EMA(CLOSE,3);
CM2:=EMA(CLOSE,8);
CM3:=EMA(CM2,13);
CM4:=EMA(CM2,55);
CVAR1:=EMA(CM3,55);
CVAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
CVAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
CVAR4:=REF(CLOSE,1);
CVAR5:=SMA(MAX(CLOSE-CVAR4,0),7,1)/SMA(Abs(CLOSE-CVAR4),7,1)*100;
CVAR6:=crOSS(79,CVAR5);
CVAR7:=FILTER(CVAR6,4);
CA7:=(2*C+H+L)/4;
CVAR10:=LLV(LOW,34);
CVAR11:=HHV(HIGH,34);
CSK:=EMA((CA7-CVAR1)/(CVAR2-CVAR1)*100,7);
CSD:=EMA(0.667*REF(CSK,1)+0.333*CSK,5);
买进1:IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(CSK>CSD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0);