HJ_1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
HJ_2:=MOD(FROMOPEN,HJ_1);
HJ_3:=IF(HJ_2<0.5,HJ_1,HJ_2);
VVOL:IF(CURRBARSCOUNT=1,VOL*HJ_1/HJ_3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND (SETCODE=0 OR SETCODE=1),VVOL,0,(-1),(-1)),COLOR00C0C0;
主力密码:VOL,VOLSTICK;
HJ_4:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
HJ_5:=SUM(IF(CLOSE=REF(CLOSE,1),0,HJ_4),0);
HJ_6:=EMA(HJ_5,3)-MA(HJ_5,9);
HJ_7:=EMA(IF(HJ_6>0,HJ_6,0),3);
HJ_8:=MA(CLOSE,3);
STICKLINE(HJ_7>REF(HJ_7,1) AND HJ_8>REF(HJ_8,1),0,HJ_7,0.3,1),COLORYELLOW;
HJ_9:=REF(CLOSE,1);
HJ_10:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
HJ_11:=(CLOSE-HJ_9)*HJ_10;
HJ_12:=SUM(HJ_11,0);
HJ_13:=FORCAST(HJ_12,18);
HJ_14:=FORCAST(HJ_12,36);
资金强弱:HJ_13-HJ_14;
资金趋势:MA(资金强弱,10),COLORWHITE;
{-----------------------------------}