{天途}
{stickline(close>0,h*9.0,l*0.01,8,0),color7d7f0f;}
{上面是柱线,下面是均线流,16条画线限制,统统关闭}{
k2:ema(close,6),colorffff00;
k3:ema(close,9),colorffff00;
k5:ema(close,12),colorffff00;
k7:ema(close,15),colorffff00;
k10:ema(close,18),colorffff00;
k13:ema(close,21),colorffff00;
k16:ema(close,24),colorffff00;
if (k2>ref(k2,1),k2,k2),colorred;
if (k3>ref(k3,1),k3,k2),colorred;
if (k5>ref(k5,1),k5,k2),colorred;
if (k7>ref(k7,1),k7,k2),colorred;
if (k10>ref(k10,1),k10,k2),colorred;
if (k13>ref(k13,1),k13,k2),colorred;
if (k16>ref(k16,1),k16,k2),colorred;}
hhv(h,20),colorff9090,linethick2;
llv(l,20),colorff8080,linethick2;
tr1 := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd := high-ref(high,1);
ld := ref(low,1)-low;
pdm:= sum(if(hd>0 and hd>ld,hd,0),14);
mdm:= sum(if(ld>0 and ld>hd,ld,0),14);
pdi:= pdm*100/tr1;
mdi:= mdm*100/tr1;
a1:=barslast(ref(cross("macd.dif"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(c,a1+1)>c && ref("macd.dif"(12,26,9),a1+1)<"macd.dif"(12,26,9) && cross("macd.dif"(12,26,9),"macd.dea"(12,26,9));
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.dif"(12,26,9)),1));
d1:=ref(c,c1+1)<c and ref("macd.dif"(12,26,9),c1+1)>"macd.dif"(12,26,9) and cross("macd.dea"(12,26,9),"macd.dif"(12,26,9));
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
c4:=barslast(ref(cross(mdi,pdi),1));
d4:=ref(c,c4+1)<c and ref(mdi,c4+1)>mdi and cross(mdi,pdi);
a4:=barslast(ref(cross(pdi,mdi),1));
b4:=ref(c,a4+1)>c and ref(pdi,a4+1)<pdi and cross(pdi,mdi);
{下面是文字显示各种背离}
drawtext(b4,l-0.09,'dmi底背'),colorffccff;
drawtext(d4,h+0.09,'dmi顶背'),colorwhite;
drawtext(b1,l-0.09,'macd底背'),colorff00ff;
drawtext(b2,l-0.09,'kdj底背'),coloryellow;
drawtext(b3,l-0.09,'rsi底背'),colorred;
drawtext(d1,h+0.09,'macd顶背'),colorffcc66;
drawtext(d2,h+0.09,'kdj顶背'),colorc0a8ff;
drawtext(d3,h+0.09,'rsi顶背'),colorffcccc;
vll:=cross(ma(c,13),ma(c,21));
drawtext(vll,ma(c,13)-0.09,'圆弧底'),colorwhite;
ma13:=ma(c,13);
{,colorred,linethick2;}
if(ma13>=ref(ma13,1),ma13,drawnull),colorred,linethick2;
if(ma13<ref(ma13,1),ma13,drawnull),colorgreen,linethick2;
{下面是立体k线柱线,16限制,挑肥拣瘦关闭一部分}
{stickline(c>=o,c,o,7,0),colorred;
stickline(c<=o,c,o,7,0),colorff2020;
stickline(c>=o,c,o,4,0),color7070ff;
stickline(c<=o,c,o,4,0),colorff6600;}
stickline(c>=o,c,o,2,0),coloryellow;{
stickline(c<=o,c,o,2,0),colorffcc66;}
stickline(c>=o,h,l,0,0),coloryellow;
stickline(c<=o,h,l,0,0),colorffcc66;
{下面是显示各种背离柱线,16根线限制,全关闭}
{stickline(b4,l,l-0.06,4,0),colorffccff;//dmi底背
stickline(d4,h,h+0.06,4,0),colorwhite;//dmi顶背
stickline(b1,l,l-0.06,4,0),colorff00ff;//macd底背
stickline(b2,l,l-0.06,4,0),coloryellow;//kdj底背
stickline(b3,l,l-0.04,4,0),colorred;//rsi底背
stickline(d1,h,h+0.06,4,0),colorffcc66;//macd顶背
stickline(d2,h,h+0.06,4,0),colorc0a8ff;//kdj顶背
stickline(d3,h,h+0.06,4,0),colorffcccc;//rsi顶背
drawtext(vll,ma(c,13),'●'),colorwhite;//圆弧底};
上一指标公式:绝密波段通用指标详解 通达信绝密源码
下一指标公式:12A火箭云指标详解 通达信火箭
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文天途指标详解 通达信天途仅供学习研究。