VAR5R1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
VAR5R2:=MOD(FROMOPEN,VAR5R1);
VAR5R3:=IF(VAR5R2<0.5,VAR5R1,VAR5R2);
VAR5R4:=IF(CURRBARSCOUNT=1,VOL*VAR5R1/VAR5R3,VOL),NODRAW;
VAR5:=VAR5R4-REF(VOL,1);
主力持仓量:SUM(VAR5,0)/1000,COLORRED,LINETHICK2;
8日均线:MA(主力持仓量,8),COLORYELLOW;
55日均线:MA(主力持仓量,55),COLORCYAN;