成交量倍数标注画线副图公式

[复制链接]
查看71 | 回复0 | 2022-7-24 07:00:17 | 显示全部楼层 |阅读模式

在成交量上画横线,今天是昨天1倍量在当天成交量上画一道横线,今天是昨天2倍量在当天成交量上画二道横线,今天是昨天3倍量在当天成交量上画三道横线,
 今天是昨天4倍量在当天成交量上画四道横线,今天是昨天5倍量在当天成交量上画五道横线,今天是昨天6倍量在当天成交量上画六道横线。显示倍数

 

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,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
TJ1:=V>=REF(V,1) AND V<REF(V,1)*2;
TJ2:=V>=REF(V,1)*2 AND V<REF(V,1)*3;
TJ3:=V>=REF(V,1)*3 AND V<REF(V,1)*4;
TJ4:=V>=REF(V,1)*4 AND V<REF(V,1)*5;
TJ5:=V>=REF(V,1)*5 AND V<REF(V,1)*6;
TJ6:=V>=REF(V,1)*6 AND V<REF(V,1)*7;
STICKLINE(TJ1,V/2,V/2,2,0)COLORYELLOW;
STICKLINE(TJ2,V*2/3,V*2/3,2,0)COLORGREEN;
STICKLINE(TJ2,V/3,V/3,2,0)COLORGREEN;
STICKLINE(TJ3,V/4,V/4,2,0)COLORRED;
STICKLINE(TJ3,V/2,V/2,2,0)COLORRED;
STICKLINE(TJ3,V*3/4,V*3/4,2,0)COLORRED;
STICKLINE(TJ4,V/5,V/5,2,0)COLORBLUE;
STICKLINE(TJ4,V*2/5,V*2/5,2,0)COLORBLUE;
STICKLINE(TJ4,V*3/5,V*3/5,2,0)COLORBLUE;
STICKLINE(TJ4,V*4/5,V*4/5,2,0)COLORBLUE;
STICKLINE(TJ5,V/6,V/6,2,0)COLORLIMAGENTA;
STICKLINE(TJ5,V/3,V/3,2,0)COLORLIMAGENTA;
STICKLINE(TJ5,V/2,V/2,2,0)COLORLIMAGENTA;
STICKLINE(TJ5,V*2/3,V*2/3,2,0)COLORLIMAGENTA;
STICKLINE(TJ5,V*5/6,V*5/6,2,0)COLORLIMAGENTA;
DRAWTEXT(TJ1,V*1.03,'1')COLORYELLOW;
DRAWTEXT(TJ2,V*1.03,'2')COLORGREEN;
DRAWTEXT(TJ3,V*1.03,'3')COLORRED;
DRAWTEXT(TJ4,V*1.01,'4')COLORBLUE;
DRAWTEXT(TJ5,V*1.01,'5')COLORLIMAGENTA;

624344047.jpg

624344047.jpg

 

回复

使用道具 举报

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

本版积分规则