自用多彩成交量 副图 源码 通达信 测试图

[复制链接]
查看29 | 回复0 | 2022-7-11 09:41:04 | 显示全部楼层 |阅读模式
这个公式主要立足于成交量均线与成交量柱的变化关系,有兴趣的朋友继续研究吧

M10:=MA(VOL,12);
M30:=MA(VOL,30);
M60:=MA(VOL,60);
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,1.5,0),COLORYELLOW;
STICKLINE(C>O,VOL,0,1.5,1),COLORRED;
STICKLINE(C<O,VOL,0,1.5,1),COLORGREEN;
STICKLINE(C=O,VOL,0,1.5,1),COLORBLUE;
STICKLINE(V=CONST(LLV(VOL,50)),0,VOL,1.5,0),COLORLIGRAY;
STICKLINE(M10>=M60 AND M10>M30 AND VOL>M30,0,VOL*0.318,1.5,1),COLORCYAN;
STICKLINE(M10<M60,0,VOL*0.318,1.5,1),COLORYELLOW;
STICKLINE((C>O AND M10<M60 AND M10>M30 AND VOL>M60),VOL,VOL*0.682,1.5,0),COLORRED;
STICKLINE(M10>=M60 AND M10<M30 AND VOL<M60,VOL*0.318,0,1.5,1),COLORMAGENTA;
STICKLINE(M10>=M60 AND M10>M30 AND M30>M60 AND VOL>M60 AND VOL<M30,VOL*0.318,0,1.5,1),COLORWHITE;
MV12:M10,COLORYELLOW;
MV30:M30,COLORRED;
MV60:M60,COLORLICYAN;


2021622828411765.png

2021622828411765.png

20216228285727311.rar

2.58 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

20216228285727311.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则