VARA:=REF(L,1)*0.9;
VARB:=LOW*0.9;
VARC:=(VARB*vol+VARA*(CAPITAL-VOL))/CAPITAL;
VARD:=EMA(VARC,30);
VARE:=CLOSE-REF(C,1);
VARF:=MAX(VARE,0);
VAR10:=Abs(VARE);
VAR11:=SMA(VARF,7,1)/SMA(VAR10,7,1)*100;
VAR12:=SMA(VARF,13,1)/SMA(VAR10,13,1)*100;
VAR13:=SMA(MAX(VARE,0),6,1)/SMA(ABS(VARE),6,1)*100;
VAR14:=-200*(HHV(H,60)-CLOSE)/(HHV(H,60)-LLV(L,60))+100;
VAR15:=(CLOSE-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
VAR16:=SMA((SMA(VAR15,4,1)-50)*2,3,1);
VAR17:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR18:=SMA(VAR17,4,1);
VAR19:=SMA(VAR18,3,1);
VAR1A:=(HHV(H,30)-CLOSE)/CLOSE*100;
VAR1B:=VAR13<=25 AND VAR14< -95 AND VAR1A>20 AND VAR16< -30 AND VAR19< 30 AND (VARD-CLOSE)>=-0.25 AND VAR11< 22 AND VAR12< 28;
XG:VAR1B;