通达信牛气冲天主图指标公式
安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。
不会安装点击 安装指南 步骤操作。
DRAWBAND(MA(C,18),RGB(185,20,30),MA(C,50),RGB(0,100,100));DRAWRECTREL(IF(CODELIKE('999999')
OR CODELIKE('399001'),0,500),IF(CODELIKE('999999') OR CODELIKE('399001'),0,850),IF
(CODELIKE('999999') OR CODELIKE('399001'),0,750),IF(CODELIKE('999999') OR CODELIKE
('399001'),0,999),RGB(185,20,30)){解盘底图};DRAWKLINE(H,O,L,C);
{金线:MA(MA(MA(C,2),2),2),COLORYELLOW,LINETHICK2};
MA18:MA(C,18),LINETHICK2,COLORWHITE;
MA180:MA(C,50),COLORFF00FF,LINETHICK2;
{警示牌设置}
警示牌:=1;
高:=REFDATE(HHV(H,180),DATE)*1.05;
低:=REFDATE(LLV(L,180),DATE)*0.95;
A11:=MA(C,18);
A12:=MA(C,50);
A13:=MA(C,89);
A14:=IF((MA(C,180)<=高 AND MA(C,180)>=低) OR C>=MA(C,180),MA(C,180),DRAWNULL);
{—————股性判断—————}
牛股:=ISLASTBAR AND A11>A12 AND A12>A13 AND A13>IF(A14=DRAWNULL,0,A14) AND C>A11 OR
ISLASTBAR AND A11>A12 AND C>=A11;
猴股:=ISLASTBAR AND A11>A12 AND C<A11 ;
小多头:=MA(C,3)>MAX(MA(C,7),MA(C,13));
熊股:=(ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 AND C<A13,A13<A14 AND C<A14) OR ISLASTBAR AND
A11<A12) AND NOT(小多头);
小牛:=(ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 AND C<A13,A13<A14 AND C<A14) OR ISLASTBAR AND
A11<A12) AND 小多头;
DRAWGBK(警示牌=1 AND 牛股,0,0,0,'牛股',0);
{DRAWBMP(警示牌=1 AND 牛股,LLV(L,20),'牛股')};
DRAWGBK(警示牌=1 AND 猴股,0,0,0,'猴股',0);
DRAWGBK(警示牌=1 AND 熊股,0,0,0,'熊股',0);
DRAWGBK(警示牌=1 AND 小牛,0,0,0,'小牛',0);
DRAWKLINE(H,O,L,C);
{支撑压力}
N:=18;
A1:=REF(H,N)=HHV(H,2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
A2:=REF(L,N)=LLV(L,2*N+1);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;
E2:=(H+L)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1<E2));
H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
S1:=R1>REF(R1,1);
T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
U1:=T1>REF(T1,1);
R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);
S2:=R2>REF(R2,1);
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T2>REF(T2,1);
{NOTEXT1}红:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED;
{NOTEXT2}绿:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;
{狙击}
K版主力线:=EMA(C,3),COLORWHITE;
K版跟随主力线:=EMA(C,5),COLORYELLOW;
K版辅助主力线:=EMA(C,7),COLORBROWN;
K短线回踩支撑:=EMA(C,10),COLORLIGREEN;
K版启动线:=EMA(C,20),COLORRED,LINETHICK2;
SS:=CROSS(K版主力线,K版跟随主力线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版跟随主力线,K版辅助主力线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版跟随主力线,K短线回踩支撑) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版主力线,K版辅助主力线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版主力线,K短线回踩支撑) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版跟随主力线,K版辅助主力线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版跟随主力线,K版启动线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版辅助主力线,K短线回踩支撑) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(K版跟随主力线,K版启动线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND
CROSS(K版主力线,K版启动线);
DRAWTEXT(SS,L-0.04,'狙击'),COLORMAGENTA;
DIF:=EMA(DCLOSE,9)-EMA(DCLOSE,17);
DEA:=EMA(DIF,6);
AAAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAAA-REF(AAAA,1),12);
{红}
STICKLINE(起爆 AND C>O,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(起爆 AND C>O,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(起爆 AND C>O,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(起爆 AND C>O,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(起爆 AND C>O,OPEN,CLOSE,0.8,0),COLORYELLOW;
K线三分之一:O+(C-O)*2/3,COLORRED,NODRAW;
阶段涨幅:(REFDATE(C,1150417)/REFDATE(C,1130625)-1)*100,COLORYELLOW,NODRAW;{1130625};
{跟进}
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5) AND C>=MA(C,18),LOW*0.996,'跟进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
{主题概念}
Z1:=STRCAT(HYBLOCK,'----');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,'----');
DRAWTEXT_FIX(1,0.00,0.06,0,' 【主题概念】: ')COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.09,0.06,0,STRCAT(Z4,GNBLOCK)),COLORCC32CC;
DRAWTEXT_FIX(1,0.07,0.24,0,EXTERNSTR(0,14))COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.20,0,' 【涨停原因】: ')COLORDB11E5;
DRAWTEXT_FIX(1,0.12,0.20,0,EXTERNSTR(0,8))COLORYELLOW;
DRAWTEXT_FIX(1,0.02,0,0,'☆微信公众号:(程序化指标) ☆'),COLORRED;
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW,COLOR0080FF;
{量价背离}
DRAWTEXT(V=HHV(V,189) AND ((H<HHV(H,7)AND H>LLV(L,21)*1.162)),H*0.98,'高位量价背离,小
心'),COLORYELLOW;
{星号上升标志}
WAD:=SUM(IF( CLOSE>REF(CLOSE,1),CLOSE-MIN(REF(CLOSE,1),LOW),
IF(CLOSE<REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0)),0);
MW5:=MA(WAD,4),COLORFFAA00;
MW10:=MA(WAD,10),COLORAD904F;
MW30:=MA(WAD,30),COLORWHITE;
MW60:=MA(WAD,60),COLOR00AABB;
MW12:=MA(WAD,120),COLORYELLOW;
DRAWTEXT(WAD>MW5 AND MW5>MW10 AND MW30>REF(MW30,5) AND H<>L AND {ISLASTBAR}
DAYSTOTODAY<=5,L*1.0,'★'),COLORYELLOW;
{风险提示}
RSV:=(CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100;{原40}
K:=SMA(RSV,4,1) ;
D:=SMA(K,3,1) ;
J:=3*K-2*D;
DRAWTEXT((CROSS(J,D) AND C>O),L*0.985,'低吸'),COLORFF00FF;
{OBV买点}
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV3:=MA(OBV,2);
OBV18:=MA(OBV,18);
OBV55:=MA(OBV,55);
DRAWICON(CROSS(OBV18,OBV55),L,27);
DRAWICON(CROSS(OBV,OBV18),L,1);
DRAWICON(CROSS(OBV,OBV55),L,9);
{洗盘结束}
AA1:=EMA(C,14);
AX:=(AA1-REF(AA1,1))/REF(AA1,1)*100;
AJ:=IF(AX>=0,REF(EMA(C,14),BARSLAST(CROSS(AX,0))+1),0);
洗盘结束:DRAWTEXT(FILTER(AJ>0 AND REF(AJ<=0,1),5) AND MA(C,18)>MA(C,50) AND C>=MA(C,18),L,'
洗盘结束'),COLORYELLOW;
{盘中及时发现涨停}
STICKLINE(C/REF(C,1)>=1.09,O,C,3.2,0),COLOR0033FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.8,0),COLOR0055FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.4,0),COLOR0077FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,2.0,0),COLOR0099FF;
STICKLINE(C/REF(C,1)>=1.09,O,C,1.6,0),COLOR00AAFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.8,0),COLOR00CCFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.4,0),COLOR00DDFF;
STICKLINE(C/REF(C,1)>=1.09,O,C,0.0,0),COLOR00EEFF;
{盘中及时发现跌停}
A:=REF(C,1);B:=ZTPRICE(A,0.1)=C AND H=C;
DD:=DTPRICE(A,0.1)=C AND L=C;
STICKLINE(DD,H,L,0.00001,0),COLORGREEN;
STICKLINE(DD,O,C,3.2,0),COLOR005500;
STICKLINE(DD,O,C,2.4,0),COLOR007700;
STICKLINE(DD,O,C,1.6,0),COLOR009900;
STICKLINE(DD,O,C,0.8,0),COLOR00BB00;
STICKLINE(DD,O,C,0.4,0),COLOR00DD00;
STICKLINE(DD,O,C,0.0,0),COLOR00FF00;
{转强}
RRSVV:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
RKV:=SMA(RRSVV,15,1);
RDV:=SMA(RKV,15,1);
RJV:=3*RKV-2*RDV;
NNN1:=CON2STR(CONST(DYNAINFO(51)),2);
NNN2:=STRCAT(' 外盘 : 内盘 1 :',NNN1);
NNN3:=STRCAT(NNN2,' ');
DRAWTEXT_FIX(IF(CODELIKE('999999') OR CODELIKE
('399001'),DRAWNULL,1),0.54,0.88,0,NNN3),COLORYELLOW;
{DRAWTEXT_FIX(IF(CODELIKE('999999') OR CODELIKE('399001'),DRAWNULL,CONST(DYNAINFO(51))>=1),0.76,0.015,0,NNN3),COLORBLACK};
{解盘}
条件1:=C>=MA(C,18) AND MA(C,18)>=MA(C,50) AND COUNT(V>=MA(V,60),5)>=3 ;
条件2:=C>=MA(C,18) AND MA(C,18)>=MA(C,50) AND COUNT(V>=MA(V,60),5)<=2 ;
条件3:=C<MA(C,50) AND MA(C,18)>MA(C,50);
条件5:=C>MA(C,18) AND MA(C,18)<MA(C,50) AND COUNT(V>=MA(V,60),5)>=4 AND NOT(小多头);
条件6:=C>MAX(MA(C,18),MA(C,50)) AND MA(C,18)<MA(C,50) AND COUNT(V>=MA(V,60),5)<=2 AND NOT(小多头);
条件4:=NOT(条件5) AND NOT(条件6)AND MA(C,18)<MA(C,50)AND NOT(小多头);
条件7:=C>=MA(C,50) AND C<MA(C,18) AND COUNT(V>=MA(V,60),5)>=4 ;
条件8:=C>=MA(C,50) AND C<MA(C,18) AND COUNT(V>=MA(V,60),5)<=2 ;
条件9:=(ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 AND C<A13,A13<A14 AND C<A14) OR ISLASTBAR AND
A11<A12) AND 小多头;
{解盘}{DRAWKLINE(H,O,L,C)};
{DRAWRECTREL(IF(CODELIKE('999999') OR CODELIKE('399001'),0,500),IF(CODELIKE('999999') OR
CODELIKE('399001'),0,950),IF(CODELIKE('999999') OR CODELIKE('399001'),0,600),IF(CODELIKE
('999999') OR CODELIKE('399001'),0,999),IF(NOT(条件1 ),RGB(0,100,100),RGB(185,20,30)))};
DRAWTEXT_FIX(条件1=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为牛股,量能充足,中线
参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件2=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为牛股,缩量上涨,适当
参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件3=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为猴股,振荡走弱,量能
不足,观望')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件4=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为熊股,有走弱迹象,观
望')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件5=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为熊股,触底反弹,量能
理想,适当参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件6=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为熊股,触底反弹,量能
不足,少量参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件7=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为猴股,振荡走势,量能
充足,适当参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件8=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为猴股,振荡走势,量能
不足,谨慎参与')COLORYELLOW,LINETHICK5;
DRAWTEXT_FIX(条件9=1 AND CURRBARSCOUNT=1,0.50,0.93,0,' 解盘参考:该股为小牛,振荡走势,低吸
为主,适当参与')COLORYELLOW,LINETHICK5;
{妖股}
X_1:=EVERY(CLOSE/REF(CLOSE,1)>1.095,2) AND CLOSE=HIGH AND BARSCOUNT(CLOSE)>60 AND DYNAINFO(8)>0;
X:=COUNT(X_1,5)=1 AND X_1;
DRAWTEXT(X,0.998*L,'妖股!'),COLORYELLOW;
{黑牛战法}
操盘线:=MA(CLOSE,18);
角度:=ATAN((操盘线/REF(操盘线,1)-1)*100)*180/3.1416;
多头线:=EMA(C,1.5);
空头线:=EMA(C,5);
均衡线:=EMA(空头线,5);
XG1:=CROSS(多头线,均衡线) AND CROSS(空头线,均衡线) AND CROSS(多头线,操盘线) AND C>=REF(C,1)*1.015 AND 角度>=0 AND CROSS(C,MA(C,18)) AND MA(C,18)>MA(C,50);
STICKLINE(XG1,L,H,0,0),COLOR0088EE;
STICKLINE(XG1,CLOSE,OPEN,3,0),COLOR0055AA;
STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLOR0066BB;
STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLOR0077CC;
STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLOR0088DD;
STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLOR0099EE;
STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLOR00AAFF;
STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLOR00CCFF;
STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLOR00FFFF;
DRAWTEXT(XG1,L*0.98,'↖黑牛'),COLORYELLOW;
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。