X CN1:=HHV(V,5);{5日最高量} CN2:=O> C; CN02:=C> O; CN03:=C= O; CN04:=((SUM(V,5)/CN1)); CN05:=IF(CN04> 0.3,1,0);{大资金} CN06:=IF(CN2 AND CN05,V,0);{大资金流出} CN07:=IF(CN02 AND CN05,V,0);{大资金流入} CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金} 累积资金流入:SUM(CN07,9),COLORMAGENTA; 累积资金流出:SUM(CN06,9); 净流入:(累积资金流入-累积资金流出),COLOR0000FF; 净流入MA3:MA(净流入,3),DOTLINE,COLORBLUE; 净流入MA5:MA(净流入,5),DOTLINE,COLORWHITE; 不明流向大资金:SUM(CN08,9),COLORGREEN; {资金流向} QJJ:=VOL / ((H - L) * 2 - ABS(C - O)); XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C- L)),VOL / 2)) + IF(C > O,0 - QJJ