超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;
近5日流入:SUM((超B+大B+中B+小B)-(超S+大S+中S+小S),5),NODRAW,COLORYELLOW;
近5日大宗流入:SUM((超B+大B)-(超S+大S),5),NODRAW,COLORLIRED;
流入:SUM((超B+大B+中B+小B)-(超S+大S+中S+小S),1),NODRAW,COLORCYAN;
大宗流入:SUM((超B+大B)-(超S+大S),1),NODRAW,COLORRED;
A:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
STICKLINE((A>0),0,A,2,0)COLORRED;
STICKLINE((A<0),0,A,2,0)COLOR605080;
流入20日记天数:COUNT((A>0),20),NODRAW,COLOR0040FF;
流出20日记天数:COUNT((A<0),20),NODRAW,COLOR605080;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
百日涨停次数:COUNT(涨停,100),NODRAW;