ZSTB1公式源码---(其他类型)--ZSTB引入公式--副图:
VOL0:VOL;
VOL1:REF(VOL,1);
VOL2:REF(VOL,2);
VOL3:REF(VOL,3);
VOL4:REF(VOL,4);
VOL5:REF(VOL,5);
VOL6:REF(VOL,6);
VOL7:REF(VOL,7);
VOL8:REF(VOL,8);
VOL9:REF(VOL,9);
MAXV:HHV(VOL,10);
R0:CLOSE>OPEN;
RR0:IF(C=O AND C>=REF(C,1),1,0);
R1:REF(CLOSE,1)>REF(OPEN,1);
RR1:IF(REF(C,1)=REF(O,1) AND REF(C,1)>=REF(C,2),1,0);
R2:REF(CLOSE,2)>REF(OPEN,2);
RR2:IF(REF(C,2)=REF(O,2) AND REF(C,2)>=REF(C,3),1,0);
R3:REF(CLOSE,3)>REF(OPEN,3);
RR3:IF(REF(C,3)=REF(O,3) AND REF(C,3)>=REF(C,4),1,0);
R4:REF(CLOSE,4)>REF(OPEN,4);
RR4:IF(REF(C,4)=REF(O,4) AND REF(C,4)>=REF(C,5),1,0);
R5:REF(CLOSE,5)>REF(OPEN,5);
RR5:IF(REF(C,5)=REF(O,5) AND REF(C,5)>=REF(C,6),1,0);
R6:REF(CLOSE,6)>REF(OPEN,6);
RR6:IF(REF(C,6)=REF(O,6) AND REF(C,6)>=REF(C,7),1,0);
R7:REF(CLOSE,7)>REF(OPEN,7);
RR7:IF(REF(C,7)=REF(O,7) AND REF(C,7)>=REF(C,8),1,0);
R8:REF(CLOSE,8)>REF(OPEN,8);
RR8:IF(REF(C,8)=REF(O,8) AND REF(C,8)>=REF(C,9),1,0);
R9:REF(CLOSE,9)>REF(OPEN,9);
RR9:IF(REF(C,9)=REF(O,9) AND REF(C,9)>=REF(C,10),1,0);
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
超大单:(超B)-(超S),NODRAW;
大单:(大B)-(大S),NODRAW;
中单:(中B)-(中S),NODRAW;
小单:(小B)-(小S),NODRAW;
DAZHI:CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;