N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV:=vol*(C+L+H)/3;
MN:SUM(AMOV,N1)/SUM(VOL,N1),COLOR00FF00,LINETHICK3;
{ _通达信股票指标公式}
IF(MN>=REF(MN,1),MN,DRAWNULL),COLORFF00FF,LINETHICK3;
C1:=C>=MN;
C2:=C<MN;
AA:=C1>=C2 ;
BB:=C2>C1 ;
DRAWICON(crOSS(C1,C2),L-0.1,23);
DRAWICON(CROSS(C2,C1),H+0.1,15);
STICKLINE(AA,C,O,3,0),COLORRED;
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(BB,C,O,3,0),COLOR00FF00;
STICKLINE(BB,H,L,0,0),COLOR00FF00;
STICKLINE(AA,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(BB,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(BB,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;