股票公式之分时收盘
{主力资金}
je1:=(sum(ORDERVOL(1,2),0)-sum(ORDERVOL(2,2),0));
主力资金:je1*dynainfo(11)/100;
j1:"DZHEXTEND@WRITEDATA"(主力资金,1);
{逐笔大单}
t:=2;
b:=if(time =93000,transactVOL(1,t),0);
s:=if(time =93000,transactVOL(2,t),0);
bs:=sum(b,0)-sum(s,0);
逐笔资金:bs*DYNAINFO(11)/100;
j2:="DZHEXTEND@WRITEDATA"(逐笔资金,2);
{逐笔单均}
t1:=0;
b1:=if(time =93000,transactVOL(1,t1),0);
s1:=if(time =93000,transactVOL(2,t1),0);
bs1:=sum(b1,0)-sum(s1,0);
逐笔单均:=bs1*DYNAINFO(11)/100;
j3:="DZHEXTEND@WRITEDATA"(逐笔单均,3);
{逐笔仓位}
逐笔仓位1:bs/capital*100,linethick0;
j4:="DZHEXTEND@WRITEDATA"(逐笔仓位1,4);
逐笔仓位2:bs1/capital*100,linethick0;
j5:="DZHEXTEND@WRITEDATA"(逐笔仓位2,5);
{量价备份,分时复盘用}
价:="DZHEXTEND@WRITEDATA"(C,8);
量:="DZHEXTEND@WRITEDATA"(V,9);
;