{完全换手}
VARIABLE:K=1;
VAR1:=SUM(vol,0);
VAR2:=VAR1/CAPITAL;
N:=FLOOR(VAR2);
IF N=REF(N,1)+1 THEN BEGIN
STICKLINE(C,0,7,4,4);
DRAWTEXT(C,6,' '+NUMTOSTR( N)),ALIGN0,COLORRED;
DRAWTEXT(C,4,' 次'),ALIGN0,COLORGREEN;
DRAWTEXT(C,2,' '+NUMTOSTR( K)+'天'),ALIGN0,COLORGREEN;
K:=1;
END
ELSE
K:=K+1;
{当日交易}
成交占盘:VOL/capital*100,VOLSTICK;
通吃占盘:((SELFDATA('主买特大')+SELFDATA('主买大单'))-(SELFDATA('主卖特大')+SELFDATA('主卖大单')))/CAPITAL*100,coloryellow,COLOR3D;
庄家吃货比:通吃占盘/成交占盘,linethick0,Colorred;
STICKLINE(庄家吃货比>0.2,5,成交占盘,5,0),COLORRED;
{ _大智慧股票指标公式}
MAHSL1:MA(vol,5)/capital*100,colorwhite;
MAHSL2:MA(vol,30)/capital*100,coloryellow;
{逐笔主动率}
主动买盘:=SELFDATA('主买特大')+SELFDATA('主买大单')+SELFDATA('主买中单')+SELFDATA('主买小单');
主动卖盘:=SELFDATA('主卖特大')+SELFDATA('主卖大单')+SELFDATA('主卖中单')+SELFDATA('主卖小单');
主动总量:=主动买盘+主动卖盘;
主动净额:=主动买盘-主动卖盘;
主动率:主动净额/主动总量*100,LINETHICK0;
五日主动率:SUM(主动净额,5)/SUM(主动总量,5)*100,LINETHICK0;
{主笔通吃率}
主笔买盘:=SELFDATA('主买特大')+SELFDATA('主买大单');
主笔卖盘:=SELFDATA('主卖特大')+SELFDATA('主卖大单');
主笔净额:=主动买盘-主动卖盘;
通吃率:主笔净额/VOL*100,LINETHICK0;
三日通吃率:SUM(主笔净额,3)/SUM(VOL,3)*100,LINETHICK0;
五日通吃率:SUM(主笔净额,5)/SUM(VOL,5)*100,LINETHICK0;