通达信倍量黄金柱指标公式-通达信公式

浏览 17次浏览
标签: 黄金坑
来源:神奇指标网 编辑:神奇指标网 发布日期:2022-09-23


通达信公式源码概况:


指标类别:通达信公式


授权方式: 免费版


指标评级: ★★★★★


指标分类: 策略


画线方法: 副图



操作要点:

1、股票五线顺上多头排列;

2、股票上涨放量回调缩量,回调不破10日线为佳;

3、kdj指标在下探超低区域后低位金叉;

4、macd零轴上双龙起舞并保持通气或双线粘连后再次通气状态;

5、突破平台放量上行,缩量上扬。


image.png




公式源码如下:



  

N:=5;N1:=21;  

VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-  

3*Sma(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;  

VAR2:=8,COLORGREEN,LINETHICK0;  

尝试买:IF(crOSS(VAR1,VAR2),60,0),LINETHICK2,COLORLIBLUE;  

DRAWTEXT(尝试买,85,'试买'),COLORYELLOW,COLORLIBLUE;  

有庄:=IF(VAR1<=8,50,0),COLORCYAN,LINETHICK2;  

低吸线:20,LINETHICK2,COLORLIMAGENTA;  

VARO5:=LLV(LOW,27);  

VARO6:=HHV(HIGH,34);  

VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;  

建仓:=IF((VARO7<10),100,118),COLOR00CCFF,LINETHICK1;  

CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;  

CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));  

CD3:=SMA(SMA(CD2,3,1),3,1);  

CD4:=(CD3-SMA(CD1,9,1))-0.5;  

CD5:=IF(CD4>0.00,CD4,0.00);  

CD6:=REF(CD5,1);  

VAR81:=MA(C,9),COLORRED;  

空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORYELLOW;  

减仓:=CROSS(CD6,CD5),stICK,COLORYELLOW;  

VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;  

VAR2A:=SMA(VAR1A,9,1)+100;  

VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;  

VAR4A:=SMA(VAR3A,3,1);  

VAR5A:=SMA(VAR4A,3,1)+100;  

VAR6A:=VAR5A-VAR2A;  

出击:=IF(VAR6A>N1,VAR6A-N1,0),COLORLIRED;  

钻石黄金柱:IF(CROSS(出击,0.01),72,0),STICK,COLORYELLOW,LINETHICK9;  

DRAWICON(钻石黄金柱>0,72,24);  

XG:=CROSS(出击,0.01);  

LC:=REF(CLOSE,1);  

rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;  

E:=CROSS(83,RSI);  

RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;  

操盘线:SMA(RSV,3,1),LINETHICK2,COLORRED;  

散户线:SMA(操盘线,3,1),LINETHICK3,COLORYELLOW;  

STICKLINE(REF(出击,1)<出击,出击,REF(出击,1),3,0),COLORLIMAGENTA;  

STICKLINE(REF(出击,1)>出击,出击,REF(出击,1),3,0),COLORFFCCCC;  

倍量:=VOL&gt;=REF(V,1)*1.4ANDVOL&lt;=REF(V,1)*1.6ANDC&gt;REF(C,1);STICKLINE(倍量,0,V,5,0),coloryellow;  

{成交量比%}  

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));  

主买:=IF(CLOSE&gt;OPEN,AA*(HIGH-LOW),IF(CLOSE&lt;OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));  

量比%:主买/VOL*100,COLOR00FFFF,LINETHICK1,NODRAW;  

量:=V/CONST(HHV(V,90))*30,LINETHICK0,VOLSTICK;  

STICKLINE(CLOSE&gt;=OPEN,0,量*1,2.4,1),COLORBC8F8F;  

STICKLINE(CLOSE&lt;=OPEN,0,量*1,2.4,1),COLOR545454;  

{地量买点}  

STICKLINE(CROSS(0.9,1/VOL*1000&gt;0.01AND"KDJ.J"&lt;0),量&lt;0,-3,1.6,0),COLORFF2400,LINETHICK4;  

DRAWTEXT(CROSS(0.9,1/VOL*1000&gt;0.01AND"KDJ.J"&lt;0),量&lt;0,'地量'),COLORFF2400,LINETHICK1;  

{倍量}  

倍量:(量/REF(量,1)&gt;=1.91ANDCOUNT(C&gt;O,1))OR(L&gt;REF(H,1)ANDCOUNT(O&gt;C,1)AND量/REF(量,1)&gt;=1.91),NODRAW,COLORC0D9D9;  

