N:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV:=vol*(C+L+H)/3;
MN:=SUM(AMOV,N)/SUM(VOL,N);
NOTEXT1:IF(C>=MN,MN,DRAWNULL),LINETHICK3,COLORYELLOW;
NOTEXT2:IF(C<MN,MN,DRAWNULL),LINETHICK3,COLORGRAY;
ZN:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));
ZAMOV:=VOL*(C+L+H)/3;
ZMN:=SUM(ZAMOV,ZN)/SUM(VOL,ZN);
ZNOTEXT1:IF(C>=ZMN,ZMN,DRAWNULL),LINETHICK3,COLORYELLOW;
ZNOTEXT2:IF(C<ZMN,ZMN,DRAWNULL),LINETHICK3,COLORGRAY;