大入:=(transactvol(1,2)-transactvol(1,3))*100/capital;
大出:=(transactvol(2,3)-transactvol(1,3))*100/capital;
特入:=transactvol(1,3)*100/capital;
特出:=transactvol(2,3)*100/capital;
中入:=(transactvol(1,1)-transactvol(1,2))*100/capital;
中出:=(transactvol(2,1)-transactvol(2,2))*100/capital;
小入:=(transactvol(1,0)-(transactvol(1,3)+transactvol(1,2)+transactvol(1,1)))*100/capital;
小出:=(transactvol(2,0)-(transactvol(2,3)+transactvol(2,2)+transactvol(2,1)))*100/capital;
跟风散户入:=中入+小入;
跟风散户出:=中出+小出;
主入:=transactvol(1,2)*100/capital;
主出:=transactvol(2,2)*100/capital;
DDX2:(ordervol(1,2)-ordervol(2,2))*100/capital,colorstICK,LINETHICK2;
主力DDX:SUM(DDX2,0),COLORRED;
主买:SUM(主入,0),COLORff00ff,LINETHICK4;
主卖:SUM(主出,0),COLOR00ff00,LINETHICK4;
跟买:SUM(跟风散户入,0),COLOR11FFFF,LINETHICK2;
跟卖:SUM(跟风散户出,0),COLOR00ff00,LINETHICK2;
DRAWTEXT( BARSTATUS=2,主买 ,'主买' ),COLORff00ff;
DRAWTEXT( BARSTATUS=2,主卖 ,'主卖' ),COLOR00ff00;
DRAWTEXT( BARSTATUS=2,跟买 ,'跟风买' ),COLOR11FFFF;
DRAWTEXT( BARSTATUS=2,跟卖 ,'跟风卖' ),COLOR00ff00;
DRAWTEXT( BARSTATUS=2,主力DDX ,'主力DDX' ),COLORRED;
买:(跟买/跟卖)>1.2 and (主买/主卖)>1.2 and DYNAINFO(14)*100<3;