ZHMC:=if(P1=1,(BIGORDER(2,1)-BIGORDER(2,2))*V/CAPITAL,selfdata('中单卖出')*V/CAPITAL);
ZHDX:=(ZHMR-ZHMC)*100;
中单买入:ZHMR*100,LINETHICK0;
中单卖出:ZHMC*100,LINETHICK0;
中单净买:ZHDX,PRECIS3,LINETHICK1,COLOR3d;
中单连绿天数:last(ZHDX 0),PRECIS0,colorgreen,LINETHICK0;
N日累计净买:sum(ZHDX,P2),LINETHICK0;
DRAWFLAGTEXT(ZHDX =0,0,'中单'+'1日累计买入占流通盘:'+str(sum(ZHDX,1))+'%'),COLORred;
DRAWFLAGTEXT(ZHDX 0,0,'中单'+'1日累计卖出占流通盘:'+str(sum(ZHDX,1))+'%'),COLORgreen;
DRAWFLAGTEXT(sum(ZHDX,P2) =0,0,'中单'+STR(P2)+'日累计买入占流通盘:'+str(sum(ZHDX,P2))+'%'),COLORred;
DRAWFLAGTEXT(sum(ZHDX,P2) 0,0,'中单'+STR(P2)+'日累计卖出占流通盘:'+str(sum(ZHDX,P2))+'%'),COLORgreen;
REFLINE:-1,0,1;