日换:V/CAPITAL*100,LINETHICK0;
HS:=V/CAPITAL*100;
三换:SUM(HS,3),COLORFFFFFF,LINETHICK2;
五换:SUM(HS,5),COLORFFFFFF,LINETHICK2;
百日总:=SUM(V,100);
百日换:百日总/CAPITAL*100,LINETHICK0;
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1,LINETHICK0;
总量:=买量+卖量,LINETHICK0;
净量:=买量-卖量,LINETHICK0;
主动买万:买量/10000,COLORRED,NODRAW;
主动卖万:卖量/10000,COLORGREEN,NODRAW;
总手:主动买万+主动卖万,LINETHICK0;
总净:主动买万-主动卖万,LINETHICK0;
MAA:=MA( CLOSE ,2) ;
STICKLINE(C>MAA,总量,1,4,1 ),COLOR00FFFF;
STICKLINE(C<MAA,总量,1,4,1 ),COLORFF00FF;
STICKLINE(净量<0,1,总量,4,1),COLORFFFF00;
STICKLINE(C<MAA AND 净量>0,净量,1,4,1 ),COLOR0000FF;
STICKLINE(V>=2*REF(V,1),1,总量,4,1),COLOR0000FF;
STICKLINE(总量>1,总量,0,2.8,0),COLOR353500;
STICKLINE(总量>1,总量,0,2,0),COLOR555500;
STICKLINE(总量>1,总量,0,1,0),COLOR757500;
STICKLINE(总量>1,总量,0,0.1,0),COLOR959500;
STICKLINE(买量>0,0,买量,2.8,0),COLOR000099;
STICKLINE(买量>0,0,买量,2,0),COLOR0000AA;
STICKLINE(买量>0,0,买量,1,0),COLOR0000FF;
STICKLINE(买量>0,0,买量,0.1,0),COLORCC00FF;
STICKLINE(净量>0,0,净量,2.8,0),COLOR0033FF;
STICKLINE(净量>0,0,净量,2,0),COLOR0077FF;
STICKLINE(净量>0,0,净量,1,0),COLOR00BBFF;
STICKLINE(净量>0,0,净量,0.1,0),COLOR00FFFF;
STICKLINE(净量<0,1,净量,3.8,1),COLORFFFF00;
STICKLINE(净量<0,0,净量,3,0),COLOR005500;
STICKLINE(净量<0,0,净量,2,0),COLOR009900;
STICKLINE(净量<0,0,净量,1,0),COLOR00BB00;
STICKLINE(净量<0,0,净量,0.1,0),COLOR00FF00;
STICKLINE(C<MAA AND 净量>0,净量,0,2.8,0 ),COLOR777777;
STICKLINE(C<MAA AND 净量>0,净量,0,2,0 ),COLOR999999;
STICKLINE(C<MAA AND 净量>0,净量,0,1,0 ),COLORBBBBBB;
STICKLINE(C<MAA AND 净量>0,净量,0,0.1,0 ),COLORFFFFFF;
MA5:MA(VOL,5);
MA10:MA(VOL,10);
MA20:MA(VOL,20),COLOR00FFFF;
DRAWICON(CROSS(MA5,MA10),(MA5 - 0.01),11);
DRAWICON(CROSS(MA10,MA5),MA10,12);
N:=35;N1:=35;
今V:=总量/10000;
昨V:=REF(V,1)/10000;
中点:=REFDATE(HHV(V,N)/2,DATE);
DRAWTEXT(CURRBARSCOUNT=N,中点*1.3,'昨比量能:'),COLORDD00FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,昨V,0),COLORFF3300;
STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,昨V,0),COLORFF7700;
STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,昨V,0),COLORFF9900;
STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,昨V,0),COLORFFDD00;
STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,今V,0),COLOR0099FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,今V,0),COLOR00DDFF;