好公式网用指标公式为投资注入科技力量!
您的位置:好公式网通达信公式小天KDJ主图优化指标详解 通达信优化KDJ

小天KDJ主图优化指标详解 通达信优化KDJ

  • 指标公式类型:通达信公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-07-04 22:04:56
  • 指标公式标签:KDJ 小天 优化
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:小天KDJ主图优化指标详解 通达信优化KDJ

小天kdj主图优化(源码)

nn:=20;n:=2;
rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
rsv12:=(close-llv(low,34))/(hhv(high,34)-llv(low,34))*100;
k12:=sma(rsv12,3,1);
d12:=sma(k12,3,1);
j12:=3*k12-2*d12;
rsv24:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*100;
k24:=sma(rsv24,3,1);
d24:=sma(k24,3,1);
j24:=3*k24-2*d24;
rsi1:=sma(max(close-low,0),9,1)/sma(abs(close-low),9,1)*100;
上防线:if(cross(j24,rsi1),h,ref(h,barslast(cross(j24,rsi1)))),colorblue;
支撑位:if(cross(j,j24),l,ref(l,barslast(cross(j,j24)))),coloryellow;
压力位:if(cross(j24,j),h,ref(h,barslast(cross(j24,j)))),colorred;
u2l:=if(c>=ma(c,nn),80,50);
l2l:=if(c>=ma(c,nn),50,20);
rh1:=if(j< u2l and ref(j,1)>=u2l,hhv(ref(h,1),barslast(j>=u2l and ref(j,1)< u2l)-1),
ref(hhv(ref(h,1),barslast(j>=u2l and ref(j,1)< u2l)-1),barslast(j< u2l and ref(j,1))));
rh4:=if(h>rh1,l,ref(l,barslast(h>rh1)));
rh42:=if(h>rh1,j,ref(j,barslast(h>rh1)));
拦截:if(h>rh4 and j< rh42 and j< j24,h,ref(h,barslast(h>rh4 and j< rh42 and j< j24))),colorgreen;
rl1:=if(j>l2l and ref(j,1)<=l2l,llv(ref(l,1),barslast(j<=l2l and ref(j,1)>l2l)-1),
ref(llv(ref(l,1),barslast(j<=l2l and ref(j,1)>l2l)-1),barslast(j>l2l and ref(j,1))));
rl4:=if(l< rl1,h,ref(h,barslast(l< rl1)));
rl42:=if(l< rl1,j,ref(j,barslast(l< rl1)));
寻底:if(l< rl4 and j>rl42 and j>j24,l,ref(l,barslast(l< rl4 and j>rl42 and j>j24))),colorwhite;
tyx3:=ma(ref(hhv((c+l+o+h)/4,30),1),3);
tyx4:=ma((c+l+o+h)/4,13);
tyx5:=ema((c+l+o+h)/4,21);
{空心红}
stickline(c<tyx5 and c>o,h,l,0,0),colorred;
stickline(c<tyx5 and c>o,c,o,3,1),colorred;
{深绿}
stickline(c<tyx5 and c<o,h,l,0,0),color007700;
stickline(c<tyx5 and c<o,c,o,3,0),color005500;
stickline(c<tyx5 and c<o,c,o,2,0),color006600;
stickline(c<tyx5 and c<o,c,o,1,0),color007700;
{蓝}
stickline(c>tyx5 and c<o,h,l,0,0),colorffdd44;
stickline(c>tyx5 and c<o,c,o,3,0 ),colorff7700;
stickline(c>tyx5 and c<o,c,o,2,0 ),colorffaa22;
stickline(c>tyx5 and c<o,c,o,1 ,0 ),colorffdd44;
{黄}
stickline(c>tyx5 and c>o,h,l,0,0 ),color00eeff;
stickline(c>tyx5 and c>o,c,o,3,0 ),color00aaff;
stickline(c>tyx5 and c>o,c,o,2,0 ),color00ccff;
stickline(c>tyx5 and c>o,c,o,1,0 ),color00eeff;

