通达信主力散户持仓统计指标
{主力散户统计}
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((TD1+DD1)-(TD2+DD2))/10000;
主力持仓:SUM(DT,135),COLORWHITE,LINETHICK1;
STICKLINE(DT>0,主力持仓,主力持仓+DT,2,0),COLOR0000FF;
STICKLINE(DT<0,主力持仓+DT,主力持仓,2,0),COLOR00FF00;
TD0:=TD1-TD2;DA:=DD1-DD2;XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);
TZ:=V/SUM(V,60)*100;DT0:=((XD1-XD2)/10000)/TZ;
散户持仓:SUM(DT0,22),COLOR888888,LINETHICK1;
STICKLINE(DT0>0,散户持仓,散户持仓+DT0,0.2,0),COLORMAGENTA;
STICKLINE(DT0<0,散户持仓+DT0,散户持仓,0.2,0),COLORCYAN;