通达信【量比分析】副图指标 明显看出大牛股的价升量涨 源码 附图
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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
M1赋值:5
输出量比:成交量/REF(成交量的M1日简单移动平均,1)*10,LINETHICK0,画黄色,NODRAW
二十日输出量比:SUM(成交量/REF(成交量的M1日简单移动平均,1)*1,20),NODRAW
一十日输出量比:SUM(成交量/REF(成交量的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)),'')),画黄色
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)),'')),画黄色