{粉红}
stickline(c>tyx4 and c>o,h,l,0,0),colorff66aa;
stickline(c>tyx4 and c>o,c,o,3,0 ),colorff11ff;
stickline(c>tyx4 and c>o,c,o,2,0 ),colorff44ff;
stickline(c>tyx4 and c>o,c,o,1,0 ),colorff66ff;
{亮灰}
stickline(c>tyx4 and c<o,h,l,0,0),color999999;
stickline(c>tyx4 and c<o,c,o,3,0),color555555;
stickline(c>tyx4 and c<o,c,o,2,0),color777777;
stickline(c>tyx4 and c<o,c,o,1,0),color999999;
{深红}
stickline(c>tyx3 and c>o,h,l,0,0),color0000dd;
stickline(c>tyx3 and c>o,c,o,3,0),color000099;
stickline(c>tyx3 and c>o,c,o,2,0),color0000bb;
stickline(c>tyx3 and c>o,c,o,1,0),color0000dd;

{涨跌停k线}
stickline(high=low and close=openand (close/ref(close,1))>1.048,high,low,3,0) ,colorred;
stickline(high=low and close=openand (ref(close,1)/close)>1.048,high,low,3,0) ,color00ff00;
{突破}
stickline(ref(count(c<tyx3,5)=5,1) and c>tyx3 and c>o,c,o,1,0),color00ccff;


aa:=count(cross(ema(c,21),ma(c,8)),30)=1;
bb:=count(cross(ema(c,21),ma(c,60)),30)=1;
cc:=ref(barslast(aa and bb),1);
dd:=cc and cross(ma(c,8),ema(c,21));
drawtext(dd,(low * 0.99),'←乘风'),color80ffff;
varz1:=close>ref(close,1) and close>ref(close,2);
varz2:=ref(varz1,1) and close<=ref(close,1) and close>=ref(close,2);
varz3:=ref(varz2,1) and close>=ref(close,1) and close<=ref(close,2);
varz4:=ref(varz3,1) and close<=ref(close,1) and close>=ref(close,2);
varz5:=ref(varz4,1) and close>=ref(close,1) and close<=ref(close,2);
varz6:=ref(varz5,1) and close<=ref(close,1) and close>=ref(close,2);
varz7:=ref(varz6,1) and close>=ref(close,1) and close<=ref(close,2);
varz8:=ref(varz7,1) and close<=ref(close,1) and close>=ref(close,2);
varz9:=ref(varz8,1) and close>=ref(close,1) and close<=ref(close,2);
varza:=ref(varz9,1) and close<=ref(close,1) and close>=ref(close,2);
varzb:=ref(varza,1) and close>=ref(close,1) and close<=ref(close,2);
varzc:=ref(varzb,1) and close<=ref(close,1) and close>=ref(close,2);
varzd:=close<ref(close,1) and close<ref(close,2);
varze:=ref(varzd,1) and close>=ref(close,1) and close<=ref(close,2);
varzf:=ref(varze,1) and close<=ref(close,1) and close>=ref(close,2);
varz10:=ref(varzf,1) and close>=ref(close,1) and close<=ref(close,2);
varz11:=ref(varz10,1) and close<=ref(close,1) and close>=ref(close,2);
varz12:=ref(varz11,1) and close>=ref(close,1) and close<=ref(close,2);
varz13:=ref(varz12,1) and close<=ref(close,1) and close>=ref(close,2);
varz14:=ref(varz13,1) and close>=ref(close,1) and close<=ref(close,2);
varz15:=ref(varz14,1) and close<=ref(close,1) and close>=ref(close,2);
varz16:=ref(varz15,1) and close>=ref(close,1) and close<=ref(close,2);
varz17:=ref(varz16,1) and close<=ref(close,1) and close>=ref(close,2);
varz18:=ref(varz17,1) and close>=ref(close,1) and close<=ref(close,2);
varz19:=ref(varzd or varze or varzf or varz10 or varz11 or varz12 or varz13 or
varz14 or varz15 or varz16 or varz17 or varz18,1) and varz1;
varz1a:=ref(varz1 or varz2 or varz3 or varz4 or varz5 or varz6 or varz7 or
varz8 or varz9 or varza or varzb or varzc,1) and varzd;
drawtext(filter(varz19=1,5),low,' ★买进'),colorff00ff;

