M:=10;
N:=3;
vol,VOLSTICK;
MA6:MA(VOL,6);
MA36:MA(VOL,36);
VAR1:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
STICKLINE(主买>0,0,主买,1,0),COLORLIRED;
买卖差:=(主买+主卖);
买卖比:ABS(主买/主卖);
N日内净流入:SUM (买卖差,N), LINETHICK2,COLORGREEN;
流入:IF (N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORMAGENTA,LINETHICK2;
M日内翻红天数:=COUNT(买卖差>0,M);
连红天数:=BArslASTCOUNT(买卖差>0);