VAR1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
VAR2:=MOD(FROMOPEN,VAR1);
VAR3:=IF(VAR2<0.5,VAR1,VAR2);
VVOL:IF(CURRBARSCOUNT=1,VOL*VAR1/VAR3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND (SETCODE=0 OR SETCODE=1),VVOL,0,(-1),(-1)),COLOR00C0C0;
主力密码:VOL,VOLSTICK;
VAR4:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
VAR5:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR4),0);
VAR6:=EMA(VAR5,3)-MA(VAR5,9);
VAR7:=EMA(IF(VAR6>0,VAR6,0),3);
VAR8:=MA(CLOSE,3);
STICKLINE(VAR7>REF(VAR7,1) AND VAR8>REF(VAR8,1),0,VAR7,0.3,1),COLORYELLOW;
VAR9:=REF(CLOSE,1);
VAR10:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
VAR11:=(CLOSE-VAR9)*VAR10;
VAR12:=SUM(VAR11,0);
VAR13:=FORCAST(VAR12,18);
VAR14:=FORCAST(VAR12,36);
资金强弱:VAR13-VAR14;
资金趋势:MA(资金强弱,10),COLORWHITE;