看量副图通达信公式 副图 源码附图
N:=55;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
{STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,3,-1);}
盘中模拟60:=IF(CURRBARSCOUNT=1 AND PERIOD=4,VOL*60/MOD(FROMOPEN,60),VOL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=4,盘中模拟60,0,-1,-1),COLOR00C0C0;
预量:=IF(CURRBARSCOUNT=1 AND PERIOD=4,VOL*240/FROMOPEN,VOL);
预:=(预量+VOL)/2;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=4,预,0,3,-1);
V1:VOL,VOLSTICK;
V3:=MA(预,3),COLORWHITE,DOTLINE;
V5:MA(MA(预,5),5),COLORRED;
V8:=MA(MA(预,8),5),COLORYELLOW;
V10:MA(MA(预,10),5),COLORGREEN;
V20:MA(MA(预,20),3),COLORLIBLUE;
V89:=MA(预,89),COLOR9900FF,DOTLINE;
V100:=MA(预,N),COLORLIGREEN,DOTLINE;
量20上涨:=V20>REF(V20,1);
{倍量柱}
倍量:预/REF(V,1)>1.8;
STICKLINE(倍量 AND C>REF(C,1),V,0,1,0),COLORLIMAGENTA;
STICKLINE( C<REF(C,1),V,0,1,0),COLORCYAN;
{五量转头压力}
TJ1:STICKLINE(REF(V,8) AND CURRBARSCOUNT<2,REF(V,8),REF(V,8),70,0),COLORYELLOW;
TJ2:STICKLINE(REF(V,4) AND CURRBARSCOUNT<2,REF(V,4),REF(V,4),40,0),COLORRED;
TJ3:STICKLINE(REF(V,10) AND CURRBARSCOUNT<2,REF(V,10),REF(V,10),85,0),COLORGREEN;
{五日低量金叉}
M5:=MA(C,5);五涨:=M5>REF(M5,1);
IF(REF(V,5)>REF(HHV(V,4),1) AND CROSS(MA(V,3),MA(V,5)) AND 五涨 AND V>REF(V,1),V/2,0),COLORWHITE,LINETHICK2;
IF(REF(V,6)>REF(HHV(V,5),1) AND CROSS(MA(V,3),MA(V,5)) AND 五涨 AND V>REF(V,1),V/2,0),COLORWHITE,LINETHICK2;
IF(REF(V,7)>REF(HHV(V,6),1) AND CROSS(MA(V,3),MA(V,5)) AND 五涨 AND V>REF(V,1),V/2,0),COLORWHITE,LINETHICK2;
IF(ISLASTBAR,REF(HHV(V,5),1),0)=REF(V,5) AND CROSS(MA(V,3)>MA(V,5),0.5),COLORBROWN,LINETHICK1;
DRAWTEXT_FIX(ISLASTBAR,0.6,0.01,1.0,STRCAT('倍量: ', CON2STR(盘中模拟60/REF(V,1),2))),COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:55
如果CURRBARSCOUNT=1 AND PERIOD=5返回成交量*240/FROMOPEN否则返回DRAWNULL
当满足条件CURRBARSCOUNT=1 AND PERIOD=5时,在VVOL和0之间画柱状线
}
盘中模拟60赋值:IF(CURRBARSCOUNT=1 AND PERIOD=4,成交量*60/MOD(FROMOPEN,60),成交量),NODRAW
当满足条件CURRBARSCOUNT=1 AND PERIOD=4时,在盘中模拟60和0之间画柱状线
如果CURRBARSCOUNT=1 AND PERIOD=4返回成交量*240/FROMOPEN否则返回成交量
预赋值:(预量+成交量)/2
当满足条件CURRBARSCOUNT=1 AND PERIOD=4时,在预和0之间画柱状线
输出V1:成交量,成交量STICK
V3赋值:预的3日简单移动平均,画白色,DOTLINE
输出V5:预的5日简单移动平均,5),画红色
V8赋值:预的8日简单移动平均,5),画黄色
V10:预的10日简单移动平均,5),COLORGREEN
输出V20:预的20日简单移动平均,3),COLORLIBLUE
V89:=预的89日简单移动平均,COLOR9900FF,DOTLINE
V100:=预的N日简单移动平均,COLORLIGREEN,DOTLINE
量20上涨赋值:V20>1日前的V20
输出{倍量柱}
倍量:预/1日前的V>1.8
STICKLINE(倍量 AND C>1日前的C,V,0,1,0),COLORLIMAGENTA
STICKLINE( C<1日前的C,V,0,1,0),COLORCYAN
输出{五量转头压力}
TJ1:STICKLINE(8日前的V AND CURRBARSCOUNT<2,8日前的V,8日前的V,70,0),画黄色
输出TJ2:STICKLINE(4日前的V AND CURRBARSCOUNT<2,4日前的V,4日前的V,40,0),画红色
输出TJ3:STICKLINE(10日前的V AND CURRBARSCOUNT<2,10日前的V,10日前的V,85,0),COLORGREEN
{五日低量金叉}
M5赋值:C的5日简单移动平均
五涨赋值:M5>1日前的M5
IF(5日前的V>REF(4日内V最高值,1) AND CROSS(V的3日简单移动平均,V的5日简单移动平均) AND 五涨 AND V>REF(V,1),V/2,0),画白色,LINETHICK2
IF(6日前的V>REF(5日内V最高值,1) AND CROSS(V的3日简单移动平均,V的5日简单移动平均) AND 五涨 AND V>REF(V,1),V/2,0),画白色,LINETHICK2
IF(7日前的V>REF(6日内V最高值,1) AND CROSS(V的3日简单移动平均,V的5日简单移动平均) AND 五涨 AND V>REF(V,1),V/2,0),画白色,LINETHICK2
IF(ISLASTBAR,REF(5日内V最高值,1),0)=REF(V,5) AND CROSS(V的3日简单移动平均>V的5日简单移动平均,0.5),COLORBROWN,LINETHICK1
输出DRAWTEXT_FIX(ISLASTBAR,0.6,0.01,1.0,STRCAT('倍量: ', CON2STR(盘中模拟60/1日前的V,2))),画黄色