成交量:=vol,VOLSTICK;
MA5:=MA(VOL,5);
MA10:=MA(VOL,10);
MA20:=MA(VOL,20),LINETHICK0;
MA35:=MA(VOL,35),LINETHICK0;
AAA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE
O0:0;
总量:100,LINETHICK0;
主买占%:主买/成交量*100,COLORRED,LINETHICK0;
主卖占%:主卖/成交量*100,COLOR00FF00,LINETHICK0;
比差:=主买占%-主卖占%;
STICKLINE(CURRBARSCOUNT=1 AND 100>0,100,0,2,1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=1 AND 主卖占%>0,主卖占%,0,1.8,0),COLORBLUE;
STICKLINE(CURRBARSCOUNT=1 AND 主买占%>0,主买占%,0,1,0),COLORRED;
DRAWICON(CURRBARSCOUNT=1 AND 5>0,0,97);
DRAWTEXT(CURRBARSCOUNT=1,主买占%+5,'____主买'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,主卖占%+5,'____主卖'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,102,'总量'),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,22,'----20'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,32,'----30'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,42,'----40'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,52,'----50'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,62,'----60'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,72,'----70'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,82,'----80'),COLORFFFFFF;