VAR1:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
VAR2:=MA(CLOSE,0);
VAR3:=((ATAN((VAR2-REF(VAR2,1)))*3.1416)*10);
VAR4:=MA(CLOSE,13);
VAR8:=(CLOSE+LOW+HIGH)/3;
VAR9:=ATAN(EMA(VAR8,13)-REF(EMA(VAR8,13),1))*3.1416*10;
XG:FILTER(VAR9>1 AND EMA(VAR8,13)>REF(EMA(VAR8,8),1),10);