N:=25;
G1:=BArslAST(DATE=1151223);
D1:=BARSLAST(DATE=1150826);
ZF1:=REF((C-REF(C,D1+1))/REF(C,D1+1)*100,G1);
V1:=REF(SUM(vol,D1+1),G1);
L1:=REF(LLV(L,D1+1),G1);
D2:=BARSLAST(L=LLV(L,G1+1));
V2:=REF(SUM(VOL,G1+1),D2);
L2:=REF(LLV(L,G1+1),D2);
V3:=SUM(VOL,D2+1);
TJ1:=RANGE(ZF1,N,N*2);
TJ2:=L1
TJ3:=crOSS(V3>V1,0.5);
TJ4:=TJ1 AND TJ2 AND TJ3;
GG:=BARSLAST(TJ4);
ZF2:=(REF(C,GG)/REF(C,D2+1)-1)*100;
DD:IF(ZF2
DRAWICON(XG1 AND ZF2
REF(H,G1)COLORRED DOTLINE;
REF(L,D1)COLORGREEN DOTLINE;