VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
资金:MA(VAR5*vol,16) ,LINETHICK0;
STICKLINE(资金>0,资金,0,2,0), COLORRED;
STICKLINE(资金<0,资金,0,2,0) ,COLORGREEN;
成交额:VOL/10000*C/100,LINETHICK0;
VAR21:=VOL;
能量:=V-MA(V,20);
KJ:=MA(能量,21);
K:=SMA(能量,21,1);
D:=SMA(K,7,1);
J:=3*K-2*D;
macd:=J*0.5,COLORSTICK;
STICKLINE(MacD>=0,0,MACD,0.5,0),COLORBLUE;
STICKLINE(MACD<0,0,MACD,0.5,0),COLORYELLOW;