通达信黑马通道副图指标公式
-
相关简介:黑码通道 短线止损线:=EMA(CLOSE,17); A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3
-
文章来源:股海网作者:股海网发布时间:2019-04-18浏览次数:
黑码通道
短线止损线:=EMA(CLOSE,17);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
中线止损线:=EMA(X,13);
上涨天数:=BARSLAST(短线止损线<中线止损线);
下跌天数:=BARSLAST(短线止损线>中线止损线);
KKA:=EMA(C,5);
KKB:=EMA(KKA,8);
KKC:=EMA(KKB,13);
长线止损线:=EMA(KKC,50);
AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KAAA:=J<D AND DIF>DEA;
KDDD:=C/中线止损线<1.2;
KCCC:=上涨天数<20;
KBBB:=IF(REF(J,3)>REF(D,3) AND KAAA AND KDDD AND KCCC,30,0);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,12);
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
KDD:=REF(中期,1)<1 AND 中期>1;
AA:=C/REF(C,1)>1.09;
KMMM:=REF(中期,1)<1 AND 中期>1;
KDDDD:=饱和度>=97 AND CQ>90 AND 中期线<50;
KEEEE:=C/O>1.015;
KFFFF:=BARSLAST(CROSS(短期线,中期线))<10;
KAAX:=KDDDD AND KEEEE AND KFFFF;
KAAY:=IF(REF(KAAX,1) OR REF(KAAX,2),0,1);
KAAB:=KAAX AND KAAY;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
KL:=饱和度>=97 AND CQ>90;
KK:=W4 AND COUNT(W4,5)=1;
KKKK:=KL OR KK;
KKAA:=IF(AA,0,1);
KKBB:=IF(C/中线止损线>1.15,1,0);
KMA:=KKKK AND KKAA;
KMB:=REF(KKKK,1) AND KKAA AND REF(AA,1);
KMC:=KMA OR KMB;
KYA:=CROSS(C2,C3);
KYB:=上涨天数<30;
KYD:=EXIST(KAAB,20);
KYC:=KYA AND KYB AND KYD;
KAAA1:=EXIST(KDD,3);
KBBB1:=C/REF(C,1)>1+0.01*9;
KAAA2:=支撑>中期线 AND 持股=支撑;
KBBB2:=CROSS(C2,C3);
KCCC2:=EXIST(C/REF(C,1)>1+0.01*9,10);
KDDD2:=BARSLAST(中期线>短期线)<10;
KAAA3:=REF(C,1)<REF(中线止损线,1) AND C>中线止损线;
KBBB3:=C/REF(C,1)>1.09;
KCCC3:=中线止损线/长线止损线<1.1;
KA1:=KAAA1 AND KBBB1;
KA2:=KAAA2 AND KBBB2 AND KCCC2;
KA3:=KAAA3 AND KBBB3 AND KCCC3;
抄底先锋:IF(KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离线,70,0),COLORYELLOW,LINETHICK2;
抄底先锋A:=KMMM AND 下跌天数>下跌 AND 中线止损线/C>1+0.01*离线;
行情线:=EMA(A,1);
黑码启动:IF(CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线,70,0),COLORRED,LINETHICK2;
黑码启动A:=CROSS(行情线,中线止损线) AND C/REF(C,1)>1+0.01*涨幅 AND 中线止损线<长线止损线;
AAAA:=C/REF(C,1)>1+0.01*涨幅1;
资金3:=支撑>中期线 AND 持股=支撑 AND REF(支撑,2)<REF(持股,2);
资金4:=J<D AND DIF>DEA AND REF(J,1)>REF(D,1),COLORYELLOW;
资金5:=EXIST(AAAA,10);
资金6:=BARSLAST(短期线<中期线)<力道;
短线快枪:IF(资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线,70,0),COLORMAGENTA,LINETHICK2;
短线快枪A:=资金3 AND 资金4 AND 资金5 AND 资金6 AND KCCC3 AND 上涨天数<20 AND C>中线止损线;
DRAWTEXT(抄底先锋A,80,'抄底'),COLORRED;
DRAWTEXT(抄底先锋A,60,'先锋'),COLORRED;
DRAWTEXT(抄底先锋A,40,'软件'),COLORWHITE;
DRAWTEXT(抄底先锋A,20,'初选'),COLORWHITE;
DRAWTEXT(黑码启动A,80,'黑码'),COLORYELLOW;
DRAWTEXT(黑码启动A,60,'启动'),COLORYELLOW;
DRAWTEXT(黑码启动A,40,'软件'),COLORWHITE;
DRAWTEXT(黑码启动A,20,'初选'),COLORWHITE;
DRAWTEXT(短线快枪A,80,'短线'),COLORYELLOW;
DRAWTEXT(短线快枪A,60,'快枪'),COLORYELLOW;
DRAWTEXT(短线快枪A,40,'软件'),COLORWHITE;
DRAWTEXT(短线快枪A,20,'初选'),COLORWHITE;
STICKLINE(KMMM,0,20,2,0),COLORWHITE;
STICKLINE(KMC,80,100,2,0),COLORGREEN;
STICKLINE(KMC AND 上涨天数>30,80,100,2,0),COLORRED;
短线反弹:KMMM,STICK,COLORWHITE;
短线风险:KMC,STICK,COLORGREEN;