STICKLINE(倍量,0,量,0.0001,0),COLOR00FFFF;  

DRAWTEXT(倍量,量*0.99,'倍'),COLORC0D9D9,LINETHICK1;  

{資金线}  

VAR8:=LLV(LOW,21);  

VAR9:=HHV(HIGH,21);  

K:EMA((CLOSE-VAR8)/(VAR9-VAR8)*50,6),COLORFF1CAE,LINETHICK1;  

D:EMA(0.667*REF(K,1)+0.333*K,2),COLORFF2400;  

倍量柱:=EVERY(L&gt;REF(O,BARSLAST(V&gt;REF(V,1)*2)),BARSLAST(V&gt;REF(V,1)*2));  

VAR02:=(HHV(HIGH,20)-LLV(LOW,20))/EMA((CLOSE-LLV(LOW,20)),10);  

做多资金:=VAR02&gt;12.5;  

做多资金AND倍量柱;  

ma5:MA(CLOSE,5),COLORred,PRECIS2,LAYER0;  

MA14:MA(CLOSE,14),COLOR00FFFF,PRECIS2,LAYER0;  

MA25:MA(C,25),COLORFF00FF,PRECIS2,LAYER0;  

ma99:ma(c,99),colorblue,precis2,layer0;  

W:=BArslAst(DISPSTATUS=1);  

P:=BacKSET(DISPSTATUS=2,W/2+1);  

K:=BARSLAST(crOSS(P,0.5));  

KJ:=HHVALL(HIGH)-LLVALL(LOW);  

VERTLINE(CROSS(P,0.5),4),COLOR00FFFF;  

平衡:LLVALL(LOW)+KJ/2,COLOR00FFFF,DOTLINE,PRECIS2;  

FILLRGN(平衡,HHVALL(HIGH),W>K,RGB(0,0,200)),PRECIS2;{该行设置背景色}  

压力:IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡),COLORFF00FF,DOTLINE,PRECIS2;  

支撑:IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡),COLOR00FF00,DOTLINE,PRECIS2;  

低吸:K>=0andCROSS(平衡,LOW),COLORFF8899,LINETHICK0,PRECIS2;  

