分析家公式网,提供股票公式,股票软件用户登录  |  用户 注册
DK双通道,趋势指标,多空双通道决定仓位(同花顺公式 副图 源码 测试图)
  • 软件大小:11.0 KB
  • 推荐星级:
  • 更新时间:2022-08-14 00:06:44
  • 软件类别: 国产软件 / 同花顺公式
  • 软件语言:简体中文
  • 授权方式: 免费版
  • 联系方式:暂无联系方式
  • 官方主页: Home Page
  • 点击大图:  【一键转帖到论坛】
  • 插件情况:
  • 运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
  • 相关Tags:DK双通道  
  • (0)0%
    (0)0%

软件介绍

 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(10,PDIFH3));
DirectTBL:=(CH1>CH2 ) AND (MDIFT2<MDIFH2) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT2>=REF(MDIFT2,1);
IndirectTBL:=(CH1>CH3 AND CH3>CH2 ) AND (MDIFT3<MDIFH3) AND (MACD>0 AND REF(MACD,1)>0) AND MDIFT3>=REF(MDIFT3,1);
T:=DirectTBL OR IndirectTBL,NODRAW;
TG:=((MDIFT2<REF(MDIFT2,1))*REF(DirectTBL,1)) OR ((MDIFT3<REF(MDIFT3,1))*REF(IndirectTBL,1)),NODRAW;
TBLX:=(REF(DirectTBL,1) AND DIFH1>=DIFH2 ) OR (REF(IndirectTBL,1) AND DIFH1>=DIFH3);
DRAWTEXT(FILTER(T,9)>0,H,'钝'),colorgreen;
DRAWTEXT(FILTER(TBLX,3)>0,H,'消'),coloryellow;
//STICKLINE(T OR TG,DIF,DEA,8,0),colorgreen;
DRAWTEXT(FILTER(TG,3)>0,H*1.02,'顶结构'),colorcyan;
 

地址


软件评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论

说明

* 使用方法:点击上面蓝色块,打开新页面按照提示进行

* 本网站提供的各种股票软件,例如大智慧软件,通达信软件,同花顺软件,东方财富通等等,和各种股票公式指标,例如大智慧公式,通达信公式,同花顺公式,文华公式,博易大师公式,股票价格计算公式等等公式指标等,都来源网上公开来源收集

本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!

* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。

* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程

* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!

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