MTR:=MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L));
ATR:=MA(MTR,14);
BOLL:=MA(C,20);
UB:=BOLL+2*STD(C,20);
LB:=BOLL-2*STD(C,20);
HH:=HHV(H,30);
LL:=LLV(L,30);
LC:=(C-LL)/(HH-LL)<0.4;
SK:=UB-BOLL
KX:=C/REF(C,1)>1.01 AND C>MA(C,10) AND VOL>MA(VOL,5);
A1:=KX AND LC AND BARSLAST(SK)<5;