主散持倉(通達信 副圖指標 源碼)用法:大紅表示主買(mǎi) 綠色表示主賣(mài)
粉紅表示散買(mǎi) 藍色表示散賣(mài)
JJZ:=(HIGH+LOW+CLOSE)/3;QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
買(mǎi)1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);
買(mǎi)2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));
賣(mài)1:=QJ0Z*(MAX(CLOSE,OPEN)-JJZ);
賣(mài)2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));
DTZ:=((買(mǎi)1+買(mǎi)2)-(賣(mài)1+賣(mài)2))/10000;
主力持倉:SUM(DTZ,66),COLORWHITE,LINETHICK1;
STICKLINE(DTZ>0,主力持倉,主力持倉+DTZ,1,0),COLOR0000FF;
STICKLINE(DTZ<0,主力持倉+DTZ,主力持倉,1,0),COLOR00FF00;
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);
TD:=TD1-TD2;DA:=DD1-DD2;
XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);
TZ:=V/SUM(V,60)*100;
DT:=((XD1-XD2)/10000)/TZ;
散戶(hù)持倉:SUM(DT,22),COLOR888888,LINETHICK1;
STICKLINE(DT>0,散戶(hù)持倉,散戶(hù)持倉+DT,1,0),COLORFF00FF;
STICKLINE(DT<0,散戶(hù)持倉+DT,散戶(hù)持倉,1,0),COLORFF8800;
(南方財富網(wǎng)SOUTHMONEY.COM)