VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
VAR2:=(EMA(MEMA(CLOSE,8),8)+EMA(MEMA(CLOSE,13),13)+EMA(MEMA(CLOSE,21),21))/3;
VAR3:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR4:=crOSS(VAR3,EMA(VAR3,9)) AND EMA(VAR3,9)<0;
VAR5:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*110,10);
VAR6:=VAR5>REF(VAR5,1) AND VAR5<20 OR CROSS(VAR5,20);
VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR8:=SMA(VAR7,3,1)>SMA(SMA(VAR7,3,1),3,1);
VAR9:=MA(vol,5)>MA(VOL,10);
VAR10:=(CLOSE-MA(C,5))/MA(C,5)*100;
VAR11:=(CLOSE-MA(C,30))/MA(C,30)*100;
VAR12:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416;
VAR13:=SMA(EMA((MA(C,5)-REF(MA(C,5),1))/REF(MA(C,5),1),3)*100,3,1);
VAR14:=EMA(VAR13-REF(VAR13,1),3);
VAR15:=COUNT(CROSS(VAR12,30),5)>=1 AND MA(C,5)>REF(MA(C,5),1);
VAR16:=VAR15 AND VAR11>REF(VAR11,1) AND MA(C,10)>REF(MA(C,10),1);
VAR17:=FILTER(VAR16 AND VAR14>REF(VAR14,1) AND VAR13>REF(VAR13,1),10);
VAR18:=COUNT(CROSS(VAR10,0),3)>=1 AND VAR11>REF(VAR11,1);
VAR19:=VAR18 AND MA(C,5)>REF(MA(C,5),1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA(C,30);
VAR20:=EMA((VAR1-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13);
VAR21:=EMA(VAR20,3);
VAR28:=V>=REF(V,1)*2 AND C>=REF(C,1)*1.045 AND REF(C,1)<=REF(C,5)*1.05;
VAR29:=VAR28 AND HHV(REF(H,1),5)/LLV(REF(L,1),5)<=1.1 AND CROSS(VAR20,VAR21);
红钻:VAR29;