通达信分时量打板用的分时副图指标 源码 附图
分时量:VOL,VOLSTICK;
冲板量:LAV2.GV#DAY,COLORYELLOW,LINETHICK2;
NOTEXT:冲板量,POINTDOT,COLORRED,LINETHICK2;
预警量:LAV2.RV#DAY,COLORGREEN,LINETHICK2;
NOTEXT1:预警量,POINTDOT,COLORYELLOW,LINETHICK2;
AM:=SUM(V,0);
J1:=C>REF(C,1);
L1:=V>MA(V,5);
J2:=C>=HHV(C,0);
L2:=V>=HHV(V,0);
STICKLINE(J1 AND L1 AND V>预警量,0,V,10,0),COLORYELLOW;
STICKLINE(J1 AND L1 AND J2 AND L2 AND V>冲板量,0,V,10,0),COLORMAGENTA;
换手:=AM/LAV2.QV#DAY;
SAT:=IF(换手>1,1,换手)*100;
SAT1:=AM/LAV2.HV#DAY;
饱和:=IF(SAT1>1,1,SAT1)*100;
DRAWRECTREL(110,10,400,90,RGB(0,75,200));
DRAWRECTREL(110,10,100+CONST(SAT*300/100),90,RGB(200,50,0));
DRAWTEXT_FIX(1,0.040,0.02,0,STRCAT('已换手:',STRCAT(CON2STR(换手*100,2),'%'))),COLORYELLOW;
DRAWRECTREL(610,10,900,90,RGB(0,75,200));
DRAWRECTREL(610,10,600+CONST(饱和*300/100),90,RGB(175,50,0));
DRAWTEXT_FIX(1,0.540,0.02,0,STRCAT('饱和度:',STRCAT(CON2STR(SAT1*100,2),'%'))),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出分时量:成交量,成交量STICK
输出冲板量:LAV2.GV#DAY,画黄色, 线宽为2
输出NOTEXT:冲板量,POINTDOT,画红色, 线宽为2
输出预警量:LAV2.RV#DAY,画绿色, 线宽为2
NOTEXT1:预警量,POINTDOT,画黄色, 线宽为2
AM赋值:0的V日累和
J1赋值:C>1日前的C
L1赋值:V>V的5日简单移动平均
J2赋值:C>=0日内C最高值
L2赋值:V>=0日内V最高值
当满足条件J1 AND L1 AND V>预警量时,在0和V之间画柱状线
当满足条件J1 AND L1 AND J2 AND L2 AND V>冲板量时,在0和V之间画柱状线
换手赋值:AM/LAV2.QV#DAY
如果换手>1返回1否则返回换手
SAT1:=AM/LAV2.HV#DAY
如果SAT1>1返回1否则返回SAT1
DRAWRECTREL(110,10,400,90,RGB(0,75,200))
DRAWRECTREL(110,10,100+CONST(SAT*300/100),90,RGB(200,50,0))
DRAWTEXT_FIX(1,0.040,0.02,0,STRCAT('已输出换手:',STRCAT(CON2STR(换手*100,2),'%'))),画黄色
DRAWRECTREL(610,10,900,90,RGB(0,75,200))
DRAWRECTREL(610,10,600+CONST(饱和*300/100),90,RGB(175,50,0))
DRAWTEXT_FIX(1,0.540,0.02,0,STRCAT('饱和度:',STRCAT(CON2STR(SAT1*100,2),'%'))),画黄色