低涨:(C/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;  

天:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;  

DRAWTEXT(HIGH=HHVALL(HIGH)andK>=0,HIGH*1.01,'←'+NUMTOSTRN(HIGH,2)),COLORFFFFFF;  

DRAWICON(低吸,LOW,6);  

{以下设置提示文字部分}  

DRAWTEXT(DISPSTATUS=2,压力,'0.809'),COLOR0000FF,ALIGN0;  

DRAWTEXT(DISPSTATUS=2,平衡,'0.500'),COLORFFFFFF,ALIGN0;  

DRAWTEXT(DISPSTATUS=2,支撑,'0.191'),COLOR00FFFF,ALIGN0;  

DRAWTEXT(K=0,HHVALL(HIGH)-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF,ALIGN1;  

DRAWTEXT(K=0,HHVALL(HIGH)-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00,ALIGN1;  

DRAWTEXT(K=0,LLVALL(LOW)+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF,ALIGN1;  

DRAWTEXT(K=0,LLVALL(LOW)+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00,ALIGN1;  

{以下设置个股信息}  

DRAWTEXTREL(10,50,'所属板块:'+BKNAME),COLORFFFFFF;  

DRAWTEXTREL(10,120,'股票名称:'+'【'+STKLABEL+''+STKNAME+'】'),COLOR00FF00;  

DD:=FINANCE2(35);SS:=FINANCE2(37);  

DRAWTEXTREL(10,190,'总股本:'+NUMTOSTRN(DD,0)+'万'+'流通A股:'+NUMTOSTRN(SS,0)+'万'),COLOR00FFFF;  

DRAWTEXTREL(10,300,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'%'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;  

DRAWTEXTREL(10,360,'■目前可见k线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;  

DRAWTEXTREL(10,420,'■建议查阅K线:短线25天,中长线150天!'),COLORFF8899;  

{以下设置五彩立体K线}  

STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;  

STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;  

STICKLINE(CLOSE<OPENorCLOSE=OPENandCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;  

STICKLINE(CLOSE<OPENorCLOSE=OPENandCLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLOR00FF00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),COLOR008800;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),COLOR009900;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLOR00AA00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLOR00BB00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLOR00CC00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLOR00DD00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLOR00EE00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR00FF00;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLORFFBBFF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLORFF00FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),COLORFF22FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),COLORFF44FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),COLORFF66FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLORFF88FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF99FF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLORFFAAFF;  

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFFBBFF;  

DRAWTEXT((SYSPARAM(2)=BARPOS),CLOSE,('版块:'+BLKNAME)),ALIGN4;  

DRAWTEXTEX(c,1,10,50,'收益:'+NUMTOstR(FINANCE(33),2)+'元'),ColorFFB060;  

DRAWTEXTEX(c,1,200,50,'净资产:'+NUMTOSTR(FINANCE(34),2)+'元'),ColorFFB060;  

DRAWTEXTEX(c,1,10,100,'流通股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'),ColorFFB060;  

DRAWTEXTEX(c,1,200,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100,2)+'%'),ColorFFB060;  

{均线系统}  

ma5:MA(CLOSE,5);  

MA10:MA(CLOSE,10);  

MA20:MA(CLOSE,20);  

MA60:MA(CLOSE,60);  

割肉线MA160:MA(CLOSE,160);  

{通用条件}  

LASTK:=(REFX(ISLASTBAR,2)=0);  

上涨:=CLOSE>REF(CLOSE,1);  

未跌破:=REFX(CLOSE,1)>LOWANDREFX(CLOSE,2)>LOWANDREFX(CLOSE,3)>LOW;  

缩量:=vol>0.35*(REFX(VOL,1)+REFX(VOL,2)+REFX(VOL,3))ANDVOL>REFX(VOL,1);{1.05/3,5%}  

逐级缩量:=VOL>REFX(VOL,1)ANDREFX(VOL,1)>REFX(VOL,2)ANDREFX(VOL,2)>REFX(VOL,3);  

逐级价升:=CLOSE<REFX(CLOSE,1)ANDREFX(CLOSE,1)<REFX(CLOSE,2)ANDREFX(CLOSE,2)<REFX(CLOSE,3);  

{倍量柱}  

倍量柱:VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,LINETHICK0,COLORWHITE;  

{高量柱}  

高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3))ANDVOL>REF(VOL,1)ANDVOL>REFX(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍}  

{平量柱}  

平量柱:VOL>REFX(VOL,1)*0.97ANDVOL<REFX(VOL,1)*1.03ANDVOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE;  

{梯量柱}  

梯量柱:VOL>REF(VOL,1)ANDREF(VOL,1)>REF(VOL,2)ANDCLOSE>REF(CLOSE,1)ANDREF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{虽然是梯量柱,但也不能太小}  

{将军柱}  

将军柱:LASTKAND上涨AND未跌破AND(倍量柱OR高量柱OR平量柱OR梯量柱),LINETHICK0,COLORYELLOW;  

{黄金柱}  

黄金柱:将军柱AND缩量,LINETHICK0,COLORYELLOW;  

{标准黄金柱}  

标准黄金柱:黄金柱AND逐级缩量AND逐级价升,LINETHICK0,COLORRED;  

{输出}  

DRAWICON(黄金柱AND标准黄金柱=0ANDBArslAST(REF(黄金柱,1))>1,LOW,8),COLORRED;  

DRAWICON(标准黄金柱,LOW,4),COLORRED;  

DRAWICON(将军柱ANDBARSLAST(REF(将军柱,1))>1ANDBARSLAST(黄金柱)>1,LOW,10),COLORRED;  

MA135:=MA(VOL,135);  

TJ1:=(VOL=HHV(VOL,10)ANDVOL>1.7*REF(VOL,1)ANDC>=REF(C,1)ANDC>=OANDVOL<=MA135*3.5);  

LJL:=FILTER(TJ1,3);  

TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(LOW,3),1,0);  

ST:=TJ3=1;  

CL:=FILTER(ST,3);  

STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),5,0),COLORYELLOW;  

STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),5,0),COLORCYAN;  

STICKLINE(LJL,OPEN,CLOSE,6,0),COLORYELLOW;  

DRAWTEXT(LJL,L*0.99,'支撑'),COLORF00FF0;  

GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));  

GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));  

GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));  

GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));  

BAIJIN1:=BARSLAST(crOSS(30,GJTJ1))<2ANDBARSLAST(CROSS(GJTJ1,50))<2;  

BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;  

BAIJIN3:=GJTJ1>60ANDGJTJ4>70;  

