通达信版周成交量指标公式附图
周成交量
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<REF(WKC,W) OR WKC<WKO,1,2);
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;
声明:
本站所有文章文字内容如无特殊说明均为原创编写,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台!指标公式源码来源于网络收集和用户上传,分享目的仅供参考与学习,如需商用,请购买正版,否则后果和损失自行承担。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件 联系我们进行下架处理。指标公式案例截图仅代表过去,依此操作,责任自负。本站不提供技术培训、安装调试、股票推荐等金融服务。