周成交量
WKO:=OPEN#WEEK;
WKH:=HIGH#WEEK;
WKL:=LOW#WEEK;
WKC:=CLOSE#WEEK;
WA:=DATE#WEEK;
K:=IF(WA>REF(WA,1) OR BARSTATUS=1,1,0);
W:=BARSLAST(K)+1;{周天数}
W1:=REFXV(W,1);
W2:=REFXV(W,2);
WV:=SUM(V,W);
X:=BARSNEXT(W1=W OR W1=1);
VV:=REFX(WV,X);
DTT:=PERIOD=5;{日线周期}
YS:=IF(WKC=WKO AND WKC
YT:=IF((W=1 AND W2=1) OR (W=2 AND W1=1),4,IF(W=1 OR W1=1,2,6));
STICKLINE(YS=2 AND YT=6,0,VV,5.8,0),COLOR3333FF;
STICKLINE(YS=2 AND YT=4,0,VV,3.8,0),COLOR3333FF;
STICKLINE(YS=2 AND YT=2,0,VV,1.8,0),COLOR3333FF;
STICKLINE(YS=1 AND YT=2,0,VV,1.8,0),COLOR808000;
STICKLINE(YS=1 AND YT=4,0,VV,3.8,0),COLOR808000;
STICKLINE(YS=1 AND YT=6,0,VV,5.8,0),COLOR808000;