源码:无未来
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;
散户增减(万元):DT;//不输出线性
散户持仓线:SUM(DT,22),COLOR888888,LINETHICK2;
STICKLINE(DT>0,散户持仓线,散户持仓线+DT,2,0),COLORFF00FF;
STICKLINE(DT<0,散户持仓线+DT,散户持仓线,2,0),COLORFF8800;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),散户持仓线,'散户线 ');
DRAWTEXT(FILTER(ISNULL(REFX(&CLOSE,60)),59),散户持仓线*0.98,'证券代码: '+CODE+' 证券名称: '+STKNAME+''),ColorFFAA00;