DRAWTEXT(BAIJIN1ANDBAIJIN2ANDBAIJIN3,L-0.02,'白金');  

HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3ANDBARSLAST(CROSS(GJTJ1,50))<3;  

HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;  

DRAWTEXT(HUANGJIN1ANDHUANGJIN2,L-0.03,'黄金');  

XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5ANDGJTJ1>GJTJ4;  

DRAWTEXT(COUNT(XG,3)=1ANDXGANDC>MA(C,20),L-0.02,'暴涨启动'),COLORRED;  

ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;  

ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));  

ZHENCANG3:=GJTJ3<GJTJ4ANDGJTJ2<GJTJ4;  

ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;  

ZHENCANG5:=GJTJ2<GJTJ3ANDGJTJ1=100;  

ZCB1:=ZHENCANG1>0ANDREF(ZHENCANG1,1)=0ANDREF(ZHENCANG1,2)>0;  

DRAWTEXT(ZHENCANG1ANDZHENCANG2ANDZHENCANG3ANDZHENCANG4ANDZHENCANG5,L-0.05,'震仓启点');  

AA:=BARSLAST(CROSS(97,GJTJ1))<=1ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BB:=BARSLAST(CROSS(97,GJTJ2))<=1ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA1:=AAANDBB;  

AAA:=BARSLAST(CROSS(97,GJTJ1))<=2ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BAA:=BARSLAST(CROSS(97,GJTJ2))<=2ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA2:=AAANDBB;  

AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3ANDBARSLAST(CROSS(GJTJ1,85))<=1;  

BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3ANDBARSLAST(CROSS(GJTJ2,85))<=1;  

AA3:=AAAAANDBAAA;  

BB1:=REF(AA1,1);  

BB2:=REF(AA2,1);  

BB3:=REF(AA3,1);  

DD1:=GJTJ1=100ANDGJTJ2=100ANDAA1;  

DD2:=GJTJ1=100ANDGJTJ2=100ANDAA2;  

DD3:=GJTJ1=100ANDGJTJ2=100ANDAA3;  

DRAWTEXT(DD1ORDD2ORDD3,L-0.02,'短线追涨');  

AW:=BARSLAST(CROSS(95,GJTJ1))<=2;  

BW:=BARSLAST(CROSS(95,GJTJ2))<=2;  

EW:=GJTJ4<GJTJ1ANDGJTJ1<GJTJ3;  

FW:=GJTJ2>50ANDGJTJ3>50;  

GW:=GJTJ1=100ANDGJTJ2=100;  

TXW:=COUNT(GW,2)=1;  

DRAWTEXT(AWANDBWANDEWANDFWANDTXW,L-0.03,'起涨首日');  

AQ:=GJTJ3=100;  

BQ:=GJTJ4<90;  

DRAWTEXT(COUNT(AQ,2)=2ANDBQ,L-0.02,'波启前兆');  

AA1:=AMOUNT/V;  

BB1:=L<AA1*0.9;  

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;  

DD1:=L<MA(C,5)*0.921;  

EE1:=V<MA(V,5)*1.5;  

DRAWTEXT(C-O>=0ANDO/L>1.05ANDL<=LLV(L,30),L,'★<-绝底'),COLORMAGENTA;  

a1:=cost(95);  

a2:=cost(5);  

天眼通:=(a1-a2)*100/(a1+a2);  

drawicon(天眼通>ref(天眼通,1),l*0.98,8)ALIGN5;  

JJ:=(3*C+H+L+O)/6;  

VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;  

TJ1:=vol=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1ANDC>REF(C,1);  

LJL:=FILTER(TJ1,5);  

TJ2:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3ANDCLOSE>REF(HIGH,3),1,0)));  

TP:=TJ2=1;  

STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORYELLOW;  

TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2ANDCLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3ANDCLOSE>REF(LOW,3),1,0)));  

STFZ:=TJ3=1;  

CL:=STFZANDTP;  

TJCL:=FILTER(CL,3);  

DRAWTEXT(LJL,L*0.99,'黄'),COLORYELLOW;  

DRAWTEXT(LJL,L*0.95,'金'),COLORYELLOW;  

DRAWTEXT(LJL,L*0.90,'柱'),COLORYELLOW;


image.png



[源码注释]通达信公式动态翻译结果




涨速*100>1



神奇指标网(https://www.shenqizhibiao.com/)所有指标公式及文章来源于网络仅供学习研究

神奇指标收藏 收藏
神奇指标分享 分享