CN1:=HHV(V,5);
CN2:=O>C;
CN02:=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);
累积流入:=SUM(CN07,9)/10000;
累积流出:=SUM(CN06,9)/10000;
净流入:=(累积流入-累积流出);
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
多:累积流出>累积流入 AND crOSS(主力持仓,累积流入) AND REF(主力持仓,1)