大智慧量价共振指标
原理解析:
900101,STRIP(自定色,自定色,0))
0,COLORFF9900
JV赋值:(成交量(手)-1日前的成交量(手))/1日前的成交量(手)*100
JVH赋值:JV的K日累和的K日指数移动平均
PARTLINE(JVH,(JVH>1日前的JVH)-1,自定色,1,自定色 ),线宽为2,LAYER4
当满足条件数据位置状态=2时,在0位置书写文字,ALIGN0,COLOR00FFFF,线宽为2,LAYER0
X赋值:上次DISPSTATUS=1距今天数+1
AHX赋值:HHVALL(X日内JVH的最高值)
VERTLINE(JVH=AHX,4),COLOR00FFFF,LAYER0
当满足条件JV>0时,在JV和0位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR000055,LAYER7
当满足条件JV>0时,在JV和0位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR000077,LAYER7
当满足条件JV>0时,在JV和0位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR000099,LAYER7
当满足条件JV>0时,在JV和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR0000CC,LAYER7
当满足条件JV>0时,在JV和0位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0000FF,LAYER7
当满足条件JV2时,在-10位置书写文字,ALIGN1,COLOR00FFFF,线宽为1,LAYER5
如果数据位置状态=2ANDC0ANDABS(收盘价-1日前的收盘价)/1日前的收盘价*1000AND(收盘价-1日前的收盘价)>0,返回2,否则返回0
如果数据位置状态=2ANDC0,返回3,否则返回0
如果数据位置状态=2ANDC0,返回4,否则返回0
如果数据位置状态=2ANDC0,返回7,否则返回0
如果数据位置状态=2ANDC0AND(收盘价-1日前的收盘价)180000 AND (CXH=1 OR CXH=6))
DRAWTEXTREL(10 ,10 ,'指标公式')
rea>
源码:
{量价增减}
input:k(3,0,50);
DRAWGBKlast(DATE>900101,strip(RGB(40,0,40),RGB(0,0,0),0));0,ColorFF9900;
JV:=(V-REF(V,1))/REF(V,1)*100;
JVH:=EMA(SUM(JV,k),k);
PARTLINE(JVH,(JVH>REF(JVH,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYER4;
DRAWTEXT(BARSTATUS=2,0,' 换手:'),ALIGN0,COLOR00ffFF,LINETHICK2,LAYER0;X:=BARSLAST(DISPSTATUS=1)+1;
ahx:=hhvall(hhv(JVH,X));
VERTLINE(JVH=ahx,4),COLOR00FFFF,LAYER0;
STICKLINE(JV>0,JV,0,5,0),Color000055,LAYER7;
STICKLINE(JV>0,JV,0,4,0),Color000077,LAYER7;
STICKLINE(JV>0,JV,0,3,0),Color000099,LAYER7;
STICKLINE(JV>0,JV,0,2,0),Color0000CC,LAYER7;
STICKLINE(JV>0,JV,0,1,0),Color0000FF,LAYER7;
STICKLINE(JV
STICKLINE(JV
STICKLINE(JV
STICKLINE(JV
HS:=vol/capital*100;
DRAWTEXT(JV and HS>2 ,-10,''+NUMTOSTRN(HS,0)+'' ),ALIGN1,color00FFff,linethick1,LAYER5;
IF (BARSTATUS=2 and c
DRAWTEXTABS(450,5, '■可视'+NUMTOSTRN(X,0)+'天累计换手 ' +NUMTOSTRN(SUM(HS,X),1)+'%, 平均换手 ' +NUMTOSTRN(SUM(HS,X)/X,1)+'%: ' ),COLOR00ffFF,LINETHICK3;
DRAWRECTABS(3,0 ,315 ,150 , rgb(0,0,80)),color00FFFF,LINETHICK2,LAYER0;
W1:=IF((V-REF(V,1))>0 AND ABS(C-REF(C,1))/REF(C,1)*100
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,5,' ◢'+W1+'◣ '),color0000FF,LINETHICK2,LAYER0;
DRAWTEXTABS(0,5,' 【加仓】:-- 1.量增价平,转阳信号。'),color0000FF,LINETHICK2,LAYER0;W2:=IF((V-REF(V,1))>0 and (C-REF(C,1))>0,2,0);
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,22,' ◢'+W2+'◣ '),color0055FF,LINETHICK2,LAYER0;
DRAWTEXTABS(0,22,' 【买入】:-- 2.量增价升,买入信号。'),color0055FF,LINETHICK2,LAYER0;W3:=IF(ABS(V-REF(V,1))/REF(V,1)*1000,3,0);
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,39,' ◢'+W3+'◣ '),color0077FF,LINETHICK2;
DRAWTEXTABS(0,39,' 【加仓】:-- 3.量平价升,持续买入。'),color0077FF,LINETHICK2,LAYER0;W4:=IF((V-REF(V,1))0,4,0);
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,56,' ◢'+W4+'◣ '),color0099FF,LINETHICK2;
DRAWTEXTABS(0,56,' 【持有】:-- 4.量减价升,继续持有。'),color0099FF,LINETHICK2,LAYER0;W5:=IF((V-REF(V,1))
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,76,' ◢'+W5+'◣ '),color00FF00,LINETHICK2,LAYER0;
DRAWTEXTABS(0,76,' 【警戒】:-- 5.量减价平,警戒信号。'),color00FF00,LINETHICK2,LAYER0;W6:=IF((V-REF(V,1))
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,93,' ◢'+W6+'◣ '),colorFFDD00,LINETHICK2,LAYER0;
DRAWTEXTABS(0,93,' 【卖出】:-- 6.量减价跌,卖出信号。'),colorFFDD00,LINETHICK2,LAYER0;W7:=IF(ABS(V-REF(V,1))/REF(V,1)*1000,7,0);
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,110,' ◢'+W7+'◣ '),colorFFCC00,LINETHICK2,LAYER0;
DRAWTEXTABS(0,110,' 【卖出】:-- 7.量平价跌,继续卖出。'),colorFFCC00,LINETHICK2,LAYER0;W8:=IF((V-REF(V,1))>0 and (C-REF(C,1))
IF (BARSTATUS=2 and c
DRAWTEXTABS(0,127,' ◢'+W8+'◣ '),colorFF9900,LINETHICK2,LAYER0;
DRAWTEXTABS(0,127,' 【观望】:-- 8.量增价跌,弃卖观望。'),colorFF9900,LINETHICK2,LAYER0;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');