分时主力源码(收费账户显示正常)介绍
分时主力源码(收费账户显示正常)
分时主力源码(收费账户显示正常)
这个公式源码就是夏老师的。 改成免费账户也能显示的公式。
variable:FSDDX=0;
FSDDX:=(ordervol(1,0)+ordervol(2,0))/capital*100;
FSDDX累积:=SUM(FSDDX,0);
FSPD:=FSDDX累积=0;
DDX1:=(ordervol(1,2)-ordervol(2,2))/capital*100;
DDX1累积:=SUM(DDX1,0);
DX:=("DDEDATA@BIGORDERSCALE"(1,2)-"DDEDATA@BIGORDERSCALE"(2,2))*SUM(VOL,0)/capital*100;
累积:if(FSPD,DX,DDX1累积),colorstick,layer7,PRECIS0;
DDLR:="SJY.DDLR#day";
DDLC:="SJY.DDLC#day";
TDLR:="SJY.TDLR#day";
TDLC:="SJY.TDLC#day";
流入:SUM(AMOUNT*(TDLR+DDLR)/10000,0),colorred,linethick0;
流出:SUM(AMOUNT*(TDLC+DDLC)/10000,0),colorgreen,linethick0;
净:(流入-流出),linethick0;
DRAWTEXTABS(1,10,'合计流入:'+ NUMTOSTRN(流入,2)),COLORFFFF00,LINETHICK2;
DRAWTEXTABS(160,10,'合计流出:'+ NUMTOSTRN(流出,2)),colorgreen,LINETHICK2;
DRAWTEXTABS(320,10,'总买:'+ NUMTOSTRN(净,2)),COLOR11FFFF,LINETHICK4;
drawtextabs(0,0,'主力分时BBD(单位:万)'),colorred;
gd18951