VAR1:=HHV(vol,7);
VAR2:=OPEN>CLOSE;
VAR3:=CLOSE>OPEN;
VAR4:=CLOSE=OPEN;
VAR5:=SUM(VOL,7)/VAR1;
VAR6:=IF(VAR5>0.3,1,0);
VAR7:=IF(VAR2 AND VAR6,VOL,0);
VAR8:=IF(VAR3 AND VAR6,VOL,0);
VAR9:=IF(VAR4 AND VAR6,VOL,0);
累积资金流入:SUM(VAR8,9),COLORMAGENTA;
累积资金流出:SUM(VAR7,9);
净流入:累积资金流入-累积资金流出,COLORLIRED;
确认线1:MA(净流入,3),DOTLINE,COLORWHITE,LINETHICK3;
确认线2:MA(净流入,5),DOTLINE,COLORRED,LINETHICK3;
混沌大资金:SUM(VAR9,9),COLORGREEN;