发个主力散户持仓统计指标,无未来,大智慧用的,希望对你有用。
不喜勿喷。
大家学习为主。
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0*(JJ-MIN(CLOSE,OPEN));
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:SUM(DT,66),COLORYELLOW,LINETHICK1;
STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLORRED;
STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLORGREEN;
TD:=买1-卖1;
DA:=买2-卖2;
XD1:=1-(买1+买2);
XD2:=1-(卖1+卖2);
TZ:=V/SUM(V,60)*100;
DTT:=((XD1-XD2)/10000)/TZ;
散户持仓:SUM(DTT,22),COLORWHITE,LINETHICK1;
STICKLINE(DTT>0,散户持仓,散户持仓+DTT,1,0),COLORFF00FF;
STICKLINE(DTT<0,散户持仓+DTT,散户持仓,1,0),COLORBLUE;