MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA200:=MA(C,200);
MA300:=MA(C,300);
VAR1:=MA5>MA300;
VAR2:=MA200>MA300;
VAR3:=MA120>MA200;
VAR4:=MA60>MA120;
VAR5:=MA30>MA60;
VAR6:=MA20>MA30;
VAR7:=MA10>MA20;
VAR8:=MA5>MA10;
VAT1:=MA10>REF(MA10,1);
VAT2:=MA20>REF(MA20,1);
VAT3:=MA30>REF(MA30,1);
VAT4:=MA60>REF(MA60,1);
VAT5:=MA120>REF(MA120,1);
VAT6:=MA200>REF(MA200,1);
VAT7:=MA300>REF(MA300,1);
VARB:=CLOSE-LLV(L,9);
VARBB:=HHV(H,9)-LLV(L,9);
VARBBB:=((CLOSE-LLV(L,9)+0.00001))/(HHV(H,9)-LLV(L,9))*100;
ZT:=C=ZTPRICE(REF(C,1),0.1) AND C=H;
ZT1:=C=ZTPRICE(REF(C,1),0.2) AND C=H;
VATA:=EMA(EMA(VARBBB,5),5);
VATB:=VAR1+VAR2+VAR3+VAR4+VAR5+VAR6+VAR7+VAR8+VAT1+VAT2+VAT3+VAT4+VAT5+VAT6+VAT7;
XG:VATA<80 AND VATB>=11 AND ZT AND LLV(L,20)<L,COLORYELLOW;