量比利器指标 通达信公式(附图)

[复制链接]
查看150 | 回复0 | 2021-8-20 19:01:03 | 显示全部楼层 |阅读模式

M1:=5;
量比:VOL/REF(MA(VOL,M1),1)*10,LINETHICK0,COLORYELLOW,NODRAW;
二十日量比:SUM(VOL/REF(MA(VOL,M1),1)*1,20),NODRAW;
一十日量比:SUM(VOL/REF(MA(VOL,M1),1)*1,10),NODRAW;
DRAWRECTREL(400,0,635,320,RGB(0,100,0));
DRAWRECTREL(470,0,550,320,RGB(0,200,50));
DRAWRECTREL(470,0,470+CONST(一十日量比*400/400),320,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.020,0,STRCAT(STRCAT('一十日量比: ',CON2STR(一十日量比,2)),'')),COLORYELLOW;
DRAWRECTREL(400,460,635,750,RGB(0,50,160));
DRAWRECTREL(470,460,550,750,RGB(0,200,50));
DRAWRECTREL(470,460,470+CONST(二十日量比*400/400),750,RGB(150,10,0));
DRAWTEXT_FIX(1,0.42,0.50,0,STRCAT(STRCAT('二十日量比: ',CON2STR(二十日量比,2)),'')),COLORYELLOW;

14O616136420-1U05.jpg

14O616136420-1U05.jpg

 

回复

使用道具 举报

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

本版积分规则