input:N(20),HSLH(40,1,999),JCL(-5,-50,50),ZF(10,-50,50);
HS:=vol/capital;
DDTD:=BIGORDER(1,3)-BIGORDER(2,3);
特大单:=HS*DDTD*1000;
DDDD:=(BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3));
大单:=HS*DDDD*1000;
DDZD:=(BIGORDER(1,1)-BIGORDER(2,1))-(BIGORDER(1,2)-BIGORDER(2,2));
中单:=HS*DDZD*1000;
DDXD:=-(BIGORDER(1,1)-BIGORDER(2,1));
小单:=HS*DDXD*1000;
流入:=2*特大单+大单+0.1*中单-0.5*小单;
IF 流入<0 THEN
HSL:=-HS*100;
ELSE
HSL:=HS*100;
换手:=HSL;
换手率和:=sum(换手,n);
SS:=VOL*CLOSE;
SSC:=SUM(SS,N);
SSV:=SUM(VOL,N);
加权均价:=ssc/ssv;
价差率:=(C-加权均价)*100/C;
SP:=REF(CLOSE , N);
涨幅:=(C/SP-1)*100;
not((DYNAINFO(4)=0)) AND 换手率和>HSLH AND 价差率<JCL 涨幅<ZF; |