超赢分时
FSSH}
p1:=ORDERVOL(1,1);
p2:=ORDERVOL(1,2);
p3:=ORDERVOL(1,3);
p0:=0-p1-p2-p3;
n1:=ORDERVOL(2,1);
n2:=ORDERVOL(2,2);
n3:=ORDERVOL(2,3);
n0:=0-n1-n2-n3;
DT:=P0+P1-N0-N1;
当分增减: DT,ColorFF00FF, linethick0;
散户累积:Sum(DT,0),COLORYellow,linethick1;
STICKLINE(DT>0,散户累积,散户累积+DT,3,0),COLORRed;
STICKLine(DT<0,散户累积+DT,散户累积,3,0),COLORGreen;
DRAWTEXTABS(5,5,'分时散户'),COLORWhite;
{FSZL}
p1:=ORDERVOL(1,1);
p2:=ORDERVOL(1,2);
p3:=ORDERVOL(1,3);
p0:=0-p1-p2-p3;
n1:=ORDERVOL(2,1);
n2:=ORDERVOL(2,2);
n3:=ORDERVOL(2,3);
n0:=0-n1-n2-n3;
DT:=P2+P3-N2-N3;
当分增减: DT,ColorFF00FF, linethick0;
主力累积: Sum(DT,0),COLORYellow,linethick1;
STICKLINE(DT>0,主力累积,主力累积+DT,3,0),COLORRED;
STICKLine(DT<0,主力累积+DT,主力累积,3,0),COLORGreen;
DRAWTEXTABS(5,5,'分时主力'),COLORWhite;
{FSZJ}
refline:0;
p1:=ORDERVOL(1,1)*C;
p2:=ORDERVOL(1,2)*C;
p3:=ORDERVOL(1,3)*C;
p0:=0-p1-p2-p3;
n1:=ORDERVOL(2,1)*C;
n2:=ORDERVOL(2,2)*C;
n3:=ORDERVOL(2,3)*C;
n0:=0-n1-n2-n3;
流入:P2+P3,colorred,linethick0;
流出:N2+N3,colorgreen,linethick0;
净额:流入-流出,linethick0;
累积:sum(流入-流出,0),COLORYellow,linethick0;
stickline(净额>0,0,净额,4,0),colorred,linethick2;
stickline(净额<0,净额,0,4,0),colorgreen,linethick2;