分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]DK双通道,趋势指标,多空双通道决定仓位(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:11.0 KB
官方主页:Home Page
更新时间:2022-08-14 00:06:44
软件简介:

 DK双通道

趋势指标,多空双通道决定仓位,做到上涨甩不掉你,下跌套不住你.

牛!

BS:=ZIG(3,10);
SL:=EMA(BS,3);
B:=CROSS(BS,SL);
S:=CROSS(SL,BS);
STICKLINE(BS>=SL,LOW,HIGH,1,0),colorred;
STICKLINE(BS>=SL,CLOSE,OPEN,8,0),colorred;
STICKLINE(BS<SL,CLOSE,OPEN,8,1),colorgreen;
STICKLINE(BS<SL,LOW,HIGH,1,0),colorgreen;
STICKLINE(CROSS(BS,SL),OPEN,CLOSE,10,0),colormagenta;
STICKLINE(CROSS(SL,BS),OPEN,CLOSE,10,0),colorcyan;
Mean:EMA(CLOSE,26),coloryellow;
Now:EMA(CLOSE,1);
ST:EMA(H,26);
SB:EMA(L,26);
LT:EMA(H,89);
LB:EMA(L,89);
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;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;DRAWICON(CROSS(J,0),LOW*0.98,1);
DRAWICON(CROSS(100,J),HIGH*1.02,2);
H8:=(CLOSE>REF(CLOSE, 4) AND REF(CLOSE, 1)>REF(CLOSE, 5) AND REF(CLOSE, 2)>REF(CLOSE, 6) AND REF(CLOSE, 3)>REF(CLOSE, 7)
AND REF(CLOSE, 4)>REF(CLOSE, 8) AND REF(CLOSE, 5)>REF(CLOSE, 9) AND REF(CLOSE, 6)>REF(CLOSE, 10) AND REF(CLOSE, 7)>REF(CLOSE, 11));
H9:=(H8 AND REF(CLOSE, 8)>REF(CLOSE, 12));
Hi8:=(BARSLAST(H9)>7) AND H8;
DRAWTEXT(Hi8, HIGH, 'H8'),colorgreen;
Hi9:=BARSLAST(Hi8,1)=1 AND H9,LINETHICK0;
DRAWTEXT(Hi9, HIGH, 'H9'),colorcyan;
L8:=(CLOSE<REF(CLOSE, 4) AND REF(CLOSE, 1)<REF(CLOSE, 5) AND REF(CLOSE, 2)<REF(CLOSE, 6) AND REF(CLOSE, 3)<REF(CLOSE, 7)
AND REF(CLOSE, 4)<REF(CLOSE, 8) AND REF(CLOSE, 5)<REF(CLOSE, 9) AND REF(CLOSE, 6)<REF(CLOSE, 10) AND REF(CLOSE, 7)<REF(CLOSE, 11));
L9:=L8 AND REF(CLOSE, 8)<REF(CLOSE, 12);
Lo8:=BARSLAST(L9)>7 AND L8;
DRAWTEXT(Lo8, LOW,'L8'),colorred;
Lo9:=(BARSLAST(Lo8,1)=1 AND L9);
DRAWTEXT(Lo9, LOW,'L9'),colormagenta;
ShortTerm:=26;
Shorta1:=CROSS(CLOSE,EMA(HIGH,ShortTerm));
Shorta2:=CROSS(EMA(LOW,ShortTerm),CLOSE);
Shortb1:=(BARSLAST(Shorta1,1) + 1);
Shortb2:=(BARSLAST(Shorta2,1) + 1);
Shortc1:=CROSS(SUM(Shorta1,Shortb2),0.5);
Shortc2:=CROSS(SUM(Shorta2,Shortb1),0.5);
LongTerm:=89,LINETHICK0;
LongTerma1:=CROSS(CLOSE,EMA(HIGH,LongTerm));
LongTerma2:=CROSS(EMA(LOW,LongTerm),CLOSE);
LongTermb1:=(BARSLAST(LongTerma1,1) + 1);
LongTermb2:=(BARSLAST(LongTerma2,1) + 1);
LongTermc1:=CROSS(SUM(LongTerma1,LongTermb2),0.5);
LongTermc2:=CROSS(SUM(LongTerma2,LongTermb1),0.5);
STICKLINE((CLOSE > EMA(HIGH,ShortTerm)),EMA(HIGH,ShortTerm),EMA(LOW,ShortTerm),1,1),colorred;
STICKLINE((CLOSE < EMA(LOW,ShortTerm)),EMA(LOW,ShortTerm),EMA(HIGH,ShortTerm),1,1),colorgreen;
PARTLINE(EMA(HIGH,ShortTerm), CLOSE >EMA(HIGH,ShortTerm),RGB(255,0,0),CLOSE < EMA(HIGH,ShortTerm),RGB(0,255,0));
PARTLINE(EMA(LOW,ShortTerm),  CLOSE > EMA(LOW,ShortTerm),RGB(255,0,0),CLOSE < EMA(LOW,ShortTerm),RGB(0,255,0));
STICKLINE(CLOSE > EMA(HIGH,LongTerm),EMA(HIGH,LongTerm),EMA(LOW,LongTerm),1,1),colormagenta;
STICKLINE(CLOSE < EMA(LOW,LongTerm),EMA(LOW,LongTerm),EMA(HIGH,LongTerm),1,1),colorblue;
PARTLINE(EMA(HIGH,LongTerm), CLOSE >EMA(HIGH,LongTerm),RGB(255,0,255),CLOSE < EMA(HIGH,LongTerm),RGB(0,0,255));
PARTLINE(EMA(LOW,LongTerm), CLOSE >EMA(LOW,LongTerm),RGB(255,0,255),CLOSE < EMA(LOW,LongTerm),RGB(0,0,255));
CrossShort:=(CLOSE > EMA(HIGH,ShortTerm) AND Shorta1);
DownShort:=(CLOSE < EMA(LOW,ShortTerm)  AND Shortc2);
DRAWTEXT(CLOSE > EMA(HIGH,ShortTerm) AND CLOSE > EMA(HIGH, LongTerm) AND (Shortc1 OR LongTermc1), LT, 'Full'), colormagenta;
DRAWTEXT(CLOSE < EMA(LOW,ShortTerm)  AND CLOSE < EMA(LOW, LongTerm)  AND (Shortc2 OR LongTermc2), LB, 'Epty'), colorcyan;
DRAWTEXT(CLOSE > EMA(HIGH,ShortTerm) AND CLOSE < EMA(HIGH, LongTerm) AND Shortc1, ST, '40'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,ShortTerm)  AND CLOSE < EMA(LOW, LongTerm)  AND LongTermc2, SB, '40'), colorgreen;
DRAWTEXT(CLOSE > EMA(HIGH,LongTerm) AND CLOSE < EMA(HIGH, ShortTerm) AND LongTermc1, LT, '60'), coloryellow;
DRAWTEXT(CLOSE > EMA(LOW,LongTerm)  AND CLOSE < EMA(LOW, ShortTerm)  AND Shortc2, LB, '60'), colorgreen;
Avg:=(3*C+L+O+H)/6;
X:=(20*Avg+19*REF(Avg,1)+18*REF(Avg,2)+17*REF(Avg,3)+16*REF(Avg,4)+15*REF(Avg,5)+14*REF(Avg,6)+13*REF(Avg,7)+12*REF(Avg,8)+11*REF(Avg,9)+10*REF(Avg,10)+9*REF(Avg,11)+8*REF(Avg,12)+7*REF(Avg,13)+6*REF(Avg,14)+5*REF(Avg,15)+4*REF(Avg,16)+3*REF(Avg,17)+2*REF(Avg,18)+REF(Avg,20))/210;
COST:EMA(X,13),colorblue,NODRAW;
DIF:=100*(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;
TrendDown:=CROSS(DEA,DIF);
N1:=BARSLAST(TrendDown);
N2:=REF(BARSLAST(TrendDown),N1+1);
N3:=REF(BARSLAST(TrendDown),N2+N1+2);
CL1:=LLV(C,N1+1);
DIFL1:=LLV(DIF,N1+1);
CL2:=REF(CL1,N1+1);
DIFL2:=REF(DIFL1,N1+1);
CL3:=REF(CL2,N1+1);
DIFL3:=REF(DIFL2,N1+1);
AA1:=INTPART(LOG(DIFL2))-1;
AA2:=INTPART(LOG((-1)*DIFL2))-1;
PDIFL2:=IF(DIFL2>0,AA1,AA2);
MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2));
PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG((-1)*DIFL3))-1);
MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3));
MDIFB2:=INTPART(DIF/POW(10,PDIFL2));
MDIFB3:=INTPART(DIF/POW(10,PDIFL3));
DirectBBL:=(CL1<CL2 ) AND (MDIFB2>MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1);
IndirectBBL:=(CL1<CL3 AND CL3<CL2 ) AND (MDIFB3>MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1);
B:=DirectBBL OR IndirectBBL,NODRAW;
BG:=((MDIFB2>REF(MDIFB2,1))*REF(DirectBBL,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(IndirectBBL,1)),NODRAW;
BBLX:=(REF(DirectBBL,1) AND DIFL1<=DIFL2 ) OR (REF(IndirectBBL,1) AND DIFL1<=DIFL3);
DRAWTEXT(FILTER(B,9)>0,L,'钝'),colorred;
//STICKLINE(B OR BG,DIF,DEA,8,0),colorred;
DRAWTEXT(FILTER(BBLX,3)>0,L,'消'),coloryellow;
DRAWTEXT(FILTER(BG,3)>0,L2*0.98,'底结构'),colormagenta;
TrendUp:=CROSS(DIF,DEA);
M1:=BARSLAST(TrendUp);
M2:=REF(BARSLAST(TrendUp),M1+1);
M3:=REF(BARSLAST(TrendUp),M2+M1+2);
CH1:=HHV(C,M1+1);
DIFH1:=HHV(DIF,M1+1);
CH2:=REF(CH1,M1+1);
DIFH2:=REF(DIFH1,M1+1);
CH3:=REF(CH2,M1+1);
DIFH3:=REF(DIFH2,M1+1);
PDIFH2:=IF(DIFH2>0,INTPART(LOG(DIFH2))-1,INTPART(LOG((-1)*DIFH2))-1);
MDIFH2:=INTPART(DIFH2/POW(10,PDIFH2));
PDIFH3:=IF(DIFH3>0,INTPART(LOG(DIFH3))-1,INTPART(LOG((-1)*DIFH3))-1);
MDIFH3:=INTPART(DIFH3/POW(10,PDIFH3));
MDIFT2:=INTPART(DIF/POW(10,PDIFH2));
MDIFT3:=INTPART(DIF/POW(1
[url=http://www.70822.com/soft/sort013/sort036/down-163703.html]DK双通道,趋势指标,多空双通道决定仓位(同花顺公式 副图 源码 测试图)[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:46.87500 毫秒