VAR1:=INTPART(SUM(V,0)/CAPITAL);
VAR2:=VAR1>REF(VAR1,1) OR BARSSINCE(CLOSE)=0;
VAR3:=BARSLAST(VAR2)+1;
VAR4:=VAR3< REF(VAR3,1);
VAR5:=IF(VAR4,REF(VAR3,1)+1,VAR3);
VAR6:=SUM(VAR4,0);
VAR7:=DMA(AMOUNT/vol/100,VOL/CAPITAL);
VAR8:=CLOSE/(REF(CLOSE,1))>1.05 AND (HIGH/CLOSE< 1.01);
VAR9:=(FILTER(VAR8>0,34)AND DYNAINFO(4)>0)*8;
VAR10:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,6),2.1*FORCAST(V,6));
XG:FILTER(VAR10,14);