VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARF:=EMA(VARD,9);
VAR10:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR11:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR12:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR13:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR14:=REF(VARF,1);
VAR15:=VARF;
VAR16:=VAR15-VAR14;
VAR1C:=IF(crOSS(VARD,VARF) AND VARD<0 AND VARF<-0.2 AND VAR11>45 AND VAR16>0,0.3,0);
买进1:VAR1C,COLORYELLOW;