drawtext(filter(varz1a=1,5),high+0.08,'◆卖出'),coloryellow;
ppa2:=barslast(ref(cross("macd.dif","macd.dea"),1));
pb1:=ref(c,ppa2+1)>c and ref("macd.dif",ppa2+1)<"macd.dif" and cross("macd.dif","macd.dea");
drawtext(pb1>0,l-0.02,'★m'),color00ffff;{macd底背离}
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
pb2:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(pb2,l-0.10,'◎k'),colorff00ff;{kdj底背离}
pa3:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
pb3:=ref(c,pa3+1)>c and ref("rsi.rsi1",pa3+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(pb3>0,l-0.18,'◆r'),color0000ff;{rsi底背离}
pc1:=barslast(ref(cross("macd.dea","macd.dif"),1));
pd1:=ref(c,pc1+1)<c and ref("macd.dif",pc1+1)>"macd.dif" and cross("macd.dea","macd.dif");
drawtext(pd1>0,h+0.16,'★m'),color00ff00;{macd顶背离}
pc2:=barslast(ref(cross("kdj.d","kdj.k"),1));
pd2:=ref(c,pc2+1)<c and ref("kdj.k",pc2+1)>"kdj.k" and cross("kdj.d","kdj.k");
drawtext(pd2>0,h+0.08,'◎k'),colorffffcc;{kdj顶背离}
pc3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
pd3:=ref(c,pc3+1)<c and ref("rsi.rsi1",pc3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
drawtext(pd3>0,h+0.04,'◆r'),colorff9900;{rsi顶背离};
abb:=drawline(v>=hhv(v,10),v,v<=llv(v,3),hhv(v,3),1);
dif12:=(ema(close,12)-ema(close,26))/((ema(close,12)+ema(close,26))/2)*1000;
dea12:=ema(dif12,9);
kdif12:=3*(dif12-dea12);{kdif12:=2*(dif12-dea12)};
kdea12:=sma(kdif12,5,2);
rsvvv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
kvv:=sma(rsvvv,3,1);
dvv:=sma(kvv,3,1);
bias1:=(close-ma(close,24))/ma(close,24)*100;
a1:=cross(kvv,dvv) and cross(kvv,dvv)<16 and bias1<-6;
m1:=winner( ma(close,1))*200;
m2:=winner(ma(close,20))*200;
var1:=(close-llv(low,80))/(hhv(high,80)-llv(low,80))*200;
var2:=sma(var1,3,1);
var3:=sma(var2,3,1);
var4:=3*var2-2*var3;
var5:=llv(low,5);
var6:=hhv(high,5);
var7:=ema((close-var5)/(var6-var5)*100,4)*2;
var8:=ema(0.667*ref(var7,1)+0.333*var7,2);
var9:=3*var7-2*var8;
vara:=pow(ma(close,5),2)+ma(close,5);
varb:=pow(ma(low,5),2)+ma(low,5);
varc:=pow(ma(high,5),2)+ma(high,5);
vard:=(vara-llv(varb,64))/(hhv(varc,64)-llv(varb,64))*150+65-10;
vare:=sma(vard,3,1)*1.5-100;
varf:=sma(vare,3,1);
var10:=3*vare-2*varf;
var11:=(high+low+close*2)/4;
var12:=ema(var11,13);
var13:=std(var11,13);
var14:=(var11-var12)*100/var13;
var15:=ema(var14,5);
var17:=ema(var15,13)+200-100;
var18:=ema(var17,10);
var19:=3*var17-2*var18;
var1a:=var2+var7+vare+var17;
var1b:=var3+var8+varf+var18;
var1c:=var4+var9+var10+var19;
var1d:=(high+low+close)/3;
var20:=(var1d-ma(var1d,34))/(0.015*avedev(var1d,34));
var21:=dma(amount/vol/100,vol/capital);
var22:=(high+low+close+var1d)/4;
var23:=ema(var22,24);
var24:=std(var22,24);
var25:=(var22-var23)/var24*100;
var26:=(var1d-ma(var1d,24))/(0.015*avedev(var1d,24));
var27:=ema(var25,5);
var2a:=((var27+var26+var20)/3+165)/4;
var2b:=(ema(ema(ema(var2a,15),10),5)-25)*2+var21;
var2c:=(var1a+var1b+var1c*30)/32/5-15;
var2d:=ema(var2c,13);
var2e:=(var2a+var2c)/2/1.1;
var28:=(close-ma(close,6))/ma(close,6)*100;
var29:=(close-ma(close,12))/ma(close,12)*100;
var30:=(close-ma(close,24))/ma(close,24)*100;
var31:=ref(close,1);
var32:=sma(max(close-var31,0),5,1)/sma(abs(close-var31),5,1)*100;
var33:=(high+low+close)/3;
var34:=(var33-ma(var33,14))/(0.015*avedev(var33,14));
var35:=(var28>=-15.8 and var28<=-12.2 and var29<=-20.8 and var30<=-27.5 and var32<=11.7 and var34<=-145)*100;
超短:=ema(var2e,3);
短线:=ema(超短,5);
rsv2:=(close-llv(low,18))/(hhv(high,18)-llv(low,18))*100;
k111:=sma(rsv2,9,1);
d111:=sma(k111,3,1);
j111:=3*k-2*d;
dif1:=ema(close,12)-ema(close,26);
dea1:=ema(dif1,9);
kdj_k:="kdj.k"(9,3,3);kdj_d:="kdj.d"(9,3,3);kdj_j:="kdj.j"(9,3,3);
typ:=(high+low+close)/3;
c1:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
c2:=(typ-ma(typ,84))/(0.015*avedev(typ,84));
vara1a:=ref(low,1);
varb1a:=sma(abs(low-vara1a),3,1)/sma(max(low-vara1a,0),3,1)*100;
varc1a:=ema(if(close*1.3,varb1a*10,varb1a/10),3);
vard1a:=llv(low,30);
vare1a:=hhv(varc1a,30);
varf1a:=if(ma(close,58),1,0);
varg1a:=ema(if(low<=vard1a,(varc1a+vare1a*2)/2,0),3)/618*varf1a;
varh1a:=if(varg1a>50,50,varg1a);
rsv3:=(((close - llv(low,9)) / (hhv(high,9) - llv(low,9))) * 100);
tr:=ema(ema(ema(close,13),13),3);
trix:=(tr-ref(tr,1))/ref(tr,1)*100;
matrix:=ma(trix,2.618);
var101:=(2*close+high+low)/4;
var202:=expma(expma(expma(var101,4),4),4);

diff88:= ema(close,2) - ema(close,55);
dea88:= ema(diff88,6);

买1:=cross(kdj_j,0) or (cross(kdj_j,kdj_k) and kdj_d<26);
买2:=cross("rsi.rsi1"(6,2,2),20) or cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
买3:=cross("macd.dif","macd.dea") or cross("macd.macd",0);
买4:=cross(dif1,dea1) or cross(k111,d111);
买5:=cross(dif12,dea12) or cross(kdif12,kdea12);
买6:=cross(k,d) or cross(超短,短线);
买7:=cross(c1,-150) or cross(c2,-150);
买8:=cross(trix,matrix);
买9:=cross(diff88,dea88) or cross(c,abb);
买0:=买1+买2+买3;
买00:=买4+买5+买6+买7+买8+买9;
买10:=if(买0>1,买0,0);
买11:=if(买00>0,买00,0);
ai:=amount/vol/100;
c0:=ref(c,2)*0.865;
cb1:=ref(c,13)*0.772;
dsy:=100*vol/capital;
抄1底:=if((c-min(c0,cb1))/c<0.1 and sum(dsy,5)/5<1.8,10, 0);
drawicon(抄1底>0,l/1.02,7);
ll:=ref(close,1);
mm:=sma(max(close-ll,0),6,1)/sma(abs(close-ll),6,1)*100;
卖:=cross(80,mm) or cross(dea1,dif1) or cross(d111,k111) or cross(dea12,dif12) or cross(kdea12,kdif12) or cross(d,k) or cross(短线,超短) or cross(matrix,trix) or cross(dea88,diff88) or cross(250,c1) or cross(250,c2),colorgreen;
drawicon(买10>0,l/1.001,9);
drawicon(买11>0,l/1.02,23);
drawicon(卖>0,h+0.06,19);
yy1:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100;
vvv1:=sma(yy1,5,1);
ggg1:=sma(vvv1,5,1);
j999:=3*vvv1-2*ggg1;
aa1:=ema(j999,5);
aa2:=ref(aa1,1);

nnn2:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k29:=sma(nnn2,3,1);
d29:=sma(k29,3,1);
j29:=3*k29-2*d29;
bb1:=ema(j29,5);
bb2:=ref(bb1,1);

dd2:=aa1>aa2 and bb1>bb2;
注意买入:=dd2 and not(ref(dd2,1)) and (aa1<50 or bb1<50) ,linethick0;
drawicon(注意买入,l-0.02,13);
注意卖出:=ref(dd2,1)=1 and not(dd2),linethick0;
drawicon(注意卖出,h+0.02,14);


小天kdj主图优化

  >>>使用本站搜索工具可以找到更多小天KDJ主图优化指标详解 通达信优化KDJ

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文小天KDJ主图优化指标详解 通达信优化KDJ仅供学习研究。

猜你喜欢

学了又学