AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE进出量:=买量+卖量; 十日内净流入:SUM(进出量,10),LINETHICK2,COLORyellow; TJ:=进出量>0 AND REF(进出量,1)<0; 连红:IF(进出量>0,BARSLAST(TJ)+1,0),COLORFF00FF; DDX翻红:COUNT(进出量>0,10),COLORRED; TJ1:=CROSS(0,十日内净流入); FT:=BARSLAST(TJ1); 走熊:IF(十日内净流入<0,FT+1,0),COLORFFFF00; TJ2:=CROSS(十日内净流入,0); FT2:=BARSLAST(TJ2); 走牛:IF(十日内净流入>0,FT2+1,0),COLORRED; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 成交:=vol,linethick0; 主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE进出流量:=主动买盘+主动卖盘; STICKLINE(主动卖盘<0,0,主动卖盘,4,0),COLORcccc33; STICKLINE(主动卖盘<0,0,主动卖盘,1.2,0),COLOR99ffcc; STICKLINE(主动买盘>0,0,主动买盘,4,0),COLOR000099; STICKLINE(主动买盘>0,0,主动买盘,1.5,0),COLORff00ff; |