飞狐持仓比源码
-
相关简介:PARTLINE(C0,0),COLORYELLOW; 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)); TZ:=VOL/SUM(VOL,60)*100; DDT:=((买1+买2)-
-
文章来源:股海网作者:股海网发布时间:2015-12-26浏览次数:
PARTLINE(C>0,0),COLORYELLOW;
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));
TZ:=VOL/SUM(VOL,60)*100;
DDT:=((买1+买2)-(卖2+卖1))/10000/tz;
主力持仓:=SUM(DDT,34),COLORRED,LINETHICK1;
XD1:=1-(买1+买2);
XD2:=1-(卖1+卖2);
DT:=((XD1-XD2)/10000)/TZ;
散户持仓:=SUM(DT,13),COLORWHITE;
主力:=VOL*主力持仓/10000;
散户:=VOL*散户持仓/10000;
ajb:=IF(capital>20000000,capital*33/100,IF(capital>12000000,capital*27/100,capital*22/100));
主力持仓比:100*SUM(主力,20)/(CAPITAL-ajb),COLORYELLOW;
散户持仓比:100*SUM(散户,20)/(CAPITAL-ajb),COLORGREEN;
增量:主力持仓比-散户持仓比,LINETHICK2,COLORSTICK;
持仓线:ma(增量,5),COLORWHITE;PARTLINE(增量<持仓线,持仓线),COLORBLUE;
|