当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:DK结构钝化(同花顺公式 副图 源码 测试图)
软件名称:[B]DK结构钝化(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:10.0 KB
官方主页:Home Page
更新时间:2022-08-18 00:05:09
软件简介:
DK结构钝化
DIF:EMA(CLOSE,12) - EMA(CLOSE,26),colorred,LINETHICK1;
DEA:EMA(DIF,9),colorgreen,LINETHICK1;
MACD1:=2*(DIF-DEA),COLORSTICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2,0,MACD1,1,0),colorred;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),colorgreen;
MACD:MACD1,NODRAW,colormagenta,linethick1;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(R,3,1);
B:=SMA(A,3,1);
CCC:=(B/2+40)*1.1;
D:=SMA(CCC,3,1);
STICKLINE(CROSS(D,RSI5) AND CROSS(80,RSI5),0,MACD,8,0),colorcyan;
Zero : 0;
gj:=MAX(C,O);
L4:=LLV(gj,4);
jl:=(HHV(dif,55)-LLV(dif,55))/5;
gt:=dea>REF(dea,1) AND REF(dea,1)<REF(dea,2);
A1:=BARSLAST(REF(gt,1));
底部结构:=REF(L4,A1+1)>CLOSE AND dif>REF(dif,A1+1) AND gt;
DRAWLINE(A1=0,DEA,底部结构,REF(DEA,A1),0),colorred,LINETHICK1;
DRAWLINE(底部结构,DEA,底部结构,REF(DEA,A1),0),colorred,LINETHICK1;
DRAWTEXT(底部结构,REF(DEA,A1),'底结构'),colorred;
FILLRGN(DIF,DEA,( DIF>DEA ),colorred);
H4:=HHV(gj,4);
gt2:=dea<REF(dea,1) AND REF(dea,1)>REF(dea,2);
A2:=BARSLAST(REF(gt2,1));
顶部结构:= REF(H4,A2+1)<H4 AND dif<REF(dif,A2+1) AND gt2;
DRAWLINE(A2=0 ,DEA,顶部结构,REF(DEA,A2),0),colorgreen,LINETHICK1;
DRAWLINE(顶部结构,DEA,顶部结构,REF(DEA,A2),0),colorgreen,LINETHICK1;
DRAWTEXT(顶部结构,REF(DEA,A2)*1.05,'顶结构'),colorgreen;
N :=10;
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA8:=LLV(LOW,34);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
生命线:=EMA(VARD,N), colorblue,LINETHICK1;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
B2:=EMA(B1,5),colorred;
//STICKLINE(B1>B2,B1,B2,8,0),colorred;
//STICKLINE(B1<B2,B1,B2,8,1),colorgreen;
SS1:=(LOW+HIGH+CLOSE*2)/4;
SS2:=EMA(SS1,4);
SS3:=HHV(SS2,10);
SS4:=EMA(SS3,3);
SS5:=1.25*SS4-0.25*SS3;
XKKJ:=IF(SS5>SS3,SS3,SS5);
FF1:=LLV(SS2,10);
FF2:=EMA(FF1,3);
FF3:=1.25*FF2-0.25*FF1;
DKKJ:=IF(FF3<FF1,FF1,FF3);
MA13:=EMA(C,13);
ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);
ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);
大黑马:=IF(ZDHM OR ZHM,50,0),colorred,POINTDOT;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(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))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
小黑马:=IF(CROSS(D1,K1),50,0),COLORFFCC66,POINTDOT;
//STICKLINE(大黑马>0,0,大黑马*0.5,5,0),colormagenta;
//STICKLINE(小黑马>0,0,小黑马*0.3,5,0),colorred;
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;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,DIF,'黑马'),coloryellow;
IF(ISNULL(LV_D_SUPER_HLD_RATIO[-1])!=0)
{
b1=IF(ISNULL(BIGBUYCOUNT1[-1]),0,BIGBUYCOUNT1[-1])+IF(ISNULL(WAITBUYCOUNT1[-1]),0,WAITBUYCOUNT1[-1]);
s1=IF(ISNULL(BIGSELLCOUNT1[-1]),0,BIGSELLCOUNT1[-1])+IF(ISNULL(WAITSELLCOUNT1[-1]),0,WAITSELLCOUNT1[-1]);
b2=IF(ISNULL(BIGBUYCOUNT2[-1]),0,BIGBUYCOUNT2[-1])+IF(ISNULL(WAITBUYCOUNT2[-1]),0,WAITBUYCOUNT2[-1]);
s2=IF(ISNULL(BIGSELLCOUNT2[-1]),0,BIGSELLCOUNT2[-1])+IF(ISNULL(WAITSELLCOUNT2[-1]),0,WAITSELLCOUNT2[-1]);
DDX:=((b1-s1)+(b2-s2)*0.7)/TV_D_PUBLIC_SHARES *100;
IF(ISNULL(LV_D_SUPER_HLD_RATIO))
{
RET=(B1+b2)/TV_D_PUBLIC_SHARES *100;
}
ELSE
{
X1=LV_D_SUPER_HLD_RATIO*100;
ret:=X1+DDX;
IF(DDX > 0)
{
IF(x1>95)
ret := x1+DDX*0.1;
ELSE IF(x1>90)
ret := x1+DDX*0.5;
ELSE IF(x1>85)
ret := x1+DDX*0.8;
}
IF(DDX < 0)
{
IF(x1<5)
ret := x1+DDX*0.1;
ELSE IF(x1<10)
ret := x1+DDX*0.5;
ELSE IF(x1<15)
ret := x1+DDX*0.8;
}
}
IF(ISNULL(ret))
ret := LV_D_SUPER_HLD_RATIO*100;
IF(ret > 97.18)
ret := 97.18;
IF(ret < 2.08)
ret := 2.08;
}
ELSE
{
ret=LV_D_SUPER_HLD_RATIO*100;
}
x:=ret;
//DRAWICON((TV_D_PUBLIC_SHARES>1.05*TV_D_PUBLIC_SHARES[1] OR TV_D_PUBLIC_SHARES<0.95*TV_D_PUBLIC_SHARES[1]),ret,"kaka");
主力持仓:(ret),coloryellow,NODRAW;
Mean:=EMA(CLOSE,26),coloryellow;
Now:=EMA(CLOSE,1);
H2:=Mean+2*STD(CLOSE,26),colorgreen,DOTLINETHICK1;
L2:=Mean-2*STD(CLOSE,26),colorred,DOTLINETHICK1;
H3:=Mean+3*STD(CLOSE,26),colorcyan,LINETHICK1;
L3:=Mean-3*STD(CLOSE,26),colormagenta,LINETHICK1;
S2赔率:(H2-Now)/(Now-L2),colorred,NODRAW;
S3赔率:(H3-Now)/(Now-L3),colormagenta,NODRAW;
[url=http://www.70822.com/soft/sort013/sort036/down-163758.html]DK结构钝化(同花顺公式 副图 源码 测试图)[/url]