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),LINETHICK4,COLORYELLOW;
NOTEXT01:IF(C>=MN,MN,DRAWNULL),LINETHICK1,COLORRED;
NOTEXT2:IF(C<MN,MN,DRAWNULL),LINETHICK1,COLORGRAY;
N1:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));
MN1:=SUM(AMOV,N1)/SUM(VOL,N1);
NOTEXT3:IF(C>=MN1,MN1,DRAWNULL),LINETHICK3,COLORYELLOW;
NOTEXT03:IF(C>=MN1,MN1,DRAWNULL),LINETHICK1,COLORMAGENTA;
NOTEXT4:IF(C<MN1,MN1,DRAWNULL),LINETHICK1,COLORGRAY;