X:=C-REF(MA(C,21),13);
LGL:=IF(EMA(C,5)/EMA(EMA(C,8),13)<=0.85 AND C/REF(C,1)>0.905 AND C/REF(C,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
ZT:=C/REF(C,1)>1.095 AND C=H;
KB:=REF(REF(C,2)/REF(C,3)<1.095 AND COUNT(ZT,2)=2 AND ZT,1) AND O/REF(C,1)>1.095 AND C<O;
XG:REF(KB,1) AND C/REF(C,1)>1.01;